Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
31 references to IsStatic
Microsoft.CodeAnalysis.CSharp (31)
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)
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\SourceMemberContainerSymbol.cs (5)
3643builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, parameterList); 3646builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, baseParamList); 3695case (SourceConstructorSymbol { IsStatic: false } currentConstructor, SourceConstructorSymbol { IsStatic: false } prevConstructor): 5199builder.UpdateIsNullableEnabledForConstructorsAndFields(useStatic: constructor.IsStatic, isNullableEnabled);
Symbols\Source\SourceMemberMethodSymbol.cs (7)
569!this.IsStatic && this.IsMetadataVirtual(ignoreInterfaceImplementationChanges ? IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges : IsMetadataVirtualOption.None); 587Debug.Assert(!this.IsStatic); 708if (!IsStatic) 829if ((object)thisParameter != null || IsStatic) 1110if ((!IsStatic || MethodKind is MethodKind.StaticConstructor) && 1116if ((((hasBody || IsExtern) && !(IsStatic && IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 1121if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (7)
239else if (!IsStatic) 495if (definition.IsStatic != implementation.IsStatic) 807Debug.Assert(!IsStatic || !IsOverride); // Otherwise should have been reported and cleared earlier. 808Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 879else if (IsStatic && IsDeclaredReadOnly) 906else if (ContainingType.IsStatic && !IsStatic)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
490internal sealed override bool IsInitOnly => !IsStatic && _usesInit; 552else if (LocalDeclaredReadOnly && IsStatic) 567else 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);