Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
35 references to IsStatic
Microsoft.CodeAnalysis.CSharp (34)
Compiler\MethodBodySynthesizer.cs (1)
181
if (!accessor.
IsStatic
)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
106
Debug.Assert(originalMethod is not { MethodKind: MethodKind.LocalFunction } || !originalMethod.IsStatic ||
IsStatic
);
Symbols\Source\SourceConstructorSymbol.cs (1)
237
: ((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(
IsStatic
);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
162
get { return this.
IsStatic
? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; }
221
if (containingType.TryCalculateSyntaxOffsetOfPositionInInitializer(position, tree, this.
IsStatic
, ctorInitializerLength, out syntaxOffset))
Symbols\Source\SourceMemberContainerSymbol.cs (5)
3975
builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.
IsStatic
, compilation, parameterList);
3978
builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.
IsStatic
, compilation, baseParamList);
4028
case (SourceConstructorSymbol {
IsStatic
: false } currentConstructor, SourceConstructorSymbol {
IsStatic
: false } prevConstructor):
5610
builder.UpdateIsNullableEnabledForConstructorsAndFields(useStatic: constructor.
IsStatic
, isNullableEnabled);
Symbols\Source\SourceMemberMethodSymbol.cs (7)
585
!this.
IsStatic
&& this.IsMetadataVirtual(ignoreInterfaceImplementationChanges ? IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges : IsMetadataVirtualOption.None);
603
Debug.Assert(!this.
IsStatic
);
724
if (!
IsStatic
)
845
if ((object)thisParameter != null ||
IsStatic
)
1058
if ((!
IsStatic
|| MethodKind is MethodKind.StaticConstructor) &&
1064
if ((((hasBody || IsExtern) && !(
IsStatic
&& IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
1069
if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation &&
IsStatic
&& !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (8)
241
else if (!
IsStatic
)
251
else if (ContainingType is { IsExtension: true, ExtensionParameter.Name: "" } && !
IsStatic
)
505
if (definition.
IsStatic
!= implementation.
IsStatic
)
823
Debug.Assert(!
IsStatic
|| !IsOverride); // Otherwise should have been reported and cleared earlier.
824
Debug.Assert(!
IsStatic
|| ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
895
else if (
IsStatic
&& IsDeclaredReadOnly)
922
else if (ContainingType.IsStatic && !
IsStatic
)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
491
internal sealed override bool IsInitOnly => !
IsStatic
&& _usesInit;
553
else if (LocalDeclaredReadOnly &&
IsStatic
)
572
else if (_usesInit &&
IsStatic
)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
86
if (
IsStatic
&& (IsAbstract || IsVirtual))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (4)
59
Debug.Assert(!this.
IsStatic
);
91
if (!this.
IsStatic
&& !isCompoundAssignmentOrIncrementAssignment)
103
else if (this.DeclaredAccessibility != Accessibility.Public || !this.
IsStatic
)
385
if (ContainingType is { IsExtension: true, ExtensionParameter: { Type.IsStatic: false } extensionParameter } && !
IsStatic
&&
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
95
return ContainingType.IsNullableEnabledForConstructorsAndInitializers(
IsStatic
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
9324
Assert.True(entryPoint.
IsStatic
);