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