Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
15 references to IsStatic
Microsoft.CodeAnalysis.CSharp (13)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4778
DeclarationModifiers.Private | (property.
IsStatic
? DeclarationModifiers.Static : 0),
4782
if (property.
IsStatic
)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
483
!_property.
IsStatic
&&
Symbols\Source\SourcePropertySymbolBase.cs (10)
111
isAutoProperty = isAutoProperty && !(containingType.IsInterface && !
IsStatic
) && !IsAbstract && !IsExtern && !isIndexer;
153
this.
IsStatic
,
558
get { return (
IsStatic
? 0 : Microsoft.Cci.CallingConvention.HasThis); }
667
CheckInitializer(IsAutoProperty, ContainingType.IsInterface,
IsStatic
, Location, diagnostics);
680
if (!
IsStatic
&& SetMethod is { IsInitOnly: false })
846
Debug.Assert(!
IsStatic
|| !IsOverride); // Otherwise should have been reported and cleared earlier.
847
Debug.Assert(!
IsStatic
|| ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
855
else if (
IsStatic
&& HasReadOnlyModifier)
896
else if (ContainingType.IsStatic && !
IsStatic
)
1530
else if (this.IsAutoPropertyWithGetAccessor && type.IsRefLikeType && (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
);