Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
31 references to IsStatic
Microsoft.CodeAnalysis.CSharp (31)
Compiler\MethodBodySynthesizer.cs (1)
181
if (!accessor.
IsStatic
)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
110
Debug.Assert(!(originalMethod is LocalFunctionSymbol) || !originalMethod.IsStatic ||
IsStatic
);
Symbols\Source\SourceConstructorSymbol.cs (1)
236
: ((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(
IsStatic
);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
161
get { return this.
IsStatic
? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; }
220
if (containingType.TryCalculateSyntaxOffsetOfPositionInInitializer(position, tree, this.
IsStatic
, ctorInitializerLength, out syntaxOffset))
Symbols\Source\SourceMemberContainerSymbol.cs (5)
3643
builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.
IsStatic
, compilation, parameterList);
3646
builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.
IsStatic
, compilation, baseParamList);
3695
case (SourceConstructorSymbol {
IsStatic
: false } currentConstructor, SourceConstructorSymbol {
IsStatic
: false } prevConstructor):
5199
builder.UpdateIsNullableEnabledForConstructorsAndFields(useStatic: constructor.
IsStatic
, isNullableEnabled);
Symbols\Source\SourceMemberMethodSymbol.cs (7)
569
!this.
IsStatic
&& this.IsMetadataVirtual(ignoreInterfaceImplementationChanges ? IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges : IsMetadataVirtualOption.None);
587
Debug.Assert(!this.
IsStatic
);
708
if (!
IsStatic
)
829
if ((object)thisParameter != null ||
IsStatic
)
1110
if ((!
IsStatic
|| MethodKind is MethodKind.StaticConstructor) &&
1116
if ((((hasBody || IsExtern) && !(
IsStatic
&& IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
1121
if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation &&
IsStatic
&& !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (7)
239
else if (!
IsStatic
)
495
if (definition.
IsStatic
!= implementation.
IsStatic
)
807
Debug.Assert(!
IsStatic
|| !IsOverride); // Otherwise should have been reported and cleared earlier.
808
Debug.Assert(!
IsStatic
|| ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
879
else if (
IsStatic
&& IsDeclaredReadOnly)
906
else if (ContainingType.IsStatic && !
IsStatic
)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
490
internal sealed override bool IsInitOnly => !
IsStatic
&& _usesInit;
552
else if (LocalDeclaredReadOnly &&
IsStatic
)
567
else if (_usesInit &&
IsStatic
)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
84
if (
IsStatic
&& (IsAbstract || IsVirtual))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
77
if (!this.
IsStatic
)
82
else if (this.DeclaredAccessibility != Accessibility.Public || !this.
IsStatic
)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
94
return ContainingType.IsNullableEnabledForConstructorsAndInitializers(
IsStatic
);