Base:
property
IsStatic
Microsoft.CodeAnalysis.CSharp.Symbol.IsStatic
30 references to IsStatic
Microsoft.CodeAnalysis.CSharp (29)
Compiler\MethodBodySynthesizer.cs (1)
180if (!accessor.IsStatic)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
110Debug.Assert(!(originalMethod is LocalFunctionSymbol) || !originalMethod.IsStatic || IsStatic);
Symbols\Source\SourceConstructorSymbol.cs (1)
178((SourceMemberContainerTypeSymbol)ContainingType).IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
169get { return this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; } 236if (containingType.TryCalculateSyntaxOffsetOfPositionInInitializer(position, tree, this.IsStatic, ctorInitializerLength, out syntaxOffset))
Symbols\Source\SourceMemberContainerSymbol.cs (3)
3433builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, parameterList); 3436builder.UpdateIsNullableEnabledForConstructorsAndFields(ctor.IsStatic, compilation, baseParamList); 4721builder.UpdateIsNullableEnabledForConstructorsAndFields(useStatic: constructor.IsStatic, isNullableEnabled);
Symbols\Source\SourceMemberMethodSymbol.cs (7)
457!this.IsStatic && this.IsMetadataVirtual(ignoreInterfaceImplementationChanges); 468Debug.Assert(!this.IsStatic); 589if (!IsStatic) 712if ((object)thisParameter != null || IsStatic) 987if ((!IsStatic || MethodKind is MethodKind.StaticConstructor) && 993if ((((hasBody || IsExtern) && !(IsStatic && IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 998if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
252else if (!IsStatic) 672if (definition.IsStatic != implementation.IsStatic)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (4)
321Debug.Assert(!IsStatic || !IsOverride); // Otherwise should have been reported and cleared earlier. 322Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 393else if (IsStatic && IsDeclaredReadOnly) 420else if (ContainingType.IsStatic && !IsStatic)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
489internal sealed override bool IsInitOnly => !IsStatic && _usesInit; 551else if (LocalDeclaredReadOnly && IsStatic) 566else if (_usesInit && IsStatic)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
84if (IsStatic && (IsAbstract || IsVirtual))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
74if (!this.IsStatic) 79else if (this.DeclaredAccessibility != Accessibility.Public || !this.IsStatic)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
57return ContainingType.IsNullableEnabledForConstructorsAndInitializers(IsStatic);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
9311Assert.True(entryPoint.IsStatic);