Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
20 references to IsStatic
Microsoft.CodeAnalysis.CSharp (18)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
5775
DeclarationModifiers.Private | (property.
IsStatic
? DeclarationModifiers.Static : 0),
5779
if (property.
IsStatic
)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
523
!_property.
IsStatic
&&
Symbols\Source\SourcePropertySymbol.cs (2)
764
if (
IsStatic
!= implementation.
IsStatic
)
Symbols\Source\SourcePropertySymbolBase.cs (13)
307
if (ContainingType.IsInterface && !
IsStatic
)
667
get { return (
IsStatic
? 0 : Microsoft.Cci.CallingConvention.HasThis); }
819
if (!
IsStatic
&& ContainingType.IsReadOnly)
840
return new SynthesizedBackingFieldSymbol(this, fieldName, isReadOnly: isReadOnly, isStatic: this.
IsStatic
, hasInitializer: (_propertyFlags & Flags.HasInitializer) != 0);
891
if (!
IsStatic
&& HasAutoPropertySet && SetMethod is { IsInitOnly: false })
924
if (!
IsStatic
&&
1091
Debug.Assert(!
IsStatic
|| !IsOverride); // Otherwise should have been reported and cleared earlier.
1092
Debug.Assert(!
IsStatic
|| ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
1100
else if (
IsStatic
&& HasReadOnlyModifier)
1153
else if (ContainingType is { IsExtension: true, ExtensionParameter.Name: "" } && !
IsStatic
)
1157
else if (ContainingType.IsStatic && !
IsStatic
)
1916
if (!this.
IsStatic
&& (ContainingType.IsRecord || ContainingType.IsRecordStruct) && type.IsPointerOrFunctionPointer())
1921
else if (type.IsRefLikeOrAllowsRefLikeType() && (this.
IsStatic
|| !this.ContainingType.IsRefLikeType))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\RecordTests.cs (2)
160
Assert.False(x.
IsStatic
);
194
Assert.False(x.
IsStatic
);