52 references to Static
Microsoft.CodeAnalysis.CSharp (52)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
163
mods |= DeclarationModifiers.
Static
;
Parser\LanguageParser.cs (1)
1311
return DeclarationModifiers.
Static
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
46
=> (Modifiers & DeclarationModifiers.
Static
) != 0;
Symbols\Source\LocalFunctionSymbol.cs (1)
360
public override bool IsStatic => (_declarationModifiers & DeclarationModifiers.
Static
) != 0;
Symbols\Source\ModifierUtils.cs (9)
57
else if ((modifiers & allowedModifiers & DeclarationModifiers.
Static
) != 0)
156
if ((modifiers & defaultInterfaceImplementationModifiers & DeclarationModifiers.
Static
) != 0 &&
178
if ((modifiers & defaultInterfaceImplementationModifiers & DeclarationModifiers.
Static
) != 0)
213
if (isExplicitInterfaceImplementation && (mods & DeclarationModifiers.
Static
) != 0)
221
ModifierUtils.ReportUnsupportedModifiersForLanguageVersion(mods, DeclarationModifiers.
Static
, location, diagnostics, availableVersion, requiredVersion);
235
else if ((mods & DeclarationModifiers.
Static
) != 0)
283
case DeclarationModifiers.
Static
:
343
return DeclarationModifiers.
Static
;
471
(modifiers & DeclarationModifiers.
Static
) == 0)
Symbols\Source\SourceConstructorSymbol.cs (1)
131
DeclarationModifiers.
Static
|
Symbols\Source\SourceEnumConstantSymbol.cs (1)
77
return DeclarationModifiers.Const | DeclarationModifiers.
Static
| DeclarationModifiers.Public;
Symbols\Source\SourceEventSymbol.cs (4)
380
get { return (_modifiers & DeclarationModifiers.
Static
) != 0; }
458
DeclarationModifiers.
Static
|
475
DeclarationModifiers.
Static
|
490
allowedModifiers |= DeclarationModifiers.
Static
;
Symbols\Source\SourceMemberContainerSymbol.cs (8)
324
allowedModifiers |= DeclarationModifiers.
Static
;
356
(mods & (DeclarationModifiers.Sealed | DeclarationModifiers.
Static
)) != 0)
362
(mods & (DeclarationModifiers.Sealed | DeclarationModifiers.
Static
)) == (DeclarationModifiers.Sealed | DeclarationModifiers.
Static
))
841
public override bool IsStatic => HasFlag(DeclarationModifiers.
Static
);
4957
DeclarationModifiers.Private | (modifiers & DeclarationModifiers.
Static
),
5061
DeclarationModifiers.Private | (property.IsStatic ? DeclarationModifiers.
Static
: 0),
5099
DeclarationModifiers.Private | (@event.IsStatic ? DeclarationModifiers.
Static
: 0),
Symbols\Source\SourceMemberFieldSymbol.cs (7)
176
DeclarationModifiers.
Static
|
202
reportBadMemberFlagIfAny(result, DeclarationModifiers.
Static
, diagnostics, errorLocation);
208
result &= ~(DeclarationModifiers.
Static
| DeclarationModifiers.ReadOnly | DeclarationModifiers.Const | DeclarationModifiers.Volatile | DeclarationModifiers.Required);
214
if ((result & DeclarationModifiers.
Static
) != 0)
229
result |= DeclarationModifiers.
Static
; // "constants are considered static members"
233
if ((result & DeclarationModifiers.
Static
) != 0 && (result & DeclarationModifiers.Required) != 0)
250
reportBadMemberFlagIfAny(result, DeclarationModifiers.
Static
, diagnostics, errorLocation);
Symbols\Source\SourceMemberMethodSymbol.cs (2)
195
bool isMetadataVirtual = (isExplicitInterfaceImplementation && (declarationModifiers & DeclarationModifiers.
Static
) == 0) || ModifiersRequireMetadataVirtual(declarationModifiers);
655
return (this.DeclarationModifiers & DeclarationModifiers.
Static
) != 0;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
705
DeclarationModifiers.
Static
|
717
DeclarationModifiers.
Static
|
734
allowedModifiers |= DeclarationModifiers.
Static
;
Symbols\Source\SourcePropertySymbol.cs (5)
70
(!containingType.IsInterface || hasGetAccessorImplementation || hasSetAccessorImplementation || (modifiers & DeclarationModifiers.
Static
) != 0) &&
385
allowedModifiers |= DeclarationModifiers.
Static
;
405
(isIndexer ? 0 : DeclarationModifiers.
Static
) |
422
allowedModifiers |= DeclarationModifiers.
Static
;
480
if ((mods & DeclarationModifiers.
Static
) != 0 && (mods & DeclarationModifiers.Required) != 0)
Symbols\Source\SourcePropertySymbolBase.cs (1)
565
get { return (_modifiers & DeclarationModifiers.
Static
) != 0; }
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
130
DeclarationModifiers.
Static
|
191
else if ((result & DeclarationModifiers.
Static
) != 0 && syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
40
DeclarationModifiers.Public | DeclarationModifiers.
Static
, hasAnyBody: true, isExpressionBodied: false, isIterator: false, isNullableAnalysisEnabled: false, diagnostics)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
37
(isStatic ? DeclarationModifiers.
Static
: DeclarationModifiers.None);
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (2)
38
(isStatic ? DeclarationModifiers.
Static
: DeclarationModifiers.None);
178
get { return (_modifiers & DeclarationModifiers.
Static
) != 0; }
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
67
DeclarationModifiers declarationModifiers = DeclarationModifiers.
Static
| DeclarationModifiers.Private | (hasAwait ? DeclarationModifiers.Async : DeclarationModifiers.None);