1 implementation of Arguments
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4795public ImmutableArray<IArgumentOperation> Arguments { get; }
63 references to Arguments
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
5834(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = VisitInstanceWithArguments(instance, operation.Arguments);
Microsoft.CodeAnalysis.CodeStyle (10)
AbstractSimplifyInterpolationHelpers.cs (8)
87if (invocation.Arguments.Length == 1 88|| (invocation.Arguments.Length == 2 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 1))) 90if (invocation.Arguments[0].Value is ILiteralOperation { ConstantValue: { HasValue: true, Value: string value } } literal && 105|| (invocation.Arguments.Length == 1 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 0))) 133return IsInvariantCultureReference(invocation.Arguments[formatProviderArgumentIndex].Value) 202var argCount = invocation.Arguments.Length; 206IsSpaceChar(invocation.Arguments[1])) 208var alignmentOp = invocation.Arguments[0].Value;
HashCodeAnalyzer.OperationDeconstructor.cs (2)
89invocation.Arguments.Length == 1) 94return TryAddHashedSymbol(invocation.Arguments[0].Value, seenHash: true);
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
CastSimplifier.cs (1)
1286var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter));
CSharpUseImplicitTypeHelper.cs (1)
250var argumentOp = invocationOp.Arguments.FirstOrDefault(a => a.Syntax == argument);
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
104if (invocationOperation.Arguments.Length != 1) 111invocationOperation.Arguments[0].Value,
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (6)
111return invocation.Arguments.Length switch 132var startOperation = invocation.Arguments[0].Value; 170if (!IsSubtraction(invocation.Arguments[1].Value, out var subtraction) || 181var startOperation = invocation.Arguments[0].Value; 220var startOperation = invocation.Arguments[0].Value; 237invocation.Arguments[1].Value);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
ConvertToRecordHelpers.cs (4)
46Arguments: [IArgumentOperation { Value: IOperation arg }] 297IInvocationOperation { Arguments: ImmutableArray<IArgumentOperation> args }) 631Arguments: [IArgumentOperation { Value: IOperation arg }] 768Arguments: [IMemberReferenceOperation arg]
Microsoft.CodeAnalysis.CSharp.Features (12)
ConvertToRecordHelpers.cs (4)
46Arguments: [IArgumentOperation { Value: IOperation arg }] 297IInvocationOperation { Arguments: ImmutableArray<IArgumentOperation> args }) 631Arguments: [IArgumentOperation { Value: IOperation arg }] 768Arguments: [IMemberReferenceOperation arg]
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
104if (invocationOperation.Arguments.Length != 1) 111invocationOperation.Arguments[0].Value,
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (6)
111return invocation.Arguments.Length switch 132var startOperation = invocation.Arguments[0].Value; 170if (!IsSubtraction(invocation.Arguments[1].Value, out var subtraction) || 181var startOperation = invocation.Arguments[0].Value; 220var startOperation = invocation.Arguments[0].Value; 237invocation.Arguments[1].Value);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.cs (1)
3063var argument = invocation.Arguments[0];
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CastSimplifier.cs (1)
1286var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter));
CSharpUseImplicitTypeHelper.cs (1)
250var argumentOp = invocationOp.Arguments.FirstOrDefault(a => a.Syntax == argument);
Microsoft.CodeAnalysis.Features (14)
AbstractSimplifyInterpolationHelpers.cs (8)
87if (invocation.Arguments.Length == 1 88|| (invocation.Arguments.Length == 2 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 1))) 90if (invocation.Arguments[0].Value is ILiteralOperation { ConstantValue: { HasValue: true, Value: string value } } literal && 105|| (invocation.Arguments.Length == 1 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 0))) 133return IsInvariantCultureReference(invocation.Arguments[formatProviderArgumentIndex].Value) 202var argCount = invocation.Arguments.Length; 206IsSpaceChar(invocation.Arguments[1])) 208var alignmentOp = invocation.Arguments[0].Value;
HashCodeAnalyzer.OperationDeconstructor.cs (2)
89invocation.Arguments.Length == 1) 94return TryAddHashedSymbol(invocation.Arguments[0].Value, seenHash: true);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
298invocation.Arguments.Length == 1 && 299IsParameterReference(invocation.Arguments[0].Value, parameter))
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
171var allArgumentOperations = invocationOperation.Arguments;
ValueTracking\ValueTracker.OperationCollector.cs (1)
112await TrackArgumentsAsync(invocationOperation.Arguments, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (1)
837VisitArguments(operation.Arguments);
Compilation\TestOperationVisitor.cs (2)
532children = new[] { operation.Instance }.Concat(operation.Arguments); 536children = operation.Arguments;
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
88foreach (IArgumentOperation argument in invocation.Arguments)
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
76foreach (IArgumentOperation argument in invocation.Arguments)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
69foreach (IArgumentOperation argument in invocation.Arguments)
Diagnostics\OperationTestAnalyzer.cs (2)
545foreach (IArgumentOperation argument in invocation.Arguments) 1102foreach (IArgumentOperation argument in invocation.Arguments)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.vb (1)
1094Dim argument = invocation.Arguments(0)