Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
28 references to IsStatic
Microsoft.CodeAnalysis.CSharp (28)
Compiler\MethodBodySynthesizer.cs (1)
181if (!accessor.IsStatic)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
106Debug.Assert(!(originalMethod is LocalFunctionSymbol) || !originalMethod.IsStatic || IsStatic);
Symbols\Source\SourceConstructorSymbol.cs (1)
236: ((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
161get { return this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; } 220if (containingType.TryCalculateSyntaxOffsetOfPositionInInitializer(position, tree, this.IsStatic, ctorInitializerLength, out syntaxOffset))
Symbols\Source\SourceMemberMethodSymbol.cs (8)
381if (!IsStatic && this.GetIsNewExtensionMember() && ContainingType.ExtensionParameter is { } extensionParameter) 585!this.IsStatic && this.IsMetadataVirtual(ignoreInterfaceImplementationChanges ? IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges : IsMetadataVirtualOption.None); 603Debug.Assert(!this.IsStatic); 724if (!IsStatic) 845if ((object)thisParameter != null || IsStatic) 1058if ((!IsStatic || MethodKind is MethodKind.StaticConstructor) && 1064if ((((hasBody || IsExtern) && !(IsStatic && IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 1069if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (8)
240else if (!IsStatic) 500if (definition.IsStatic != implementation.IsStatic) 822Debug.Assert(!IsStatic || !IsOverride); // Otherwise should have been reported and cleared earlier. 823Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 894else if (IsStatic && IsDeclaredReadOnly) 921else if (ContainingType is { IsExtension: true, ExtensionParameter.Name: "" } && !IsStatic) 925else if (ContainingType.IsStatic && !IsStatic)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
490internal sealed override bool IsInitOnly => !IsStatic && _usesInit; 552else if (LocalDeclaredReadOnly && IsStatic) 571else if (_usesInit && IsStatic)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
84if (IsStatic && (IsAbstract || IsVirtual))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
77if (!this.IsStatic) 82else if (this.DeclaredAccessibility != Accessibility.Public || !this.IsStatic)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
94return ContainingType.IsNullableEnabledForConstructorsAndInitializers(IsStatic);