133 references to ModifierFlags
Microsoft.VisualStudio.LanguageServices.VisualBasic (133)
CodeModel\ModifierFlagsExtensions.vb (61)
14
Private ReadOnly s_modifierDefinitions As New SortedList(Of
ModifierFlags
, SyntaxKind) From {
15
{
ModifierFlags
.Partial, SyntaxKind.PartialKeyword},
16
{
ModifierFlags
.Default, SyntaxKind.DefaultKeyword},
17
{
ModifierFlags
.Private, SyntaxKind.PrivateKeyword},
18
{
ModifierFlags
.Protected, SyntaxKind.ProtectedKeyword},
19
{
ModifierFlags
.Public, SyntaxKind.PublicKeyword},
20
{
ModifierFlags
.Friend, SyntaxKind.FriendKeyword},
21
{
ModifierFlags
.MustOverride, SyntaxKind.MustOverrideKeyword},
22
{
ModifierFlags
.Overridable, SyntaxKind.OverridableKeyword},
23
{
ModifierFlags
.NotOverridable, SyntaxKind.NotOverridableKeyword},
24
{
ModifierFlags
.Overrides, SyntaxKind.OverridesKeyword},
25
{
ModifierFlags
.MustInherit, SyntaxKind.MustInheritKeyword},
26
{
ModifierFlags
.NotInheritable, SyntaxKind.NotInheritableKeyword},
27
{
ModifierFlags
.Static, SyntaxKind.StaticKeyword},
28
{
ModifierFlags
.Shared, SyntaxKind.SharedKeyword},
29
{
ModifierFlags
.Shadows, SyntaxKind.ShadowsKeyword},
30
{
ModifierFlags
.ReadOnly, SyntaxKind.ReadOnlyKeyword},
31
{
ModifierFlags
.WriteOnly, SyntaxKind.WriteOnlyKeyword},
32
{
ModifierFlags
.Dim, SyntaxKind.DimKeyword},
33
{
ModifierFlags
.Const, SyntaxKind.ConstKeyword},
34
{
ModifierFlags
.WithEvents, SyntaxKind.WithEventsKeyword},
35
{
ModifierFlags
.Widening, SyntaxKind.WideningKeyword},
36
{
ModifierFlags
.Narrowing, SyntaxKind.NarrowingKeyword},
37
{
ModifierFlags
.Custom, SyntaxKind.CustomKeyword},
38
{
ModifierFlags
.ByVal, SyntaxKind.ByValKeyword},
39
{
ModifierFlags
.ByRef, SyntaxKind.ByRefKeyword},
40
{
ModifierFlags
.Optional, SyntaxKind.OptionalKeyword},
41
{
ModifierFlags
.ParamArray, SyntaxKind.ParamArrayKeyword}
45
Public Function GetModifierFlags(member As StatementSyntax) As
ModifierFlags
46
Dim result As
ModifierFlags
= 0
51
result = result Or
ModifierFlags
.Partial
53
result = result Or
ModifierFlags
.Default
55
result = result Or
ModifierFlags
.Private
57
result = result Or
ModifierFlags
.Protected
59
result = result Or
ModifierFlags
.Public
61
result = result Or
ModifierFlags
.Friend
63
result = result Or
ModifierFlags
.MustOverride
65
result = result Or
ModifierFlags
.Overridable
67
result = result Or
ModifierFlags
.NotOverridable
69
result = result Or
ModifierFlags
.Overrides
71
result = result Or
ModifierFlags
.MustInherit
73
result = result Or
ModifierFlags
.NotInheritable
75
result = result Or
ModifierFlags
.Static
77
result = result Or
ModifierFlags
.Shared
79
result = result Or
ModifierFlags
.Shadows
81
result = result Or
ModifierFlags
.ReadOnly
83
result = result Or
ModifierFlags
.WriteOnly
85
result = result Or
ModifierFlags
.Dim
87
result = result Or
ModifierFlags
.Const
89
result = result Or
ModifierFlags
.WithEvents
91
result = result Or
ModifierFlags
.Widening
93
result = result Or
ModifierFlags
.Narrowing
95
result = result Or
ModifierFlags
.Custom
103
Public Function GetModifierFlags(parameter As ParameterSyntax) As
ModifierFlags
104
Dim result As
ModifierFlags
= 0
109
result = result Or
ModifierFlags
.ByVal
111
result = result Or
ModifierFlags
.ByRef
113
result = result Or
ModifierFlags
.Optional
115
result = result Or
ModifierFlags
.ParamArray
123
Public Function UpdateModifiers(member As StatementSyntax, flags As
ModifierFlags
) As StatementSyntax
144
Public Function UpdateModifiers(parameter As ParameterSyntax, flags As
ModifierFlags
) As ParameterSyntax
CodeModel\VisualBasicCodeModelService.vb (72)
1470
If (flags And
ModifierFlags
.Public) <> 0 Then
1472
ElseIf (flags And
ModifierFlags
.Protected) <> 0 AndAlso
1473
(flags And
ModifierFlags
.Friend) <> 0 Then
1475
ElseIf (flags And
ModifierFlags
.Friend) <> 0 Then
1477
ElseIf (flags And
ModifierFlags
.Protected) <> 0 Then
1479
ElseIf (flags And
ModifierFlags
.Private) <> 0 Then
1487
If (flags And
ModifierFlags
.WithEvents) <> 0 Then
1539
Dim flags = member.GetModifierFlags() And Not (
ModifierFlags
.AccessModifierMask Or
ModifierFlags
.Dim Or
ModifierFlags
.WithEvents)
1542
flags = flags Or
ModifierFlags
.Private
1544
flags = flags Or
ModifierFlags
.Protected
1547
flags = flags Or
ModifierFlags
.Friend
1550
flags = flags Or
ModifierFlags
.Public
1552
flags = flags Or
ModifierFlags
.Friend
1554
flags = flags Or
ModifierFlags
.Protected Or
ModifierFlags
.Friend
1560
flags = flags Or
ModifierFlags
.WithEvents
1564
flags = flags Or
ModifierFlags
.Dim
2119
If (flags And
ModifierFlags
.NotOverridable) <> 0 Then
2123
If (flags And
ModifierFlags
.MustOverride) <> 0 Then
2127
If (flags And
ModifierFlags
.Overridable) <> 0 Then
2131
If (flags And
ModifierFlags
.Overrides) <> 0 Then
2155
If (flags And
ModifierFlags
.Partial) <> 0 Then
2189
flags = flags And Not
ModifierFlags
.Partial
2192
flags = flags Or
ModifierFlags
.Partial
2311
If (flags And
ModifierFlags
.Const) <> 0 Then
2315
If (flags And
ModifierFlags
.ReadOnly) <> 0 Then
2343
flags = flags And Not (
ModifierFlags
.Const Or
ModifierFlags
.ReadOnly Or
ModifierFlags
.Dim)
2346
flags = flags Or
ModifierFlags
.Const
2348
flags = flags Or
ModifierFlags
.ReadOnly
2352
flags = flags Or
ModifierFlags
.Dim
2370
If (flags And
ModifierFlags
.Partial) <> 0 Then
2406
flags = flags And Not
ModifierFlags
.Partial
2409
flags = flags Or
ModifierFlags
.Partial
2436
flags = flags And Not
ModifierFlags
.Shared
2628
flags = flags And Not (
ModifierFlags
.MustInherit Or
ModifierFlags
.NotInheritable Or
ModifierFlags
.Shadows)
2632
flags = flags Or
ModifierFlags
.MustInherit
2634
flags = flags Or
ModifierFlags
.NotInheritable
2638
flags = flags Or
ModifierFlags
.Shadows
2659
Return (flags And
ModifierFlags
.MustOverride) <> 0
2730
flags = flags And Not (
ModifierFlags
.NotOverridable Or
ModifierFlags
.Shadows Or
ModifierFlags
.Overrides Or
ModifierFlags
.MustOverride Or
ModifierFlags
.Overridable)
2734
flags = flags Or
ModifierFlags
.NotOverridable
2736
flags = flags Or
ModifierFlags
.Shadows
2738
flags = flags Or
ModifierFlags
.Overrides
2740
flags = flags Or
ModifierFlags
.MustOverride
2742
flags = flags Or
ModifierFlags
.Overridable
2744
flags = flags Or
ModifierFlags
.NotOverridable Or
ModifierFlags
.Overrides
2746
flags = flags Or
ModifierFlags
.Overridable Or
ModifierFlags
.Shadows
2751
If (flags And
ModifierFlags
.MustOverride) <> 0 Then
2823
flags = flags Or
ModifierFlags
.MustInherit
2825
flags = flags Or
ModifierFlags
.MustOverride
2829
flags = flags And Not
ModifierFlags
.MustInherit
2831
flags = flags And Not
ModifierFlags
.MustOverride
2851
Return (flags And (
ModifierFlags
.Const Or
ModifierFlags
.ReadOnly)) <> 0
2883
flags = flags And Not
ModifierFlags
.Default
2886
flags = flags Or
ModifierFlags
.Default
2932
Dim flags = member.GetModifierFlags() And Not
ModifierFlags
.Dim
2935
flags = flags Or
ModifierFlags
.Shared
2937
flags = flags And Not
ModifierFlags
.Shared
2941
flags = flags Or
ModifierFlags
.Dim