28 references to Public
Microsoft.CodeAnalysis.CSharp (28)
Declarations\DeclarationModifiers.cs (1)
45AccessibilityMask = PrivateProtected | Private | Protected | Internal | ProtectedInternal | Public,
Parser\LanguageParser.cs (1)
1299return DeclarationModifiers.Public;
Symbols\Source\ModifierUtils.cs (5)
264mods |= DeclarationModifiers.Public; 287case DeclarationModifiers.Public: 347return DeclarationModifiers.Public; 530case DeclarationModifiers.Public: 552case DeclarationModifiers.Public:
Symbols\Source\SourceDelegateMethodSymbol.cs (4)
217: base(delegateType, voidType, syntax, MethodKind.Constructor, RefKind.None, DeclarationModifiers.Public) 262: base(delegateType, returnType, syntax, MethodKind.DelegateInvoke, refKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public) 355: base((SourceNamedTypeSymbol)invoke.ContainingType, iAsyncResultType, syntax, MethodKind.Ordinary, RefKind.None, DeclarationModifiers.Virtual | DeclarationModifiers.Public) 393: base((SourceNamedTypeSymbol)invoke.ContainingType, invoke.ReturnTypeWithAnnotations, syntax, MethodKind.Ordinary, invoke.RefKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public)
Symbols\Source\SourceEnumConstantSymbol.cs (1)
77return DeclarationModifiers.Const | DeclarationModifiers.Static | DeclarationModifiers.Public;
Symbols\Source\SourceEventSymbol.cs (1)
448var defaultAccess = isInterface && !explicitInterfaceImplementation ? DeclarationModifiers.Public : DeclarationModifiers.Private;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
255var specialType = access == (int)DeclarationModifiers.Public 307defaultAccess = DeclarationModifiers.Public;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
169isInterface ? DeclarationModifiers.Public : DeclarationModifiers.Private;
Symbols\Source\SourcePropertySymbol.cs (1)
369var defaultAccess = isInterface && !isExplicitInterfaceImplementation ? DeclarationModifiers.Public : DeclarationModifiers.Private;
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
128var defaultAccess = inInterface && !isExplicitInterfaceImplementation ? DeclarationModifiers.Public : DeclarationModifiers.Private;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
40DeclarationModifiers declarationModifiers = containingType.IsAbstract ? DeclarationModifiers.Protected : DeclarationModifiers.Public;
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
20: base(containingType, WellKnownMemberNames.ObjectEquals, memberOffset, DeclarationModifiers.Public | DeclarationModifiers.Override | DeclarationModifiers.Sealed)
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
32DeclarationModifiers result = DeclarationModifiers.Public; 57if ((modifiers & DeclarationModifiers.AccessibilityMask) != DeclarationModifiers.Public)
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
24DeclarationModifiers.Public | (IsReadOnly(containingType, positionalMembers) ? DeclarationModifiers.ReadOnly : 0))
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
40DeclarationModifiers.Public | DeclarationModifiers.Static, hasAnyBody: true, isExpressionBodied: false, isIterator: false, isNullableAnalysisEnabled: false, diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
23DeclarationModifiers.Public |
Symbols\Synthesized\Records\SynthesizedRecordObjectMethod.cs (1)
16DeclarationModifiers.Public | DeclarationModifiers.Override | (isReadOnly ? DeclarationModifiers.ReadOnly : 0))
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
30modifiers: DeclarationModifiers.Public | (isOverride ? DeclarationModifiers.Override : DeclarationModifiers.None),
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
36_modifiers = (isPublic ? DeclarationModifiers.Public : DeclarationModifiers.Private) |