105 references to Assembly
Microsoft.CodeAnalysis.CSharp (105)
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)
1494var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 4087var arrayType = ArrayTypeSymbol.CreateCSharpArray(Compilation.Assembly, TypeWithAnnotations.Create(bestType), rank); 6608Debug.Assert((object)this.Compilation.Assembly != null); 6609return IsSymbolAccessibleConditional(constructor, this.Compilation.Assembly, ref useSiteInfo); 8609if (!Compilation.Assembly.RuntimeSupportsByRefFields) 8711if (!Compilation.Assembly.RuntimeSupportsStaticAbstractMembersInInterfaces && Compilation.SourceModule != symbol.ContainingModule) 8723else if (!Compilation.Assembly.RuntimeSupportsDefaultInterfaceImplementation && Compilation.SourceModule != symbol.ContainingModule) 9182if (!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)
2403if (!Compilation.Assembly.RuntimeSupportsStaticAbstractMembersInInterfaces) 4441if (Compilation.Assembly.RuntimeSupportsNumericIntPtr) 4457if (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, 1922if (container is object && container != Compilation.Assembly && container != Compilation.Assembly.CorLibrary) 2147if (ns.ContainingAssembly == Compilation.Assembly) 2159Debug.Assert(arg2.ContainingAssembly == Compilation.Assembly); 2316return new ExtendedErrorTypeSymbol(qualifierOpt ?? Compilation.Assembly.GlobalNamespace, simpleName, arity, info); 2636Compilation.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)
1203return index < 0 ? null : this.Assembly.Modules[index]; 1216return Assembly.Modules.SelectMany(module => module.GetReferencedAssemblies()); 1304modules.AddRange(Assembly.Modules); 1401return Assembly.Modules[0]; 1672result = new MissingMetadataTypeSymbol.TopLevel(Assembly.CorLibrary.Modules[0], ref emittedName, specialType); 1676result = Assembly.GetSpecialType(specialType); 1751return Assembly.GetSpecialTypeMember(specialMember); 1761var result = Assembly.GetTypeByReflectionType(type); 1790TypeSymbol? symbol = Assembly.GetTypeByReflectionType(HostObjectType); 1824var result = this.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName, includeReferences: true, isWellKnownType: false, conflicts: out var _); 1848return this.Assembly.ObjectType; 2380return ArrayTypeSymbol.CreateCSharpArray(this.Assembly, TypeWithAnnotations.Create(elementType, elementNullableAnnotation), rank); 3232Assembly.ForceComplete(location, symbolFilter, cancellationToken); 3793var corAssembly = Assembly.CorLibrary as Symbols.Metadata.PE.PEAssemblySymbol; 3932get { return this.Assembly.GetPublicSymbol(); } 4117if (!FunctionPointerTypeSymbol.IsCallingConventionModifier(internalType) || @this.Assembly.CorLibrary != internalType.ContainingAssembly) 4705return !Assembly.RuntimeSupportsNumericIntPtr; 4827return sustainedLowLatency != null && sustainedLowLatency.ContainingAssembly == Assembly.CorLibrary; 4832=> 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\AsyncIteratorMethodToStateMachineRewriter.cs (1)
333var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
272var 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)
240ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType), 296arrayType = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType); 421arrayOrList = CreateEmptyArray(syntax, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)); 442SynthesizedReadOnlyListKind.Array => createArray(node, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)), 537compilation.Assembly.RuntimeSupportsInlineArrayTypes; 550Debug.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);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
436var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
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);