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