1 override of IsScriptClass
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
914public override bool IsScriptClass
27 references to IsScriptClass
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.cs (1)
453return ((NamedTypeSymbol)containingMember).IsScriptClass;
Binder\Binder_AnonymousTypes.cs (1)
201return ((NamedTypeSymbol)member).IsScriptClass;
Binder\Binder_Await.cs (1)
157if (containingMemberOrLambda.ContainingType.IsScriptClass)
Binder\Binder_Expressions.cs (3)
52bool inTopLevelScriptMember = (object)containingType != null && containingType.IsScriptClass; 2268if (InFieldInitializer && !currentType.IsScriptClass) 2283(containingMember.Kind != SymbolKind.NamedType || currentType.IsScriptClass);
Binder\Binder_Initializers.cs (1)
207Debug.Assert(scriptClassBinder.ContainingMemberOrLambda is NamedTypeSymbol { IsScriptClass: true });
Binder\ExpressionVariableFinder.cs (3)
600if ((object)container != null && container.IsScriptClass && 622if ((object)container != null && container.IsScriptClass && 647if ((object)container != null && container.IsScriptClass &&
Binder\InContainerBinder.cs (1)
54get { return (_container.Kind == SymbolKind.NamedType) && ((NamedTypeSymbol)_container).IsScriptClass; }
Compilation\CSharpSemanticModel.cs (1)
1595if ((object)containingType != null && containingType.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)containingType).IsScriptClass)
Compilation\SyntaxTreeSemanticModel.cs (1)
1279outer = outer.GetFieldInitializerBinder(symbol, suppressBinderFlagsFieldInitializer: !this.IsRegularCSharp && symbol.ContainingType.IsScriptClass);
Compiler\MethodCompiler.cs (2)
459if (containingType.IsScriptClass) 578Debug.Assert(containingType.IsScriptClass == (scriptCtorOrdinal >= 0));
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
290if (AdaptedNamedTypeSymbol.IsScriptClass)
Symbols\MethodSymbol.cs (1)
655return MethodKind == MethodKind.Constructor && ContainingType.IsScriptClass;
Symbols\NamedTypeSymbol.cs (3)
438Debug.Assert(IsScriptClass); 444Debug.Assert(IsScriptClass); 450Debug.Assert(IsScriptClass);
Symbols\PublicModel\NamedTypeSymbol.cs (1)
189bool INamedTypeSymbol.IsScriptClass => UnderlyingNamedTypeSymbol.IsScriptClass;
Symbols\Source\SourceMemberFieldSymbol.cs (3)
486if (!ContainingType.IsScriptClass) 527else if (this.IsConst && this.ContainingType.IsScriptClass) 612if (!ContainingType.IsScriptClass)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
230else if (!ContainingType.IsScriptClass && !(ContainingType.IsStatic && ContainingType.Arity == 0))
Symbols\SymbolExtensions.cs (1)
195return type.IsScriptClass ? type.InstanceConstructors.Single().ThisParameter : null;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
449Debug.Assert(containingType.IsScriptClass);