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