1 implementation of Arguments
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5968public ImmutableArray<IArgumentOperation> Arguments { get; }
75 references to Arguments
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (2)
826return ProcessMethodCall(operation, operation.Constructor, null, operation.Arguments, state); 899argumentOperation = callOperation.Arguments[argumentIndex];
Microsoft.Analyzers.Extra (1)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
89if (op.Arguments.Length == op.Constructor.Parameters.Length)
Microsoft.Analyzers.Local (1)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
89if (op.Arguments.Length == op.Constructor.Parameters.Length)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
131var result = InspectMethodArguments(creation.Arguments);
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5995ImmutableArray<IArgumentOperation> visitedArgs = VisitArguments(operation.Arguments, instancePushed: false); 6846var arguments = ((IObjectCreationOperation)operation.HandlerCreation).Arguments;
Microsoft.CodeAnalysis.Analyzers (6)
MetaAnalyzers\CompareSymbolsCorrectlyAnalyzer.cs (1)
268!objectCreation.Arguments.Any(arg => IsSymbolType(arg.Value, iEqualityComparerType)))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (4)
533=> (objectCreation.Constructor, objectCreation.Arguments), 570objectCreation.Arguments.Length >= 3 && 571objectCreation.Arguments.GetArgumentForParameterAtIndex(0) is { } firstParamArgument && 575objectCreation.Arguments.GetArgumentForParameterAtIndex(2) is { } thirdParamArgument &&
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (1)
97document, objectCreation.Syntax, objectCreation.Constructor, objectCreation.Arguments, isUsedAsExtensionMethod: false,
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\2e2796bccd1466f6\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
252IEnumerable<IArgumentOperation> taintedArguments = GetTaintedArguments(operation.Arguments);
src\683181b2796de991\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
246ProcessRegularInvocationOrCreation(operation.Constructor, operation.Arguments, operation);
src\a03b2aad21e28a8a\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (3)
164foreach (IArgumentOperation argumentOperation in operation.Arguments) 177foreach (IArgumentOperation argumentOperation in operation.Arguments) 198operation.Arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocation.cs (1)
161IObjectCreationOperation objectCreation => objectCreation.Arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3166operation.Arguments, operation, defaultValue, isLambdaOrLocalFunction: false, out _);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
373Arguments: ImmutableArray<IArgumentOperation> { IsEmpty: true },
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
373Arguments: ImmutableArray<IArgumentOperation> { IsEmpty: true },
Microsoft.CodeAnalysis.Features (1)
ValueTracking\ValueTracker.OperationCollector.cs (1)
103=> TrackArgumentsAsync(objectCreationOperation.Arguments, cancellationToken);
Microsoft.CodeAnalysis.NetAnalyzers (43)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerationsHelpers.cs (1)
219RoslynDebug.Assert(objectCreationOperation.Arguments.Contains(argumentOperation));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotInitializeUnnecessarily.cs (1)
109(type.IsValueType && value is IObjectCreationOperation oco && oco.Arguments.IsEmpty && oco.Initializer is null && oco.Constructor?.IsImplicitlyDeclared == true))
Microsoft.NetCore.Analyzers\Data\ReviewSqlQueriesForSecurityVulnerabilities.cs (1)
77AnalyzeMethodCall(operationContext, creation.Constructor, symbol, creation.Arguments, creation.Syntax, isInDbCommandConstructor, isInDataAdapterConstructor, iDbCommandType, iDataAdapterType);
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFill.cs (1)
139&& objectCreation.Arguments.IsEmpty
Microsoft.NetCore.Analyzers\Runtime\AvoidRedundantRegexIsMatchBeforeMatch.cs (1)
325foreach (var arg in objCreation.Arguments)
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.cs (1)
151arguments = objectCreation.Arguments;
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.cs (2)
97if (creation.Arguments.IsEmpty) 108foreach (IArgumentOperation argument in creation.Arguments)
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.Fixer.cs (10)
53if (creation.Arguments.Length == 1) 66createChangedDocument: c => SwapArgumentsOrderAsync(context.Document, creation, paramPosition, creation.Arguments.Length, c), 78SyntaxNode parameter = AddNameOfIfLiteral(creation.Arguments[paramPosition].Value, editor.Generator); 84newCreation = editor.Generator.ObjectCreationExpression(creation.Type, creation.Arguments[1].Syntax, parameter); 88newCreation = editor.Generator.ObjectCreationExpression(creation.Type, parameter, creation.Arguments[0].Syntax); 96newCreation = editor.Generator.ObjectCreationExpression(creation.Type, creation.Arguments[1].Syntax, parameter, creation.Arguments[2].Syntax); 100newCreation = editor.Generator.ObjectCreationExpression(creation.Type, parameter, creation.Arguments[1].Syntax, creation.Arguments[0].Syntax); 111SyntaxNode argument = AddNameOfIfLiteral(creation.Arguments[0].Value, editor.Generator);
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.cs (3)
140objectCreation.Arguments.Length == 2 && 141objectCreation.Arguments[0].Value?.Type?.SpecialType == SpecialType.System_Char && 142objectCreation.Arguments[1].Value?.Type?.SpecialType == SpecialType.System_Int32 &&
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.Fixer.cs (3)
56objectCreation.Arguments.Length == 2 && 68var charArgSyntax = objectCreation.Arguments[0].Value.Syntax; 69var intArgSyntax = objectCreation.Arguments[1].Value.Syntax;
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpers.cs (3)
292if (objectCreationOperation.Arguments is [IArgumentOperation arg, ..] && 322ImmutableArray<IArgumentOperation> args = creationOperation.Arguments; 332ImmutableArray<IArgumentOperation> args = objectCreationOperation.Arguments;
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableObjectGraphAnalyzer.cs (2)
260.Arguments 270.Arguments
Microsoft.NetCore.Analyzers\Security\DoNotDisableHttpClientCRLCheck.cs (1)
169if (!objectCreationOperation.Arguments.IsEmpty)
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFAlgorithm.cs (1)
76var hashAlgorithmNameArgumentOperation = objectCreationOperation.Arguments.FirstOrDefault(s => s.Parameter?.Name == "hashAlgorithm");
Microsoft.NetCore.Analyzers\Security\UseRSAWithSufficientKeySize.cs (1)
87var arguments = objectCreationOperation.Arguments;
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArguments.cs (1)
55conversionOperation = MatchInvalidContinuationOptions(objectCreation.Constructor, objectCreation.Arguments);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (1)
332AnalyzeMethodOverloads(context, objCreation.Constructor, objCreation.Arguments, objCreation.Syntax);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureXSLTScriptExecution.cs (2)
92objectCreation.Arguments, 239OperationKind.ObjectCreation => ((IObjectCreationOperation)rhs).Arguments,
src\11b41c7305441175\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (3)
161foreach (IArgumentOperation argumentOperation in operation.Arguments) 174foreach (IArgumentOperation argumentOperation in operation.Arguments) 195operation.Arguments,
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
250IEnumerable<IArgumentOperation> taintedArguments = GetTaintedArguments(operation.Arguments);
src\47c588c5b8785708\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
244ProcessRegularInvocationOrCreation(operation.Constructor, operation.Arguments, operation);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocation.cs (1)
160IObjectCreationOperation objectCreation => objectCreation.Arguments,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3163operation.Arguments, operation, defaultValue, isLambdaOrLocalFunction: false, out _);
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
46|| ctor.Arguments[0].Value.ConstantValue.Value is not true)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (1)
35foreach (IArgumentOperation argument in operation.Arguments)
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (1)
35foreach (IArgumentOperation argument in operation.Arguments)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (1)
35foreach (IArgumentOperation argument in operation.Arguments)
System.Text.RegularExpressions.Generator (5)
UpgradeToGeneratedRegexAnalyzer.cs (2)
47create.Arguments.Length <= 2 && 48ValidateParameters(create.Arguments),
UpgradeToGeneratedRegexCodeFixer.cs (3)
165operationArguments = ((IObjectCreationOperation)operation).Arguments; 233objectCreation.Arguments : 278objectCreation.Arguments :