41 references to None
Microsoft.CodeAnalysis.CSharp (41)
Binder\ExpressionVariableFinder.cs (1)
700
finder._modifiers = DeclarationModifiers.
None
;
Parser\LanguageParser.cs (9)
1347
return DeclarationModifiers.
None
;
1362
if (newMod == DeclarationModifiers.
None
)
1395
(IsPossibleStartOfTypeDeclaration(nextToken.Kind) && GetModifierExcludingScoped(nextToken) != DeclarationModifiers.
None
))
1496
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IdentifierToken && GetModifierExcludingScoped(this.CurrentToken) != DeclarationModifiers.
None
);
1609
return !SyntaxFacts.IsContextualKeyword(nextToken.ContextualKind) && GetModifierExcludingScoped(nextToken) != DeclarationModifiers.
None
;
2901
if (GetModifierExcludingScoped(this.CurrentToken) != DeclarationModifiers.
None
&&
4187
if (GetModifierExcludingScoped(this.CurrentToken) == DeclarationModifiers.
None
)
4193
while (GetModifierExcludingScoped(this.PeekToken(peekIndex)) != DeclarationModifiers.
None
)
8568
else if (modifier != DeclarationModifiers.
None
)
Symbols\Source\ModifierUtils.cs (8)
51
DeclarationModifiers reportStaticNotVirtualForModifiers = DeclarationModifiers.
None
;
74
while (errorModifiers != DeclarationModifiers.
None
)
77
Debug.Assert(oneError != DeclarationModifiers.
None
);
199
while (errorModifiers != DeclarationModifiers.
None
)
202
Debug.Assert(oneError != DeclarationModifiers.
None
);
388
var result = DeclarationModifiers.
None
;
522
case DeclarationModifiers.
None
:
548
case DeclarationModifiers.
None
:
Symbols\Source\SourceConstructorSymbol.cs (1)
126
var defaultAccess = (methodKind == MethodKind.StaticConstructor) ? DeclarationModifiers.
None
: DeclarationModifiers.Private;
Symbols\Source\SourceDestructorSymbol.cs (1)
133
var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: containingType.IsInterface, modifiers, DeclarationModifiers.
None
, allowedModifiers, location, diagnostics, out modifierErrors);
Symbols\Source\SourceEventSymbol.cs (2)
449
var defaultInterfaceImplementationModifiers = DeclarationModifiers.
None
;
470
defaultAccess = DeclarationModifiers.
None
;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
427
syntax.Modifiers, defaultAccess: DeclarationModifiers.
None
, allowedModifiers, location, diagnostics, out _);
694
var defaultAccess = isInterface && !isExplicitInterfaceImplementation ? DeclarationModifiers.
None
: DeclarationModifiers.Private;
698
var defaultInterfaceImplementationModifiers = DeclarationModifiers.
None
;
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
497
const DeclarationModifiers defaultAccess = DeclarationModifiers.
None
;
500
var allowedModifiers = isExplicitInterfaceImplementation ? DeclarationModifiers.
None
: DeclarationModifiers.AccessibilityMask;
506
var defaultInterfaceImplementationModifiers = DeclarationModifiers.
None
;
Symbols\Source\SourcePropertySymbol.cs (3)
373
var defaultInterfaceImplementationModifiers = DeclarationModifiers.
None
;
401
defaultAccess = DeclarationModifiers.
None
;
437
modifiers, defaultAccess: DeclarationModifiers.
None
, allowedModifiers, location, diagnostics, out modifierErrors);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
40
result |= containingType.IsSealed ? DeclarationModifiers.
None
: DeclarationModifiers.Virtual;
66
case DeclarationModifiers.
None
:
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
47
result |= containingType.IsSealed ? DeclarationModifiers.
None
: DeclarationModifiers.Virtual;
78
case DeclarationModifiers.
None
:
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
30
modifiers: DeclarationModifiers.Public | (isOverride ? DeclarationModifiers.Override : DeclarationModifiers.
None
),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
36
(isReadOnly ? DeclarationModifiers.ReadOnly : DeclarationModifiers.
None
) |
37
(isStatic ? DeclarationModifiers.Static : DeclarationModifiers.
None
);
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (2)
37
(isReadOnly ? DeclarationModifiers.ReadOnly : DeclarationModifiers.
None
) |
38
(isStatic ? DeclarationModifiers.Static : DeclarationModifiers.
None
);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
67
DeclarationModifiers declarationModifiers = DeclarationModifiers.Static | DeclarationModifiers.Private | (hasAwait ? DeclarationModifiers.Async : DeclarationModifiers.
None
);