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