17 references to ScriptClass
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Lookup.cs (4)
292if ((options & LookupOptions.NamespaceAliasesOnly) == 0 && (object)submission.ScriptClass != null) 294LookupMembersWithoutInheritance(submissionSymbols, submission.ScriptClass, name, arity, options, originalBinder, submissionClass, diagnose, ref useSiteInfo, basesBeingResolved); 1893if ((object)submission.ScriptClass != null) 1895AddMemberLookupSymbolsInfoWithoutInheritance(result, submission.ScriptClass, options, originalBinder, scriptClass);
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
443container = compilation.ScriptClass; 958Debug.Assert((object)compilation.ScriptClass != null); 972var scriptClass = compilation.ScriptClass;
Binder\InSubmissionClassBinder.cs (1)
43submission.ScriptClass?.GetExtensionMethods(methods, name, arity, options);
CommandLine\CSharpCompiler.cs (1)
247Symbol? entryPoint = comp.ScriptClass;
Compilation\CSharpCompilation.cs (5)
1813return (IsSubmission && ScriptClass is object) ? 1814ScriptClass.GetScriptInitializer() : 1873if (!this.Options.OutputKind.IsApplication() && (this.ScriptClass is null)) 1931var scriptClass = this.ScriptClass; 4026get { return this.ScriptClass.GetPublicSymbol(); }
Compilation\SyntaxTreeSemanticModel.cs (3)
1212(object)_compilation.ScriptClass != null) 1214var scriptInitializer = _compilation.ScriptClass.GetScriptInitializer(); 2312return this.Compilation.ScriptClass;