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