49 references to SourceModule
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder.cs (1)
160internal bool UseUpdatedEscapeRules => Compilation.SourceModule.UseUpdatedEscapeRules;
Binder\Binder_Conversions.cs (2)
419if (Compilation.SourceModule != method.ContainingModule) 431Compilation.SourceModule != method.ContainingModule)
Binder\Binder_Expressions.cs (4)
6262initializerType.ContainingModule != Compilation.SourceModule) 8605if ((object)Compilation.SourceModule != fieldSymbol.OriginalDefinition.ContainingModule && 8711if (!Compilation.Assembly.RuntimeSupportsStaticAbstractMembersInInterfaces && Compilation.SourceModule != symbol.ContainingModule) 8723else if (!Compilation.Assembly.RuntimeSupportsDefaultInterfaceImplementation && Compilation.SourceModule != symbol.ContainingModule)
Binder\Binder_Invocation.cs (1)
1736if (Compilation.SourceModule != paramsParameter.ContainingModule)
Binder\Binder_Lookup.cs (2)
283submissionImports = ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetImports(declarationSyntax, basesBeingResolved); 1407else if (!this.Compilation.SourceModule.Equals(unwrappedSymbol.ContainingModule) && unwrappedSymbol.IsHiddenByCodeAnalysisEmbeddedAttribute())
Binder\Binder_Operators.cs (3)
1384operatorMethod.ContainingModule != Compilation.SourceModule) 2399if (Compilation.SourceModule != methodOpt.ContainingModule) 2427if (Compilation.SourceModule != methodOpt.ContainingModule)
Binder\Binder_Symbols.cs (2)
2261((SourceModuleSymbol)this.Compilation.SourceModule).AnyReferencedAssembliesAreLinked) 2530return (symbol.ContainingModule == compilation.SourceModule) ?
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
921outer = AddInImportsBinders((SourceNamespaceSymbol)outer.Compilation.SourceModule.GetModuleNamespace(ns), namespaceDecl, outer, inUsing); 984result = WithUsingNamespacesAndTypesBinder.Create((SourceNamespaceSymbol)compilation.SourceModule.GlobalNamespace, compilationUnit, result, 1003result = AddInImportsBinders((SourceNamespaceSymbol)compilation.SourceModule.GlobalNamespace, compilationUnit, result, inUsing); 1017result = AddInImportsBinders((SourceNamespaceSymbol)compilation.SourceModule.GlobalNamespace, compilationUnit, result, inUsing);
Binder\ForEachLoopBinder.cs (2)
1269enumeratorType.ContainingModule != Compilation.SourceModule) 1776if (implementedIEnumerable is not null && needSupportForRefStructInterfaces && type.ContainingModule != Compilation.SourceModule)
Binder\InSubmissionClassBinder.cs (2)
60internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetExternAliases(_declarationSyntax); 62internal override ImmutableArray<AliasAndUsingDirective> UsingAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetUsingAliases(_declarationSyntax, basesBeingResolved: null);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
1304(binder.Compilation.LanguageVersion > LanguageVersion.CSharp12 || member.ContainingModule == binder.Compilation.SourceModule)))
Binder\UsingStatementBinder.cs (1)
290(fromExpression ? expressionOpt!.Type : declarationTypeOpt)!.ContainingModule != originalBinder.Compilation.SourceModule)
Binder\WithExternAndUsingAliasesBinder.cs (1)
178foreach (var declaration in ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).MergedDeclaration.Declarations)
Compilation\CSharpCompilation.cs (9)
1627return ((SourceNamespaceSymbol)SourceModule.GlobalNamespace).GetImports((CSharpSyntaxNode)tree.GetRoot(), basesBeingResolved: null); 1930NamespaceSymbol globalNamespace = this.SourceModule.GlobalNamespace; 2486((SourceModuleSymbol)SourceModule).DiscoverInterceptorsIfNeeded(); 3099foreach (var singleDeclaration in ((SourceNamespaceSymbol)SourceModule.GlobalNamespace).MergedDeclaration.Declarations) 3369originalFileName: this.SourceModule.Name, 3370internalName: this.SourceModule.Name, 3427(SourceModuleSymbol)SourceModule, 4006get { return this.SourceModule.GetPublicSymbol(); } 4713if (symbol.ContainingModule != SourceModule)
Compiler\MethodCompiler.cs (1)
159methodCompiler.CompileNamespace(compilation.SourceModule.GlobalNamespace);
Compiler\SynthesizedMetadataCompiler.cs (1)
49compiler.Visit(compilation.SourceModule.GlobalNamespace);
Lowering\LocalRewriter\LocalRewriter.cs (1)
332if (delegateType?.IsAnonymousType == true && delegateType.ContainingModule == _compilation.SourceModule &&
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
744if (delegateType.IsAnonymousType && delegateType.ContainingModule == _compilation.SourceModule &&
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
192bool useUpdatedEscapeRules = Compilation.SourceModule.UseUpdatedEscapeRules;
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
59get { return this.Manager.Compilation.SourceModule.GlobalNamespace; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
137get { return this.Manager.Compilation.SourceModule.GlobalNamespace; }
Symbols\Compilation_UsedAssemblies.cs (1)
122foreach (var assembly in SourceModule.ReferencedAssemblySymbols)
Symbols\ConstraintsHelper.cs (1)
946if (args.CurrentCompilation.SourceModule != typeParameter.ContainingModule)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
503UseUpdatedEscapeRules = compilation.SourceModule.UseUpdatedEscapeRules;
Symbols\Symbol_Attributes.cs (1)
570((SourceModuleSymbol)compilation.SourceModule).RecordPresenceOfBadAttributes();
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
115return compilation.SourceModule.GlobalNamespace.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName).OfType<SourceNamedTypeSymbol>().SingleOrDefault(s => s.IsSimpleProgram); 224var declaringSymbol = (SourceNamespaceSymbol)compilation.SourceModule.GlobalNamespace;
Symbols\Tuples\TupleTypeSymbol.cs (1)
55if (diagnostics?.DiagnosticBag is object && ((SourceModuleSymbol)compilation.SourceModule).AnyReferencedAssembliesAreLinked)