3 writes to Compilation
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (3)
338
Compilation
= null!;
346
Compilation
= null!;
373
Compilation
= compilation;
28 references to Compilation
Microsoft.CodeAnalysis.CodeStyle (28)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
44
var semanticModel = reader.
Compilation
.GetSemanticModel(syntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs (1)
53
var semanticModel = reader.
Compilation
.GetSemanticModel(syntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (2)
65
var anonymousType = reader.
Compilation
.CreateAnonymousTypeSymbol(
73
return new SymbolKeyResolution(reader.
Compilation
.ObjectType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ArrayTypeSymbolKey.cs (1)
33
result.AddIfNotNull(reader.
Compilation
.CreateArrayTypeSymbol(typeSymbol, rank));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (1)
26
var compilation = reader.
Compilation
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
186
TryGetSemanticModel(reader.
Compilation
, firstSourceTree, out var semanticModel))
244
if (!SymbolKey.Equals(reader.
Compilation
, name, symbol.Name))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (2)
56
var unaryOperator = reader.
Compilation
.CreateBuiltinOperator(name, returnTypeSymbol, parameterTypes[0]);
60
var binaryOperator = reader.
Compilation
.CreateBuiltinOperator(name, returnTypeSymbol, parameterTypes[0], parameterTypes[1]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.DynamicTypeSymbolKey.cs (2)
22
if (reader.
Compilation
.Language == LanguageNames.VisualBasic)
32
return new SymbolKeyResolution(reader.
Compilation
.DynamicType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (4)
98
var originalType = reader.
Compilation
.CreateErrorTypeSymbol(container, name, arity);
105
result.AddIfNotNull(reader.
Compilation
.CreateErrorTypeSymbol(container: null, name, arity));
123
var currentNamespace = reader.
Compilation
.GlobalNamespace;
127
currentNamespace = reader.
Compilation
.CreateErrorNamespaceSymbol(currentNamespace, namespaceNames[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
84
if (reader.
Compilation
.Language == LanguageNames.VisualBasic)
91
return new SymbolKeyResolution(reader.
Compilation
.CreateFunctionPointerTypeSymbol(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (3)
56
if (isNativeIntegerType && reader.
Compilation
.Language == LanguageNames.CSharp)
59
return new SymbolKeyResolution(reader.
Compilation
.CreateNativeIntegerTypeSymbol(signed));
131
reader.
Compilation
.CreateErrorTypeSymbol(container, name, arity),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
86
return new SymbolKeyResolution(reader.
Compilation
.GlobalNamespace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
87
if (SymbolKey.Equals(reader.
Compilation
, parameter.MetadataName, metadataName))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PointerTypeSymbolKey.cs (2)
27
if (reader.
Compilation
.Language == LanguageNames.VisualBasic)
35
result.AddIfNotNull(reader.
Compilation
.CreatePointerTypeSymbol(typeSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PreprocessingSymbolKey.cs (1)
19
return new SymbolKeyResolution(reader.
Compilation
.CreatePreprocessingSymbol(reader.ReadRequiredString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
86
result.AddIfNotNull(reader.
Compilation
.CreateTupleTypeSymbol(
122
var result = reader.
Compilation
.CreateTupleTypeSymbol(