1 implementation of Initializer
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7841public IVariableInitializerOperation? Initializer { get; }
13 references to Initializer
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (3)
5819if (declarator.Initializer == null && declaration.Initializer == null) 5850if (declaration.Initializer != null) 5852IOperation operationInitializer = VisitRequired(declaration.Initializer.Value);
Operations\OperationExtensions.cs (1)
180return declarationOperation.Initializer ?? (declarationOperation.Parent as IVariableDeclarationOperation)?.Initializer;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
152var initializerValue = declaration.Initializer?.Value ?? declarator.Initializer?.Value;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
229var variableInitializer = declarator.Initializer ?? declaration.Initializer;
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IConversionExpression.cs (2)
5335((IVariableDeclarationGroupOperation)operation).Declarations.Single().Initializer; 5338((IVariableDeclarationOperation)operation).Initializer.Value;
Microsoft.CodeAnalysis.Features (3)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
123var initializer = (localDeclaration.Initializer ?? declarator.Initializer)?.Value;
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
152var initializerValue = declaration.Initializer?.Value ?? declarator.Initializer?.Value;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
229var variableInitializer = declarator.Initializer ?? declaration.Initializer;
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
513Visit(operation.Initializer, "Initializer");
Compilation\TestOperationVisitor.cs (1)
150var initializer = operation.Initializer;