1 implementation of Declarators
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7840public ImmutableArray<IVariableDeclaratorOperation> Declarators { get; }
24 references to Declarators
Microsoft.Analyzers.Extra (1)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
150return declarationGroup.Declarations[0].Declarators[0].Symbol;
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (2)
96/// In C#, this will always be a single declaration, with all variables in <see cref="IVariableDeclarationOperation.Declarators" />. 2506/// The initializer of this node is applied to all individual declarations in <see cref="Declarators" />. There cannot
Operations\ControlFlowGraphBuilder.cs (2)
3973foreach (IVariableDeclaratorOperation declarator in declaration.Declarators) 5811foreach (IVariableDeclaratorOperation declarator in operation.Declarators)
Operations\OperationExtensions.cs (1)
162foreach (var decl in declaration.Declarators)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
146if (declaration.Declarators.Length != 1) 151var declarator = declaration.Declarators[0];
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
215var declarators = declaration.Declarators;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
577Declarators: [IVariableDeclaratorOperation
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
577Declarators: [IVariableDeclaratorOperation
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (2)
413var variableTreeLambdaOperation = ((IDelegateCreationOperation)variableDeclarationGroupOperation.Declarations.Single().Declarators.Single().Initializer.Value).Target; 421var variableTreeLambdaOperationSecondRequest = ((IDelegateCreationOperation)variableDeclarationGroupOperationSecondRequest.Declarations.Single().Declarators.Single().Initializer.Value).Target;
Microsoft.CodeAnalysis.Features (6)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
114if (localDeclaration.Declarators.Length != 1) 117var declarator = localDeclaration.Declarators[0];
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
146if (declaration.Declarators.Length != 1) 151var declarator = declaration.Declarators[0];
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
215var declarators = declaration.Declarators;
ValueTracking\ValueTracker.cs (1)
304IVariableDeclarationOperation variableDeclaration => variableDeclaration.Declarators,
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (2)
504var variableCount = operation.Declarators.Length; 512VisitArray(operation.Declarators, "Declarators", false);
Compilation\TestOperationVisitor.cs (1)
149IEnumerable<IOperation> children = operation.IgnoredDimensions.Concat(operation.Declarators);
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
83foreach (IVariableDeclaratorOperation variable in declaration.Declarations.SelectMany(decl => decl.Declarators))
Diagnostics\OperationTestAnalyzer.cs (1)
848foreach (var decl in declarationStatement.Declarations.SelectMany(multiDecl => multiDecl.Declarators))