Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
29 references to IsStatic
Microsoft.CodeAnalysis.CSharp (29)
Compiler\MethodBodySynthesizer.cs (1)
181if (!accessor.IsStatic)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
110Debug.Assert(!(originalMethod is LocalFunctionSymbol) || !originalMethod.IsStatic || IsStatic);
Symbols\Source\SourceConstructorSymbol.cs (1)
189: ((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
154get { return this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; } 213if (containingType.TryCalculateSyntaxOffsetOfPositionInInitializer(position, tree, this.IsStatic, ctorInitializerLength, out syntaxOffset))
Symbols\Source\SourceMemberContainerSymbol.cs (3)
3552builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, parameterList); 3555builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, baseParamList); 4944builder.UpdateIsNullableEnabledForConstructorsAndFields(useStatic: constructor.IsStatic, isNullableEnabled);
Symbols\Source\SourceMemberMethodSymbol.cs (7)
557!this.IsStatic && this.IsMetadataVirtual(ignoreInterfaceImplementationChanges ? IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges : IsMetadataVirtualOption.None); 575Debug.Assert(!this.IsStatic); 696if (!IsStatic) 817if ((object)thisParameter != null || IsStatic) 1098if ((!IsStatic || MethodKind is MethodKind.StaticConstructor) && 1104if ((((hasBody || IsExtern) && !(IsStatic && IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 1109if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (7)
239else if (!IsStatic) 495if (definition.IsStatic != implementation.IsStatic) 797Debug.Assert(!IsStatic || !IsOverride); // Otherwise should have been reported and cleared earlier. 798Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 869else if (IsStatic && IsDeclaredReadOnly) 896else if (ContainingType.IsStatic && !IsStatic)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
488internal sealed override bool IsInitOnly => !IsStatic && _usesInit; 550else if (LocalDeclaredReadOnly && IsStatic) 565else 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);