20 references to VariableDeclaration
Microsoft.CodeAnalysis (3)
Generated\Operations.Generated.cs (2)
2512
/// <item><description><see cref="OperationKind.
VariableDeclaration
"/></description></item>
7908
public override OperationKind Kind => OperationKind.
VariableDeclaration
;
Operations\ControlFlowGraphBuilder.cs (1)
3985
Debug.Assert(resources.Kind != OperationKind.
VariableDeclaration
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Diagnostics\GetDiagnosticsTests.cs (3)
715
var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.
VariableDeclaration
));
1645
AssertEx.All(analyzer.AnalyzedOperations, operation => operation.Kind == OperationKind.
VariableDeclaration
);
1649
AssertEx.All(analyzer.AnalyzedOperationsInsideOperationBlock, operation => operation.Kind == OperationKind.
VariableDeclaration
);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (2)
1190
=> variableDeclarations.Add(context.Operation.Syntax), OperationKind.
VariableDeclaration
);
1211
OperationKind.
VariableDeclaration
);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticServiceTests.vb (4)
2403
End Sub, OperationKind.
VariableDeclaration
)
2463
Assert.Equal(OperationKind.
VariableDeclaration
, analyzedOperation.Kind)
2523
context.RegisterOperationAction(Sub(operationContext) AnalyzedOperations.Add(operationContext.Operation), OperationKind.
VariableDeclaration
)
2527
operationBlockStartContext.RegisterOperationAction(Sub(operationContext) AnalyzedOperationsInsideOperationBlock.Add(operationContext.Operation), OperationKind.
VariableDeclaration
)
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\ControlFlowGraphVerifier.cs (1)
1856
case OperationKind.
VariableDeclaration
:
Compilation\OperationTreeVerifier.cs (1)
760
Assert.NotEqual(OperationKind.
VariableDeclaration
, operation.Resources.Kind);
Compilation\TestOperationVisitor.cs (2)
148
Assert.Equal(OperationKind.
VariableDeclaration
, operation.Kind);
465
Assert.NotEqual(OperationKind.
VariableDeclaration
, operation.Resources.Kind);
Diagnostics\CommonDiagnosticAnalyzers.cs (4)
2889
OperationKind.
VariableDeclaration
);
2943
context.RegisterOperationAction(context => HandleCallback(context.Operation.Syntax.GetLocation(), context.Compilation, context.ReportDiagnostic, context.CancellationToken), OperationKind.
VariableDeclaration
);
3017
context.RegisterOperationAction(operationContext => AnalyzedOperations.Add(operationContext.Operation), OperationKind.
VariableDeclaration
);
3045
operationBlockStartContext.RegisterOperationAction(operationContext => AnalyzedOperationsInsideOperationBlock.Add(operationContext.Operation), OperationKind.
VariableDeclaration
);