Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
35 references to IsStatic
Microsoft.CodeAnalysis.CSharp (34)
Compiler\MethodBodySynthesizer.cs (1)
181if (!accessor.IsStatic)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
106Debug.Assert(originalMethod is not { MethodKind: MethodKind.LocalFunction } || !originalMethod.IsStatic || IsStatic);
Symbols\Source\SourceConstructorSymbol.cs (1)
237: ((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
162get { return this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; } 221if (containingType.TryCalculateSyntaxOffsetOfPositionInInitializer(position, tree, this.IsStatic, ctorInitializerLength, out syntaxOffset))
Symbols\Source\SourceMemberContainerSymbol.cs (5)
3975builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, parameterList); 3978builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, baseParamList); 4028case (SourceConstructorSymbol { IsStatic: false } currentConstructor, SourceConstructorSymbol { IsStatic: false } prevConstructor): 5610builder.UpdateIsNullableEnabledForConstructorsAndFields(useStatic: constructor.IsStatic, isNullableEnabled);
Symbols\Source\SourceMemberMethodSymbol.cs (7)
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)
241else if (!IsStatic) 251else if (ContainingType is { IsExtension: true, ExtensionParameter.Name: "" } && !IsStatic) 505if (definition.IsStatic != implementation.IsStatic) 823Debug.Assert(!IsStatic || !IsOverride); // Otherwise should have been reported and cleared earlier. 824Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 895else if (IsStatic && IsDeclaredReadOnly) 922else if (ContainingType.IsStatic && !IsStatic)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
491internal sealed override bool IsInitOnly => !IsStatic && _usesInit; 553else if (LocalDeclaredReadOnly && IsStatic) 572else if (_usesInit && IsStatic)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
86if (IsStatic && (IsAbstract || IsVirtual))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (4)
59Debug.Assert(!this.IsStatic); 91if (!this.IsStatic && !isCompoundAssignmentOrIncrementAssignment) 103else if (this.DeclaredAccessibility != Accessibility.Public || !this.IsStatic) 385if (ContainingType is { IsExtension: true, ExtensionParameter: { Type.IsStatic: false } extensionParameter } && !IsStatic &&
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
95return ContainingType.IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
9324Assert.True(entryPoint.IsStatic);