12 references to GetVariableInitializer
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
2483/// in the parent operation. Call <see cref="OperationExtensions.GetVariableInitializer(IVariableDeclaratorOperation)" />
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
270var variableInitializer = operation.GetVariableInitializer(); 419initializerValue = variableDeclarator.GetVariableInitializer()?.Value;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NullableHelpers\NullableHelpers.cs (2)
79? variableDeclarator.GetVariableInitializer()!.Value.Syntax 108IVariableDeclaratorOperation variableDeclarator => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
74var hasInitializer = declarator.GetVariableInitializer() != null;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NullableHelpers\NullableHelpers.cs (2)
79? variableDeclarator.GetVariableInitializer()!.Value.Syntax 108IVariableDeclaratorOperation variableDeclarator => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
91IVariableInitializerOperation initializer = variable.GetVariableInitializer();
Diagnostics\OperationTestAnalyzer.cs (1)
850var initializer = decl.GetVariableInitializer();
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
270var variableInitializer = operation.GetVariableInitializer(); 419initializerValue = variableDeclarator.GetVariableInitializer()?.Value;