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