97 references to DeclarationModifiers
Microsoft.CodeAnalysis.VisualBasic (97)
Declarations\DeclarationModifiersExtensions.vb (10)
10Friend Function ToAccessibility(modifiers As DeclarationModifiers) As Accessibility 11Select Case modifiers And DeclarationModifiers.AllAccessibilityModifiers 12Case DeclarationModifiers.Private : Return Accessibility.Private 13Case DeclarationModifiers.Public : Return Accessibility.Public 14Case DeclarationModifiers.Protected : Return Accessibility.Protected 15Case DeclarationModifiers.Friend : Return Accessibility.Friend 16Case DeclarationModifiers.Friend Or DeclarationModifiers.Protected : Return Accessibility.ProtectedOrFriend 17Case DeclarationModifiers.Private Or DeclarationModifiers.Protected : Return Accessibility.ProtectedAndFriend
Declarations\DeclarationTreeBuilder.vb (39)
122modifiers:=DeclarationModifiers.Friend Or DeclarationModifiers.Partial Or DeclarationModifiers.NotInheritable, 143modifiers:=DeclarationModifiers.Friend Or DeclarationModifiers.Partial Or DeclarationModifiers.NotInheritable, 813Private Shared Function GetModifiers(modifiers As SyntaxTokenList) As DeclarationModifiers 814Dim result As DeclarationModifiers = DeclarationModifiers.None 817Dim bit As DeclarationModifiers = 0 819Case SyntaxKind.MustInheritKeyword : bit = DeclarationModifiers.MustInherit 820Case SyntaxKind.NotInheritableKeyword : bit = DeclarationModifiers.NotInheritable 821Case SyntaxKind.PartialKeyword : bit = DeclarationModifiers.Partial 822Case SyntaxKind.ShadowsKeyword : bit = DeclarationModifiers.Shadows 823Case SyntaxKind.PublicKeyword : bit = DeclarationModifiers.Public 824Case SyntaxKind.ProtectedKeyword : bit = DeclarationModifiers.Protected 825Case SyntaxKind.FriendKeyword : bit = DeclarationModifiers.Friend 826Case SyntaxKind.PrivateKeyword : bit = DeclarationModifiers.Private 827Case SyntaxKind.ShadowsKeyword : bit = DeclarationModifiers.Shadows 828Case SyntaxKind.MustInheritKeyword : bit = DeclarationModifiers.MustInherit 829Case SyntaxKind.NotInheritableKeyword : bit = DeclarationModifiers.NotInheritable 830Case SyntaxKind.PartialKeyword : bit = DeclarationModifiers.Partial 831Case SyntaxKind.SharedKeyword : bit = DeclarationModifiers.Shared 832Case SyntaxKind.ReadOnlyKeyword : bit = DeclarationModifiers.ReadOnly 833Case SyntaxKind.WriteOnlyKeyword : bit = DeclarationModifiers.WriteOnly 834Case SyntaxKind.OverridesKeyword : bit = DeclarationModifiers.Overrides 835Case SyntaxKind.OverridableKeyword : bit = DeclarationModifiers.Overridable 836Case SyntaxKind.MustOverrideKeyword : bit = DeclarationModifiers.MustOverride 837Case SyntaxKind.NotOverridableKeyword : bit = DeclarationModifiers.NotOverridable 838Case SyntaxKind.OverloadsKeyword : bit = DeclarationModifiers.Overloads 839Case SyntaxKind.WithEventsKeyword : bit = DeclarationModifiers.WithEvents 840Case SyntaxKind.DimKeyword : bit = DeclarationModifiers.Dim 841Case SyntaxKind.ConstKeyword : bit = DeclarationModifiers.Const 842Case SyntaxKind.DefaultKeyword : bit = DeclarationModifiers.Default 843Case SyntaxKind.StaticKeyword : bit = DeclarationModifiers.Static 844Case SyntaxKind.WideningKeyword : bit = DeclarationModifiers.Widening 845Case SyntaxKind.NarrowingKeyword : bit = DeclarationModifiers.Narrowing 846Case SyntaxKind.AsyncKeyword : bit = DeclarationModifiers.Async 847Case SyntaxKind.IteratorKeyword : bit = DeclarationModifiers.Iterator
Declarations\SingleTypeDeclaration.vb (3)
20Private ReadOnly _modifiers As DeclarationModifiers 35modifiers As DeclarationModifiers, 97Public ReadOnly Property Modifiers As DeclarationModifiers
Symbols\Source\SourceMemberContainerTypeSymbol.vb (19)
137Dim mergedModifiers As DeclarationModifiers = DeclarationModifiers.None 149If (modifiers And DeclarationModifiers.NotInheritable) <> 0 Then 151ElseIf (modifiers And DeclarationModifiers.MustInherit) <> 0 Then 184If (modifiers And DeclarationModifiers.Friend) <> 0 Then 186ElseIf (modifiers And DeclarationModifiers.Public) <> 0 Then 193If (modifiers And (DeclarationModifiers.Private Or DeclarationModifiers.Protected)) = 194(DeclarationModifiers.Private Or DeclarationModifiers.Protected) Then 196ElseIf (modifiers And DeclarationModifiers.Private) <> 0 Then 198ElseIf (modifiers And (DeclarationModifiers.Protected Or DeclarationModifiers.Friend)) = 199(DeclarationModifiers.Protected Or DeclarationModifiers.Friend) Then 201ElseIf (modifiers And DeclarationModifiers.Protected) <> 0 Then 203ElseIf (modifiers And DeclarationModifiers.Friend) <> 0 Then 211If (modifiers And DeclarationModifiers.Partial) <> 0 Then 216If (modifiers And DeclarationModifiers.Shadows) <> 0 Then
Symbols\Source\SourceNamedTypeSymbol.vb (26)
168Dim accessModifiers As DeclarationModifiers = Nothing 169Dim foundModifiers As DeclarationModifiers 196accessModifiers = foundModifiers And DeclarationModifiers.AllAccessibilityModifiers 199If (foundModifiers And DeclarationModifiers.Partial) <> 0 Then 231accessModifiers As DeclarationModifiers, 235ByRef nodeNameIsAlreadyDefined As Boolean) As DeclarationModifiers 287accessModifiers As DeclarationModifiers) As DeclarationModifiers 294Dim newModifiers = foundModifiers And DeclarationModifiers.AllAccessibilityModifiers And Not accessModifiers 311If (foundModifiers And DeclarationModifiers.MustInherit) <> 0 Then 315If (foundModifiers And DeclarationModifiers.NotInheritable) = 0 Then 333If (foundModifiers And DeclarationModifiers.InvalidInModule) <> 0 Then 335foundModifiers = (foundModifiers And (Not DeclarationModifiers.InvalidInModule)) 339If (foundModifiers And DeclarationModifiers.InvalidInInterface) <> 0 Then 355Dim invalidModifiers = DeclarationModifiers.InvalidInInterface And (Not (DeclarationModifiers.Friend Or DeclarationModifiers.Public)) 375foundModifiers = (foundModifiers And (Not DeclarationModifiers.InvalidInInterface)) 383If (foundModifiers And DeclarationModifiers.Private) <> 0 Then 387If (foundModifiers And DeclarationModifiers.Shadows) <> 0 Then 389foundModifiers = (foundModifiers And (Not DeclarationModifiers.Shadows)) 395If (foundModifiers And DeclarationModifiers.Protected) <> 0 AndAlso 398foundModifiers = (foundModifiers And (Not DeclarationModifiers.Protected)) 408ByRef id As SyntaxToken) As DeclarationModifiers 466Return CType((foundFlags And SourceMemberFlags.DeclarationModifierFlagMask) >> SourceMemberFlags.DeclarationModifierFlagShift, DeclarationModifiers) 674If (foundModifiers And DeclarationModifiers.Partial) = 0 Then