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