5 references to AnalyzedOperations
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\GetDiagnosticsTests.cs (4)
1539
Assert.Empty(analyzer.
AnalyzedOperations
);
1644
Assert.Equal(expectedOperationCallbacks.Count, analyzer.
AnalyzedOperations
.Count);
1645
AssertEx.All(analyzer.
AnalyzedOperations
, operation => operation.Kind == OperationKind.VariableDeclaration);
1646
AssertEx.SetEqual(expectedOperationCallbacks, analyzer.
AnalyzedOperations
.Select(op => op.Syntax.ToString()).ToHashSet());
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
3017
context.RegisterOperationAction(operationContext =>
AnalyzedOperations
.Add(operationContext.Operation), OperationKind.VariableDeclaration);