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