103 references to Assembly
Microsoft.CodeAnalysis.CSharp (103)
Binder\Binder.cs (1)
841return new CompoundUseSiteInfo<AssemblySymbol>(futureDestination, Compilation.Assembly);
Binder\Binder_Constraints.cs (1)
321if (!Compilation.Assembly.RuntimeSupportsByRefLikeGenerics)
Binder\Binder_Conversions.cs (2)
423if (!Compilation.Assembly.RuntimeSupportsStaticAbstractMembersInInterfaces) 439if (!Compilation.Assembly.RuntimeSupportsInlineArrayTypes)
Binder\Binder_Expressions.cs (8)
1491var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 4084var arrayType = ArrayTypeSymbol.CreateCSharpArray(Compilation.Assembly, TypeWithAnnotations.Create(bestType), rank); 6605Debug.Assert((object)this.Compilation.Assembly != null); 6606return IsSymbolAccessibleConditional(constructor, this.Compilation.Assembly, ref useSiteInfo); 8608if (!Compilation.Assembly.RuntimeSupportsByRefFields) 8710if (!Compilation.Assembly.RuntimeSupportsStaticAbstractMembersInInterfaces && Compilation.SourceModule != symbol.ContainingModule) 8722else if (!Compilation.Assembly.RuntimeSupportsDefaultInterfaceImplementation && Compilation.SourceModule != symbol.ContainingModule) 9181if (!Compilation.Assembly.RuntimeSupportsInlineArrayTypes)
Binder\Binder_Lookup.cs (3)
1462diagInfo = new CSDiagnosticInfo(ErrorCode.ERR_FriendRefNotEqualToThis, unwrappedSymbol.ContainingAssembly.Identity.ToString(), AssemblyIdentity.PublicKeyToString(this.Compilation.Assembly.PublicKey)); 1521ImmutableArray<byte> publicKey = this.Compilation.Assembly.PublicKey; 1647return !IsEffectivelyPrivate(symbol) || symbol.ContainingAssembly == this.Compilation.Assembly;
Binder\Binder_Operators.cs (3)
2398if (!Compilation.Assembly.RuntimeSupportsStaticAbstractMembersInInterfaces) 4436if (Compilation.Assembly.RuntimeSupportsNumericIntPtr) 4452if (Compilation.Assembly.RuntimeSupportsNumericIntPtr)
Binder\Binder_Symbols.cs (10)
350return symbol.ContainingNamespaceOrType() ?? this.Compilation.Assembly.GlobalNamespace; 669var array = ArrayTypeSymbol.CreateCSharpArray(this.Compilation.Assembly, type, rankSpecifier.Rank); 834return TypeWithAnnotations.Create(new ExtendedErrorTypeSymbol(qualifierOpt ?? this.Compilation.Assembly.GlobalNamespace, string.Empty, arity: 0, errorInfo: null)); 861Compilation.Assembly.GlobalNamespace, identifierValueText, 0, 1904if (container is object && container != Compilation.Assembly && container != Compilation.Assembly.CorLibrary) 2129if (ns.ContainingAssembly == Compilation.Assembly) 2141Debug.Assert(arg2.ContainingAssembly == Compilation.Assembly); 2298return new ExtendedErrorTypeSymbol(qualifierOpt ?? Compilation.Assembly.GlobalNamespace, simpleName, arity, info); 2619Compilation.Assembly.Modules[0].GetReferencedAssemblySymbols())
Binder\BuckStopsHereBinder.cs (1)
70return IsSymbolAccessibleConditional(symbol, Compilation.Assembly, ref useSiteInfo);
Binder\DecisionDagBuilder.cs (2)
459var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1300var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly);
Binder\Semantics\Conversions\Conversions.cs (1)
25: base(binder.Compilation.Assembly.CorLibrary, currentRecursionDepth, includeNullability, otherNullabilityOpt)
BoundTree\UnboundLambda.cs (1)
226var useSiteInfo = withDependencies ? new CompoundUseSiteInfo<AssemblySymbol>(binder.Compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Compilation\CSharpCompilation.cs (19)
1198return index < 0 ? null : this.Assembly.Modules[index]; 1211return Assembly.Modules.SelectMany(module => module.GetReferencedAssemblies()); 1299modules.AddRange(Assembly.Modules); 1396return Assembly.Modules[0]; 1667result = new MissingMetadataTypeSymbol.TopLevel(Assembly.CorLibrary.Modules[0], ref emittedName, specialType); 1671result = Assembly.GetSpecialType(specialType); 1746return Assembly.GetSpecialTypeMember(specialMember); 1756var result = Assembly.GetTypeByReflectionType(type); 1785TypeSymbol? symbol = Assembly.GetTypeByReflectionType(HostObjectType); 1819var result = this.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName, includeReferences: true, isWellKnownType: false, conflicts: out var _); 1843return this.Assembly.ObjectType; 2375return ArrayTypeSymbol.CreateCSharpArray(this.Assembly, TypeWithAnnotations.Create(elementType, elementNullableAnnotation), rank); 3207Assembly.ForceComplete(location, symbolFilter, cancellationToken); 3768var corAssembly = Assembly.CorLibrary as Symbols.Metadata.PE.PEAssemblySymbol; 3907get { return this.Assembly.GetPublicSymbol(); } 4092if (!FunctionPointerTypeSymbol.IsCallingConventionModifier(internalType) || @this.Assembly.CorLibrary != internalType.ContainingAssembly) 4680return !Assembly.RuntimeSupportsNumericIntPtr; 4802return sustainedLowLatency != null && sustainedLowLatency.ContainingAssembly == Assembly.CorLibrary; 4807=> this.Assembly.SupportsRuntimeCapability(capability);
Compilation\SyntaxTreeSemanticModel.cs (4)
1328container = _compilation.Assembly.GlobalNamespace; 2306return _compilation.Assembly.GlobalNamespace; 2318return _compilation.Assembly.GlobalNamespace; 2322return _compilation.Assembly.GlobalNamespace.ImplicitType;
Compiler\ClsComplianceChecker.cs (1)
77checker.Visit(compilation.Assembly);
Compiler\MethodCompiler.cs (1)
344SourceAssemblySymbol assembly = (SourceAssemblySymbol)compilation.Assembly;
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
269var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
620var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(Diagnostics, _bound.Compilation.Assembly);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
117_payloadType = ArrayTypeSymbol.CreateCSharpArray(methodBodyFactory.Compilation.Assembly, TypeWithAnnotations.Create(payloadElementType)); 253ArrayTypeSymbol.CreateCSharpArray(_methodBodyFactory.Compilation.Assembly, TypeWithAnnotations.Create(_payloadType));
Lowering\LocalRewriter\LocalRewriter.cs (2)
630TypeSymbol container = compilation.Assembly.GetSpecialType(type); 1136return new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
2013method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member); 2016(object)(method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member)) == null)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (6)
237ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType), 293arrayType = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType); 414arrayOrList = CreateEmptyArray(syntax, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)); 435SynthesizedReadOnlyListKind.Array => CreateAndPopulateArray(node, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)), 522compilation.Assembly.RuntimeSupportsInlineArrayTypes; 535Debug.Assert(_compilation.Assembly.RuntimeSupportsInlineArrayTypes);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
104var byteArray = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, TypeWithAnnotations.Create(byteType)); 814var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1491Debug.Assert(!_compilation.Assembly.RuntimeSupportsNumericIntPtr); 1790Debug.Assert(!_compilation.Assembly.RuntimeSupportsNumericIntPtr);
Lowering\LocalRewriter\LocalRewriter_Literal.cs (2)
131var ctor = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member); 150var ctor = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(SpecialMember.System_DateTime__CtorInt64);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
166method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(SpecialMember.System_Decimal__op_UnaryNegation); 818var method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member);
Symbols\Compilation_WellKnownMembers.cs (4)
106result = GetRuntimeMember(type, descriptor, WellKnownMemberSignatureComparer, accessWithinOpt: this.Assembly); 148result = this.Assembly.GetTypeByMetadataName( 170result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type, errorInfo); 174result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type);
Symbols\ConstraintsHelper.cs (4)
83template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)); 104if (!typeParameter.DeclaringCompilation.Assembly.RuntimeSupportsByRefLikeGenerics) 539this(currentCompilation, conversions, includeNullability, location, diagnostics, template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)) 953if (!args.CurrentCompilation.Assembly.RuntimeSupportsByRefLikeGenerics)
Symbols\ExtendedErrorTypeSymbol.cs (1)
29: this(compilation.Assembly.GlobalNamespace, name, arity, errorInfo, unreported, variableUsedBeforeDeclaration)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (4)
211specifierType = compilation.Assembly.CorLibrary.LookupDeclaredTopLevelMetadataType(ref metadataName); 213Debug.Assert(specifierType is null || ReferenceEquals(specifierType.ContainingAssembly, compilation.Assembly.CorLibrary)); 217specifierType = new MissingMetadataTypeSymbol.TopLevel(compilation.Assembly.CorLibrary.Modules[0], ref metadataName, new CSDiagnosticInfo(ErrorCode.ERR_TypeNotFound, typeName)); 231if (!compilation.Assembly.RuntimeSupportsUnmanagedSignatureCallingConvention)
Symbols\ReferenceManager.cs (4)
1089: base(compilation.Assembly.Identity, GetReferencedAssemblies(compilation), embedInteropTypes) 1097var modules = compilation.Assembly.Modules; 1140assemblies.Add(Compilation.Assembly); 1165return ReferenceEquals(asm, Compilation.Assembly);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
494if (!compilation.Assembly.RuntimeSupportsByRefFields)
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
58ArrayTypeSymbol.CreateCSharpArray(compilation.Assembly,
Symbols\TypeSymbol.cs (2)
836var useSiteInfo = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1005var useSiteInfo2 = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Utilities\TypeSymbolExtensions.cs (2)
279return compilation.Assembly.GetSpecialType(SpecialType.System_Object); 283return compilation.Assembly.GetSpecialType(SpecialType.System_ValueType);