1 implementation of Declarations
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4063public ImmutableArray<IVariableDeclarationOperation> Declarations { get; }
24 references to Declarations
Microsoft.Analyzers.Extra (1)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
150return declarationGroup.Declarations[0].Declarators[0].Symbol;
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (3)
3969var resourceQueue = ArrayBuilder<(IVariableDeclarationOperation, IVariableDeclaratorOperation)>.GetInstance(declarationGroup.Declarations.Length); 3971foreach (IVariableDeclarationOperation declaration in declarationGroup.Declarations) 5803foreach (var declaration in operation.Declarations)
Operations\OperationExtensions.cs (1)
136foreach (IVariableDeclarationOperation group in declarationGroup.Declarations)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
140varDeclStatement.Declarations.Length != 1) 145var declaration = varDeclStatement.Declarations[0];
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
209if (localDeclaration.Declarations.Length != 1) 214var declaration = localDeclaration.Declarations[0];
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
575Declarations: [IVariableDeclarationOperation
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
575Declarations: [IVariableDeclarationOperation
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
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;
IOperation\IOperationTests_IConversionExpression.cs (1)
5335((IVariableDeclarationGroupOperation)operation).Declarations.Single().Initializer;
Microsoft.CodeAnalysis.Features (6)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
110if (operation?.Declarations.Length != 1) 113var localDeclaration = operation.Declarations[0];
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
140varDeclStatement.Declarations.Length != 1) 145var declaration = varDeclStatement.Declarations[0];
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
209if (localDeclaration.Declarations.Length != 1) 214var declaration = localDeclaration.Declarations[0];
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\OperationTreeVerifier.cs (1)
460var variablesCountStr = $"{operation.Declarations.Length} declarations";
Compilation\TestOperationVisitor.cs (1)
128AssertEx.Equal(operation.Declarations, operation.ChildOperations);
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))