36 references to Compilation
Microsoft.Analyzers.Extra (1)
CallAnalysis\Arrays.cs (1)
114var flagsAttr = context.Compilation.GetTypeByMetadataName("System.FlagsAttribute");
Microsoft.Analyzers.Local (1)
CallAnalysis\ToInvariantString.cs (1)
46var cultureInfo = context.Compilation.GetTypeByMetadataName("System.Globalization.CultureInfo");
Microsoft.AspNetCore.Components.Analyzers (3)
ComponentParameterUsageAnalyzer.cs (2)
76if (!ComponentFacts.IsComponent(symbols, context.Compilation, propertyContainingType)) 89var conversion = context.Compilation.ClassifyConversion(propertyContainingType, assignmentContainingType);
InternalUsageAnalyzer.cs (1)
129if (symbol == null || SymbolEqualityComparer.Default.Equals(symbol.ContainingAssembly, context.Compilation.Assembly))
Microsoft.AspNetCore.Components.SdkAnalyzers (3)
ComponentParameterUsageAnalyzer.cs (2)
76if (!ComponentFacts.IsComponent(symbols, context.Compilation, propertyContainingType)) 89var conversion = context.Compilation.ClassifyConversion(propertyContainingType, assignmentContainingType);
InternalUsageAnalyzer.cs (1)
129if (symbol == null || SymbolEqualityComparer.Default.Equals(symbol.ContainingAssembly, context.Compilation.Assembly))
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
103=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PrimaryConstructorTests.cs (3)
4351VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 4366VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 5697VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, @"");
Semantics\RecordTests.cs (2)
26859VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 26874VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
6423VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, @"");
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
103=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
Microsoft.CodeAnalysis.Test.Utilities (16)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2943context.RegisterOperationAction(context => HandleCallback(context.Operation.Syntax.GetLocation(), context.Compilation, context.ReportDiagnostic, context.CancellationToken), OperationKind.VariableDeclaration);
Diagnostics\OperationTestAnalyzer.cs (15)
71if (operationContext.Operation.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 107if (operationContext.ContainingSymbol.Name.StartsWith("Funky") && operationContext.Compilation.Language != "Mumble") 547if (argument.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 851if (initializer != null && !initializer.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 910if (!switchSection.HasErrors(operationContext.Compilation, operationContext.CancellationToken) && switchSection.Clauses.Length > 1) 1044if (eventAssignment.EventReference.Kind == OperationKind.Invalid || eventAssignment.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 1264if (addressOfOperation.Reference.Kind == OperationKind.Invalid && addressOfOperation.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 1611if (!left.HasErrors(operationContext.Compilation, operationContext.CancellationToken) && 1612!right.HasErrors(operationContext.Compilation, operationContext.CancellationToken) && 1647if (!operand.HasErrors(operationContext.Compilation, operationContext.CancellationToken) && unary.OperatorMethod == null) 1789if (binary.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 1797if (unary.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 1805if (inc.HasErrors(operationContext.Compilation)) 1895if (conversion.HasErrors(operationContext.Compilation, operationContext.CancellationToken)) 1932if (forCondition.HasErrors(operationContext.Compilation, operationContext.CancellationToken))
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
76c.RegisterOperationAction(b => ThrowIfMatch(nameof(c.RegisterOperationAction), new AnalysisContextInfo(b.Compilation, b.Operation)), OperationKind.Return);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Analyzers\VisualBasic\Analyzers\ConvertTypeofToNameof\VisualBasicConvertTypeOfToNameOfDiagnosticAnalyzer.vb (1)
23Dim compilation = context.Compilation
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\Analyzers\ConvertTypeofToNameof\VisualBasicConvertTypeOfToNameOfDiagnosticAnalyzer.vb (1)
23Dim compilation = context.Compilation
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
663ManualTypeMarshallingHelper.ReplaceGenericPlaceholderInType(managedTypeInAttribute, entryType, context.Compilation),