1 implementation of Arguments
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5966public ImmutableArray<IArgumentOperation> Arguments { get; }
78 references to Arguments
Aspire.Hosting.Azure.Provisioning.Tests (1)
AspireProvisioningProxyGeneratorTests.cs (1)
296objectCreation.Arguments,
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (2)
1368return ProcessMethodCall(operation, operation.Constructor, null, operation.Arguments, state); 1430argumentOperation = 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.Build.TaskAuthoring.Analyzer (10)
MultiThreadableTaskAnalyzer.cs (1)
121arguments = creation.Arguments;
MultiThreadableTaskCodeFixProvider.cs (1)
115IObjectCreationOperation creation => creation.Arguments,
PreferTypedParameterAnalyzer.cs (6)
600if (createdType is null || creation.Arguments.Length == 0) 624var sourceProp = FindSourceProperty(creation.Arguments[0].Value, stringInputProps); 654var (sourceProp, _) = FindItemSpecSource(creation.Arguments[0].Value, taskItemInputProps, iTaskItemType); 666creation.Arguments[0].Value, taskItemInputProps, iTaskItemType, taskEnvironmentType); 682ReportPathConsumers(pendingDiagnostics, creation.Arguments, creation.Syntax.GetLocation(), 694ReportStringPathConsumers(pendingDiagnostics, creation.Arguments, creation.Syntax.GetLocation(),
PreferTypedParameterCodeFixProvider.cs (1)
721IObjectCreationOperation creation => creation.Arguments,
TransitiveCallChainAnalyzer.cs (1)
154arguments = 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 (36)
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 (3)
46(string title, string equivalenceKey) = creation.Arguments.Length == 1 69int argumentCount = creation.Arguments.Length; 145IOperation value = creation.Arguments.GetArgumentForParameterAtIndex(parameterIndex).Value;
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)
88SyntaxNode charArgSyntax = objectCreation.Arguments[0].Value.Syntax; 89SyntaxNode intArgSyntax = objectCreation.Arguments[1].Value.Syntax; 124objectCreation.Arguments.Length == 2 &&
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)
parent\Common\OperationExtensions.cs (1)
35foreach (IArgumentOperation argument in operation.Arguments)
Microsoft.Interop.LibraryImportGenerator (1)
parent\Common\OperationExtensions.cs (1)
35foreach (IArgumentOperation argument in operation.Arguments)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
parent\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 :