4 overrides of Arguments
Microsoft.CodeAnalysis (4)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
46internal override IReadOnlyList<object?> Arguments
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
111internal override IReadOnlyList<object?> Arguments
Diagnostic\DiagnosticWithInfo.cs (1)
104internal override IReadOnlyList<object?> Arguments
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
92internal override IReadOnlyList<object?> Arguments => _original.Arguments;
49 references to Arguments
Microsoft.CodeAnalysis (6)
CommandLine\CommonCompiler.cs (1)
1648errors = diagnostics.ToReadOnlyAndFree().SelectAsArray(diag => new DiagnosticInfo(messageProvider, diag.IsWarningAsError, diag.Code, (object[])diag.Arguments));
Compilation\Compilation.cs (3)
3823foreach (var argument in diagnostic.Arguments) 3849if (diagnostic.Arguments != null) 3851foreach (var argument in diagnostic.Arguments)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
48get { return _originalUnsuppressedDiagnostic.Arguments; }
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
92internal override IReadOnlyList<object?> Arguments => _original.Arguments;
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (1)
9441{ Code: (int)ErrorCode.ERR_BadIndexLHS, Arguments: [TypeSymbol type] } && type.Equals(expr.Type, TypeCompareKind.ConsiderEverything))
Binder\Binder_Invocation.cs (1)
1905!(d.Arguments is [ParameterSymbol shadowedParameter] && shadowedParameter.Type.Equals(typeOrValue.Data.ValueExpression.Type, TypeCompareKind.AllIgnoreOptions))) // If the type and the name match, we would resolve to the same type rather than a value at the end.
BoundTree\UnboundLambda.cs (4)
1420var nx = x.Arguments?.Count ?? 0; 1421var ny = y.Arguments?.Count ?? 0; 1424object? argx = x.Arguments![i]; 1425object? argy = y.Arguments![i];
CommandLine\CSharpCompiler.cs (4)
388{ Code: (int)ErrorCode.ERR_BadAccess, Arguments: [Symbol s] } => s, 389{ Code: (int)ErrorCode.ERR_InaccessibleGetter, Arguments: [Symbol s] } => s, 390{ Code: (int)ErrorCode.ERR_InaccessibleSetter, Arguments: [Symbol s] } => s, 391{ Code: (int)ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, Arguments: [_, Symbol s, _] } => s,
FlowAnalysis\DefiniteAssignment.cs (1)
626var args = diagnostic is DiagnosticWithInfo { Info: { Arguments: var arguments } } ? arguments : diagnostic.Arguments.ToArray();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
833Assert.Equal(1, parsedArgs.Errors.First().Arguments.Count); 838Assert.Equal(1, parsedArgs.Errors.First().Arguments.Count); 843Assert.Equal(1, parsedArgs.Errors.First().Arguments.Count); 1911Assert.Equal("4X", parsedArgs.Errors.First().Arguments[0]); 2889Assert.Equal(2, err.Arguments.Count); 2890Assert.Equal(file.Path, (string)err.Arguments[0]); 2894Assert.Equal("Data at the root level is invalid. Line 1, position 1.", (string)err.Arguments[1]);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
Emit\CompilationEmitTests.cs (4)
5218Assert.Equal(1, err.Arguments.Count); 5220Assert.Equal(ioExceptionMessage, (string)err.Arguments[0]); 5229Assert.Equal(1, err.Arguments.Count); 5230Assert.Equal(ioExceptionMessage, (string)err.Arguments[0]);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (2)
2454diagnostic.Arguments[0].Equals("System.Guid") && diagnostic.Arguments[1].Equals(".ctor"))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\InternalsVisibleToAndStrongNameTests.cs (8)
402Assert.Equal(2, err.Arguments.Count); 403Assert.Equal("goo", err.Arguments[0]); 404Assert.True(((string)err.Arguments[1]).EndsWith("0x80090016)", StringComparison.Ordinal), (string)err.Arguments[1]); 1614Assert.Equal(2, err.Arguments.Count); 1615Assert.Equal("bogus", err.Arguments[0]); 1616Assert.True(((string)err.Arguments[1]).EndsWith("0x80090016)", StringComparison.Ordinal), (string)err.Arguments[1]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
SourceGeneration\GeneratorDriverTests.cs (5)
4265Assert.Equal(4, diagnostic.Arguments.Count); 4266Assert.Equal(generatorName, diagnostic.Arguments[0]); 4268Assert.Equal(typeName, diagnostic.Arguments[1]); 4269Assert.Equal(message, diagnostic.Arguments[2]); 4271Assert.StartsWith(expectedDetails, diagnostic.Arguments[3] as string);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
DiagnosticTestUtilities.cs (4)
122Parameters = (e.Arguments != null && e.Arguments.Count > 0 && e.Arguments[0] != null) ? 123e.Arguments.Select(x => x != null ? x.ToString() : null).ToArray() : Array.Empty<string>()
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticDescription.cs (2)
170var args = d.Arguments; 177_arguments = d.Arguments.ToArray();