492 references to SourceMemberFlags
Microsoft.CodeAnalysis.VisualBasic (492)
Binding\Binder_Conversions.vb (2)
1423
If unboundLambda.ReturnType IsNot Nothing OrElse unboundLambda.Flags <> (
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator) Then
Binding\Binder_Lambda.vb (20)
21
Const asyncIterator As
SourceMemberFlags
=
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator
24
Dim modifiers As
SourceMemberFlags
= DecodeModifiers(node.SubOrFunctionHeader.Modifiers, asyncIterator, ERRID.ERR_InvalidLambdaModifier, Accessibility.Public, If(diagnostics.DiagnosticBag, New DiagnosticBag())).FoundFlags And asyncIterator
53
If modifiers =
SourceMemberFlags
.Async AndAlso
59
If modifiers =
SourceMemberFlags
.Iterator Then
75
If modifiers =
SourceMemberFlags
.Iterator Then
173
Not ((source.Flags And
SourceMemberFlags
.Async) <> 0 AndAlso target.ReturnType Is Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)) AndAlso
174
Not ((source.Flags And
SourceMemberFlags
.Iterator) <> 0 AndAlso (target.ReturnType.SpecialType = SpecialType.System_Collections_IEnumerable OrElse
180
If source.Flags =
SourceMemberFlags
.Async Then
186
If source.Flags =
SourceMemberFlags
.Iterator Then
199
((source.Flags And
SourceMemberFlags
.Async) <> 0 AndAlso target.ReturnType.Equals(Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task))))
234
delegateRelaxation = LambdaRelaxationVisitor.DetermineDelegateRelaxationLevel(lambdaSymbol, source.Flags =
SourceMemberFlags
.Iterator, block, seenReturnWithAValue, useSiteInfo)
893
If source.Flags = (
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator) Then
915
LambdaReturnStatementsVisitor.CollectReturnExpressions(block, returnExpressions, source.Flags =
SourceMemberFlags
.Iterator)
917
If returnExpressions.Count = 0 AndAlso source.Flags =
SourceMemberFlags
.Async Then
922
ElseIf returnExpressions.Count = 0 AndAlso source.Flags =
SourceMemberFlags
.Iterator Then
991
If source.Flags =
SourceMemberFlags
.Async Then
995
ElseIf source.Flags =
SourceMemberFlags
.Iterator Then
Binding\Binder_Statements.vb (12)
958
Const localModifiersMask =
SourceMemberFlags
.Const Or
SourceMemberFlags
.Dim Or
SourceMemberFlags
.Static
959
Dim foundModifiers As
SourceMemberFlags
= Nothing
966
Dim currentModifier As
SourceMemberFlags
= MapKeywordToFlag(keywordSyntax)
967
If currentModifier =
SourceMemberFlags
.None Then
979
Case
SourceMemberFlags
.Dim
981
Case
SourceMemberFlags
.Static
989
If (foundModifiers And
SourceMemberFlags
.Const) <> 0 Then
992
If (foundModifiers And
SourceMemberFlags
.Dim) <> 0 Then
994
ElseIf (foundModifiers And
SourceMemberFlags
.Static) <> 0 Then
998
ElseIf (foundModifiers And
SourceMemberFlags
.Static) <> 0 Then
Binding\Binder_Utils.vb (142)
85
Friend Shared Function MapKeywordToFlag(syntax As SyntaxToken) As
SourceMemberFlags
87
Case SyntaxKind.PrivateKeyword : Return
SourceMemberFlags
.Private
88
Case SyntaxKind.FriendKeyword : Return
SourceMemberFlags
.Friend
89
Case SyntaxKind.ProtectedKeyword : Return
SourceMemberFlags
.Protected
90
Case SyntaxKind.PublicKeyword : Return
SourceMemberFlags
.Public
91
Case SyntaxKind.SharedKeyword : Return
SourceMemberFlags
.Shared
92
Case SyntaxKind.ReadOnlyKeyword : Return
SourceMemberFlags
.ReadOnly
93
Case SyntaxKind.WriteOnlyKeyword : Return
SourceMemberFlags
.WriteOnly
94
Case SyntaxKind.OverloadsKeyword : Return
SourceMemberFlags
.Overloads
95
Case SyntaxKind.OverridableKeyword : Return
SourceMemberFlags
.Overridable
96
Case SyntaxKind.MustOverrideKeyword : Return
SourceMemberFlags
.MustOverride
97
Case SyntaxKind.NotOverridableKeyword : Return
SourceMemberFlags
.NotOverridable
98
Case SyntaxKind.OverridesKeyword : Return
SourceMemberFlags
.Overrides
99
Case SyntaxKind.ShadowsKeyword : Return
SourceMemberFlags
.Shadows
100
Case SyntaxKind.ConstKeyword : Return
SourceMemberFlags
.Const
101
Case SyntaxKind.StaticKeyword : Return
SourceMemberFlags
.Static
102
Case SyntaxKind.DefaultKeyword : Return
SourceMemberFlags
.Default
103
Case SyntaxKind.WithEventsKeyword : Return
SourceMemberFlags
.WithEvents
104
Case SyntaxKind.WideningKeyword : Return
SourceMemberFlags
.Widening
105
Case SyntaxKind.NarrowingKeyword : Return
SourceMemberFlags
.Narrowing
106
Case SyntaxKind.PartialKeyword : Return
SourceMemberFlags
.Partial
107
Case SyntaxKind.DimKeyword : Return
SourceMemberFlags
.Dim
108
Case SyntaxKind.MustInheritKeyword : Return
SourceMemberFlags
.MustInherit
109
Case SyntaxKind.NotInheritableKeyword : Return
SourceMemberFlags
.NotInheritable
110
Case SyntaxKind.AsyncKeyword : Return
SourceMemberFlags
.Async
111
Case SyntaxKind.IteratorKeyword : Return
SourceMemberFlags
.Iterator
130
Return
SourceMemberFlags
.None
143
allowableModifiers As
SourceMemberFlags
,
147
Dim foundModifiers As
SourceMemberFlags
= Nothing
155
Dim currentModifier As
SourceMemberFlags
= MapKeywordToFlag(keywordSyntax)
157
If currentModifier =
SourceMemberFlags
.None Then
166
ElseIf (currentModifier And
SourceMemberFlags
.AllAccessibilityModifiers) <> 0 AndAlso
167
(foundModifiers And
SourceMemberFlags
.AllAccessibilityModifiers) <> 0 AndAlso
168
Not ((foundModifiers Or currentModifier) And
SourceMemberFlags
.AllAccessibilityModifiers) = (
SourceMemberFlags
.Protected Or
SourceMemberFlags
.Friend) AndAlso
169
Not (((foundModifiers Or currentModifier) And
SourceMemberFlags
.AllAccessibilityModifiers) = (
SourceMemberFlags
.Protected Or
SourceMemberFlags
.Private)) Then
171
ElseIf (currentModifier And
SourceMemberFlags
.AllOverrideModifiers) <> 0 AndAlso
172
(foundModifiers And
SourceMemberFlags
.AllOverrideModifiers) <> 0 Then
174
ElseIf (currentModifier And
SourceMemberFlags
.AllWriteabilityModifiers) <> 0 AndAlso
175
(foundModifiers And
SourceMemberFlags
.AllWriteabilityModifiers) <> 0 Then
177
ElseIf (currentModifier And
SourceMemberFlags
.AllConversionModifiers) <> 0 AndAlso
178
(foundModifiers And
SourceMemberFlags
.AllConversionModifiers) <> 0 Then
180
ElseIf (currentModifier And
SourceMemberFlags
.AllShadowingModifiers) <> 0 AndAlso
181
(foundModifiers And
SourceMemberFlags
.AllShadowingModifiers) <> 0 Then
183
ElseIf (currentModifier And (
SourceMemberFlags
.Overrides Or
SourceMemberFlags
.Overridable)) <> 0 AndAlso
184
(foundModifiers And (
SourceMemberFlags
.Overrides Or
SourceMemberFlags
.Overridable)) <> 0 Then
186
ElseIf (currentModifier And
SourceMemberFlags
.PrivateOverridableModifiers) <> 0 AndAlso
187
(foundModifiers And
SourceMemberFlags
.PrivateOverridableModifiers) <> 0 Then
190
ElseIf (currentModifier And
SourceMemberFlags
.ShadowsAndOverrides) <> 0 AndAlso
191
(foundModifiers And
SourceMemberFlags
.ShadowsAndOverrides) <> 0 Then
193
ElseIf (currentModifier And
SourceMemberFlags
.PrivateMustOverrideModifiers) <> 0 AndAlso
194
(foundModifiers And
SourceMemberFlags
.PrivateMustOverrideModifiers) <> 0 Then
197
ElseIf (currentModifier And
SourceMemberFlags
.PrivateNotOverridableModifiers) <> 0 AndAlso
198
(foundModifiers And
SourceMemberFlags
.PrivateNotOverridableModifiers) <> 0 Then
201
ElseIf (currentModifier And (
SourceMemberFlags
.Iterator Or
SourceMemberFlags
.WriteOnly)) <> 0 AndAlso
202
(foundModifiers And (
SourceMemberFlags
.Iterator Or
SourceMemberFlags
.WriteOnly)) <> 0 Then
204
ElseIf (currentModifier And
SourceMemberFlags
.TypeInheritModifiers) <> 0 AndAlso
205
(foundModifiers And
SourceMemberFlags
.TypeInheritModifiers) <> 0 Then
210
If currentModifier =
SourceMemberFlags
.Private OrElse currentModifier =
SourceMemberFlags
.Protected Then
219
If (foundModifiers And
SourceMemberFlags
.Public) <> 0 Then
221
ElseIf (foundModifiers And (
SourceMemberFlags
.Friend Or
SourceMemberFlags
.Protected)) = (
SourceMemberFlags
.Friend Or
SourceMemberFlags
.Protected) Then
223
ElseIf (foundModifiers And (
SourceMemberFlags
.Private Or
SourceMemberFlags
.Protected)) = (
SourceMemberFlags
.Private Or
SourceMemberFlags
.Protected) Then
230
ElseIf (foundModifiers And
SourceMemberFlags
.Friend) <> 0 Then
232
ElseIf (foundModifiers And
SourceMemberFlags
.Protected) <> 0 Then
234
ElseIf (foundModifiers And
SourceMemberFlags
.Private) <> 0 Then
241
If (foundModifiers And
SourceMemberFlags
.Overridable) <> 0 Then
243
ElseIf (foundModifiers And
SourceMemberFlags
.MustOverride) <> 0 Then
245
ElseIf (foundModifiers And
SourceMemberFlags
.NotOverridable) <> 0 Then
248
foundModifiers = foundModifiers And Not (
SourceMemberFlags
.Overridable Or
SourceMemberFlags
.MustOverride Or
SourceMemberFlags
.NotOverridable)
252
Return New MemberModifiers(foundModifiers, DirectCast(access,
SourceMemberFlags
))
833
SourceMemberFlags
.None,
859
modifiers As
SourceMemberFlags
,
961
SourceMemberFlags
.None,
1029
modifiers As
SourceMemberFlags
,
1083
If newParam.IsByRef AndAlso (modifiers And
SourceMemberFlags
.Async) =
SourceMemberFlags
.Async Then
1086
ElseIf newParam.IsByRef AndAlso (modifiers And
SourceMemberFlags
.Iterator) =
SourceMemberFlags
.Iterator Then
1102
ElseIf (modifiers And (
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator)) <> 0 Then
1154
If (flags And
SourceMemberFlags
.Shared) <> 0 AndAlso (flags And
SourceMemberFlags
.InvalidIfShared) <> 0 Then
1156
flags = flags And Not
SourceMemberFlags
.InvalidIfShared
1163
If (flags And
SourceMemberFlags
.Overloads) <> 0 Then
1166
flags = flags And Not
SourceMemberFlags
.Overloads
1170
If (flags And
SourceMemberFlags
.InvalidInModule) <> 0 Then
1172
If (flags And
SourceMemberFlags
.Protected) <> 0 Then
1173
flags = flags And Not
SourceMemberFlags
.Friend ' remove "Friend" if removing "Protected"
1175
flags = flags And Not
SourceMemberFlags
.InvalidInModule
1178
memberModifiers = New MemberModifiers(flags, memberModifiers.ComputedFlags Or
SourceMemberFlags
.Shared)
1181
If (flags And
SourceMemberFlags
.InvalidInInterface) <> 0 Then
1183
flags = flags And Not
SourceMemberFlags
.InvalidInInterface
1187
memberModifiers = New MemberModifiers(flags, memberModifiers.ComputedFlags Or
SourceMemberFlags
.MustOverride)
1190
If (flags And
SourceMemberFlags
.Protected) <> 0 AndAlso (flags And
SourceMemberFlags
.Overrides) = 0 Then
1193
flags = flags And Not
SourceMemberFlags
.Protected
1195
(memberModifiers.ComputedFlags And Not
SourceMemberFlags
.AccessibilityMask) Or
SourceMemberFlags
.AccessibilityPrivate)
1197
If (flags And
SourceMemberFlags
.InvalidInNotInheritableClass) <> 0 Then
1201
flags = flags And Not
SourceMemberFlags
.InvalidInNotInheritableClass
1208
If (flags And
SourceMemberFlags
.InvalidInNotInheritableClass) <> 0 Then
1217
If (flags And
SourceMemberFlags
.InvalidInNotInheritableOtherPartialClass) <> 0 Then
1219
flags = flags And Not
SourceMemberFlags
.InvalidInNotInheritableOtherPartialClass
1223
flags = flags And Not
SourceMemberFlags
.InvalidInNotInheritableClass
1243
If (flags And
SourceMemberFlags
.InvalidInModule) <> 0 Then
1245
If (flags And
SourceMemberFlags
.Protected) <> 0 Then
1246
flags = flags And Not
SourceMemberFlags
.Friend ' remove "Friend" if removing "Protected"
1248
flags = flags And Not
SourceMemberFlags
.InvalidInModule
1251
memberModifiers = New MemberModifiers(flags, memberModifiers.ComputedFlags Or
SourceMemberFlags
.Shared)
1254
If (flags And
SourceMemberFlags
.InvalidInInterface) <> 0 Then
1256
flags = flags And Not
SourceMemberFlags
.InvalidInInterface
1260
memberModifiers = New MemberModifiers(flags, memberModifiers.ComputedFlags Or
SourceMemberFlags
.MustOverride)
1263
If (flags And
SourceMemberFlags
.Protected) <> 0 Then
1266
flags = flags And Not
SourceMemberFlags
.Protected
1268
(memberModifiers.ComputedFlags And Not
SourceMemberFlags
.AccessibilityMask) Or
SourceMemberFlags
.AccessibilityPrivate)
1663
Friend Function ToMethodKind(flags As
SourceMemberFlags
) As MethodKind
1664
Return CType((flags >>
SourceMemberFlags
.MethodKindShift) And
SourceMemberFlags
.MethodKindMask, MethodKind)
1746
Private ReadOnly _foundFlags As
SourceMemberFlags
1751
Private ReadOnly _computedFlags As
SourceMemberFlags
1753
Public Sub New(foundFlags As
SourceMemberFlags
, computedFlags As
SourceMemberFlags
)
1758
Public ReadOnly Property FoundFlags As
SourceMemberFlags
1764
Public ReadOnly Property ComputedFlags As
SourceMemberFlags
1770
Public ReadOnly Property AllFlags As
SourceMemberFlags
BoundTree\UnboundLambda.vb (2)
20
Debug.Assert((Flags And Not (
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator)) = 0)
Generated\BoundNodes.xml.Generated.vb (5)
6786
Public Sub New(syntax As SyntaxNode, binder As Binder, flags As
SourceMemberFlags
, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache, hasErrors As Boolean)
6805
Public Sub New(syntax As SyntaxNode, binder As Binder, flags As
SourceMemberFlags
, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache)
6829
Private ReadOnly _Flags As
SourceMemberFlags
6830
Public ReadOnly Property Flags As
SourceMemberFlags
6862
Public Function Update(binder As Binder, flags As
SourceMemberFlags
, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) As UnboundLambda
Semantics\OverloadResolution.vb (1)
3679
(unbound.Flags And
SourceMemberFlags
.Async) <> 0 AndAlso
Semantics\TypeInference\TypeArgumentInference.vb (3)
2171
If (unboundLambda.Flags And (
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator)) <> 0 AndAlso
2202
If Not invokeMethod.IsSub AndAlso (unboundLambda.Flags And
SourceMemberFlags
.Async) <> 0 Then
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (3)
40
SourceNamedTypeSymbol.DelegateCommonMethodFlags Or
SourceMemberFlags
.MethodKindDelegateInvoke,
78
SourceNamedTypeSymbol.DelegateCommonMethodFlags Or
SourceMemberFlags
.MethodKindOrdinary,
96
SourceNamedTypeSymbol.DelegateCommonMethodFlags Or
SourceMemberFlags
.MethodKindOrdinary,
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (3)
47
SourceNamedTypeSymbol.DelegateCommonMethodFlags Or
SourceMemberFlags
.MethodKindDelegateInvoke,
87
SourceNamedTypeSymbol.DelegateCommonMethodFlags Or
SourceMemberFlags
.MethodKindOrdinary,
104
SourceNamedTypeSymbol.DelegateCommonMethodFlags Or
SourceMemberFlags
.MethodKindOrdinary,
Symbols\Source\CustomEventAccessorSymbol.vb (2)
24
flags As
SourceMemberFlags
,
164
SourceMemberFlags
.None,
Symbols\Source\SourceDeclareMethodSymbol.vb (1)
30
flags As
SourceMemberFlags
,
Symbols\Source\SourceDelegateMethodSymbol.vb (15)
31
flags As
SourceMemberFlags
,
224
flags:=
SourceMemberFlags
.MethodKindConstructor Or
SourceMemberFlags
.AccessibilityPublic Or
SourceMemberFlags
.MethodIsSub,
257
flags:=
SourceMemberFlags
.MethodKindDelegateInvoke Or
SourceMemberFlags
.AccessibilityPublic Or
SourceMemberFlags
.Overridable Or
258
If(returnType.SpecialType = SpecialType.System_Void,
SourceMemberFlags
.MethodIsSub, Nothing),
284
flags:=
SourceMemberFlags
.MethodKindOrdinary Or
SourceMemberFlags
.AccessibilityPublic Or
SourceMemberFlags
.Overridable,
330
flags:=
SourceMemberFlags
.MethodKindOrdinary Or
SourceMemberFlags
.AccessibilityPublic Or
SourceMemberFlags
.Overridable Or
331
If(invoke.ReturnType.SpecialType = SpecialType.System_Void,
SourceMemberFlags
.MethodIsSub, Nothing),
Symbols\Source\SourceEnumConstantSymbol.vb (3)
38
memberFlags:=
SourceMemberFlags
.Const Or
SourceMemberFlags
.Shared Or
SourceMemberFlags
.AccessibilityPublic)
Symbols\Source\SourceEventSymbol.vb (19)
26
Private ReadOnly _memberFlags As
SourceMemberFlags
347
flags = flags Or
SourceMemberFlags
.Overrides Or
SourceMemberFlags
.NotOverridable
353
flags = flags Or
SourceMemberFlags
.MethodKindEventAdd Or
SourceMemberFlags
.MethodIsSub
356
flags = flags Or
SourceMemberFlags
.MethodKindEventRemove Or
SourceMemberFlags
.MethodIsSub
359
flags = flags Or
SourceMemberFlags
.MethodKindEventRaise Or
SourceMemberFlags
.MethodIsSub
534
Return (_memberFlags And
SourceMemberFlags
.Shared) <> 0
541
Return (_memberFlags And
SourceMemberFlags
.MustOverride) <> 0
547
Debug.Assert((_memberFlags And
SourceMemberFlags
.Overridable) = 0)
554
Debug.Assert((_memberFlags And
SourceMemberFlags
.Overrides) = 0)
561
Debug.Assert((_memberFlags And
SourceMemberFlags
.NotOverridable) = 0)
568
Return CType((_memberFlags And
SourceMemberFlags
.AccessibilityMask), Accessibility)
574
Return (_memberFlags And
SourceMemberFlags
.Shadows) <> 0
710
SourceMemberFlags
.AllAccessibilityModifiers Or
711
SourceMemberFlags
.Shadows Or
712
SourceMemberFlags
.Shared,
Symbols\Source\SourceFieldSymbol.vb (8)
23
Protected ReadOnly m_memberFlags As
SourceMemberFlags
50
memberFlags As
SourceMemberFlags
)
147
Return (m_memberFlags And
SourceMemberFlags
.InferredFieldType) = 0
171
Return CType((m_memberFlags And
SourceMemberFlags
.AccessibilityMask), Accessibility)
177
Return (m_memberFlags And
SourceMemberFlags
.ReadOnly) <> 0
183
Return (m_memberFlags And
SourceMemberFlags
.Const) <> 0
597
Return (m_memberFlags And
SourceMemberFlags
.Shared) <> 0
609
Return (m_memberFlags And
SourceMemberFlags
.Shadows) <> 0
Symbols\Source\SourceLambdaSymbol.vb (2)
46
Return (_unboundLambda.Flags And
SourceMemberFlags
.Async) <> 0
52
Return (_unboundLambda.Flags And
SourceMemberFlags
.Iterator) <> 0
Symbols\Source\SourceMemberFieldSymbol.vb (41)
27
memberFlags As
SourceMemberFlags
)
115
ignoreTypeSyntaxDiagnostics:=(m_memberFlags And
SourceMemberFlags
.FirstFieldDeclarationOfType) = 0)
301
memberFlags As
SourceMemberFlags
,
327
memberFlags As
SourceMemberFlags
,
381
memberFlags As
SourceMemberFlags
,
415
Dim validFlags =
SourceMemberFlags
.AllAccessibilityModifiers Or
416
SourceMemberFlags
.Dim Or
417
SourceMemberFlags
.Const Or
418
SourceMemberFlags
.Shadows Or
419
SourceMemberFlags
.Shared
424
validFlags = validFlags Or
SourceMemberFlags
.WithEvents
428
validFlags = validFlags Or
SourceMemberFlags
.ReadOnly
441
If (modifiers.FoundFlags And
SourceMemberFlags
.Protected) <> 0 Then
443
modifiers = New MemberModifiers(modifiers.FoundFlags And Not
SourceMemberFlags
.Protected,
444
(modifiers.ComputedFlags And Not
SourceMemberFlags
.AccessibilityMask) Or
SourceMemberFlags
.AccessibilityPrivate)
447
If (modifiers.FoundFlags And
SourceMemberFlags
.WithEvents) <> 0 Then
449
modifiers = New MemberModifiers(modifiers.FoundFlags And Not
SourceMemberFlags
.WithEvents, modifiers.ComputedFlags)
454
If (modifiers.FoundFlags And
SourceMemberFlags
.InvalidInModule) <> 0 Then
466
modifiers = New MemberModifiers(modifiers.FoundFlags And Not
SourceMemberFlags
.InvalidInModule,
467
modifiers.ComputedFlags Or
SourceMemberFlags
.Shared)
472
Const FlagsNotCombinableWithConst As
SourceMemberFlags
=
SourceMemberFlags
.WithEvents Or
SourceMemberFlags
.Shared Or
SourceMemberFlags
.ReadOnly Or
SourceMemberFlags
.Dim
475
If (modifiers.FoundFlags And
SourceMemberFlags
.Const) <> 0 AndAlso
478
If (modifiers.FoundFlags And
SourceMemberFlags
.Shared) <> 0 Then
482
If (modifiers.FoundFlags And
SourceMemberFlags
.ReadOnly) <> 0 Then
486
If (modifiers.FoundFlags And
SourceMemberFlags
.WithEvents) <> 0 Then
490
If (modifiers.FoundFlags And
SourceMemberFlags
.Dim) <> 0 Then
499
If (modifiers.FoundFlags And
SourceMemberFlags
.Const) <> 0 AndAlso
500
(modifiers.FoundFlags And
SourceMemberFlags
.Shared) = 0 Then
503
modifiers.ComputedFlags Or
SourceMemberFlags
.Shared)
529
(flags And
SourceMemberFlags
.Shared) = 0 Then
548
Dim perFieldFlags As
SourceMemberFlags
= flags
550
perFieldFlags = perFieldFlags Or
SourceMemberFlags
.FirstFieldDeclarationOfType
557
If (modifiers.FoundFlags And
SourceMemberFlags
.Const) <> 0 AndAlso
566
perFieldFlags = perFieldFlags Or
SourceMemberFlags
.InferredFieldType
573
If (modifiers.FoundFlags And
SourceMemberFlags
.WithEvents) = 0 Then
584
If (perFieldFlags And
SourceMemberFlags
.Const) <> 0 Then
Symbols\Source\SourceMemberMethodSymbol.vb (1)
71
flags As
SourceMemberFlags
,
Symbols\Source\SourceMethodSymbol.vb (104)
27
Protected ReadOnly m_flags As
SourceMemberFlags
59
flags As
SourceMemberFlags
,
82
Dim flags = methodModifiers.AllFlags Or
SourceMemberFlags
.MethodKindOrdinary
84
flags = flags Or
SourceMemberFlags
.MethodIsSub
88
flags = flags Or
SourceMemberFlags
.MethodHandlesEvents
224
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Overloads Or
SourceMemberFlags
.Shadows,
231
If (methodModifiers.FoundFlags And
SourceMemberFlags
.Overloads) <> 0 Then
234
ElseIf (methodModifiers.FoundFlags And
SourceMemberFlags
.Protected) <> 0 Then
239
If (methodModifiers.FoundFlags And
SourceMemberFlags
.Protected) <> 0 Then
251
SourceMemberFlags
.MethodKindDeclare Or
252
SourceMemberFlags
.Shared
255
flags = flags Or
SourceMemberFlags
.MethodIsSub
312
Debug.Assert((flags And
SourceMemberFlags
.AccessibilityPublic) <> 0)
313
Debug.Assert((flags And
SourceMemberFlags
.Shared) <> 0)
318
Debug.Assert(name.Equals(WellKnownMemberNames.ImplicitConversionName) = ((flags And
SourceMemberFlags
.Widening) <> 0))
319
Debug.Assert(name.Equals(WellKnownMemberNames.ExplicitConversionName) = ((flags And
SourceMemberFlags
.Narrowing) <> 0))
371
flags = flags Or If(syntax.OperatorToken.Kind = SyntaxKind.CTypeKeyword,
SourceMemberFlags
.MethodKindConversion,
SourceMemberFlags
.MethodKindOperator)
386
Dim flags = modifiers.AllFlags Or
SourceMemberFlags
.MethodIsSub
390
If (flags And
SourceMemberFlags
.Shared) <> 0 Then
392
flags = flags Or
SourceMemberFlags
.MethodKindSharedConstructor
400
flags = flags Or
SourceMemberFlags
.MethodKindConstructor
405
If (flags And
SourceMemberFlags
.Shared) = 0 Then
422
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Overloads Or
SourceMemberFlags
.Partial Or
423
SourceMemberFlags
.Shadows Or
SourceMemberFlags
.Shared Or
424
SourceMemberFlags
.Overridable Or
SourceMemberFlags
.NotOverridable Or
425
SourceMemberFlags
.Overrides Or
SourceMemberFlags
.MustOverride Or
426
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator,
433
Const asyncIterator As
SourceMemberFlags
=
SourceMemberFlags
.Async Or
SourceMemberFlags
.Iterator
448
Dim allowModifiers As
SourceMemberFlags
=
SourceMemberFlags
.AllAccessibilityModifiers Or
449
SourceMemberFlags
.Shared Or
450
SourceMemberFlags
.Overloads Or
451
SourceMemberFlags
.Shadows Or
452
SourceMemberFlags
.Widening Or
453
SourceMemberFlags
.Narrowing
457
Dim foundFlags As
SourceMemberFlags
= operatorModifiers.FoundFlags
458
Dim computedFlags As
SourceMemberFlags
= operatorModifiers.ComputedFlags
461
Dim foundAccessibility = foundFlags And
SourceMemberFlags
.AllAccessibilityModifiers
462
If foundAccessibility <> 0 AndAlso foundAccessibility <>
SourceMemberFlags
.Public Then
465
foundFlags = foundFlags And Not
SourceMemberFlags
.AllAccessibilityModifiers
466
computedFlags = (computedFlags And Not
SourceMemberFlags
.AccessibilityMask) Or
SourceMemberFlags
.AccessibilityPublic
469
If (foundFlags And
SourceMemberFlags
.Shared) = 0 Then
471
computedFlags = computedFlags Or
SourceMemberFlags
.Shared
475
If (foundFlags And (
SourceMemberFlags
.Narrowing Or
SourceMemberFlags
.Widening)) = 0 Then
477
computedFlags = computedFlags Or
SourceMemberFlags
.Narrowing
479
ElseIf (foundFlags And (
SourceMemberFlags
.Narrowing Or
SourceMemberFlags
.Widening)) <> 0 Then
482
foundFlags = foundFlags And Not (
SourceMemberFlags
.Narrowing Or
SourceMemberFlags
.Widening)
501
If (flags And (
SourceMemberFlags
.MustOverride Or
SourceMemberFlags
.Overridable Or
SourceMemberFlags
.NotOverridable Or
SourceMemberFlags
.Shadows)) <> 0 Then
504
flags = flags And Not (
SourceMemberFlags
.MustOverride Or
SourceMemberFlags
.Overridable Or
SourceMemberFlags
.NotOverridable Or
SourceMemberFlags
.Shadows)
507
If (flags And
SourceMemberFlags
.Overrides) <> 0 Then
509
flags = flags And Not
SourceMemberFlags
.Overrides
512
If (flags And
SourceMemberFlags
.Partial) <> 0 Then
514
flags = flags And Not
SourceMemberFlags
.Partial
517
If (flags And
SourceMemberFlags
.Overloads) <> 0 Then
519
flags = flags And Not
SourceMemberFlags
.Overloads
522
If (flags And
SourceMemberFlags
.Async) <> 0 Then
526
If ((constructorModifiers.AllFlags And
SourceMemberFlags
.Shared) <> 0) Then
527
If (flags And
SourceMemberFlags
.AllAccessibilityModifiers) <> 0 Then
534
flags = (flags And Not
SourceMemberFlags
.AllAccessibilityModifiers) Or
SourceMemberFlags
.Private
535
computedFlags = (computedFlags And Not
SourceMemberFlags
.AccessibilityMask) Or
SourceMemberFlags
.AccessibilityPrivate
644
Return CType((m_flags And
SourceMemberFlags
.AccessibilityMask), Accessibility)
650
Return (m_flags And
SourceMemberFlags
.MustOverride) <> 0
656
Return (m_flags And
SourceMemberFlags
.NotOverridable) <> 0
662
If (m_flags And
SourceMemberFlags
.Shadows) <> 0 Then
664
ElseIf (m_flags And
SourceMemberFlags
.Overloads) <> 0 Then
667
Return (m_flags And
SourceMemberFlags
.Overrides) <> 0
674
Return (m_flags And
SourceMemberFlags
.Overridable) <> 0
680
Return (m_flags And
SourceMemberFlags
.Overrides) <> 0
686
Return (m_flags And
SourceMemberFlags
.Shared) <> 0
692
Return (m_flags And
SourceMemberFlags
.Partial) <> 0
702
Return (m_flags And
SourceMemberFlags
.Shadows) <> 0
711
Return (m_flags And
SourceMemberFlags
.Overloads) <> 0
720
Return (m_flags And
SourceMemberFlags
.Overrides) <> 0
729
Return (m_flags And
SourceMemberFlags
.MethodHandlesEvents) <> 0
1004
Dim currentModifier As
SourceMemberFlags
= Binder.MapKeywordToFlag(keywordSyntax)
1006
If currentModifier =
SourceMemberFlags
.Widening Then
1008
ElseIf currentModifier =
SourceMemberFlags
.Narrowing Then
1276
Return (m_flags And
SourceMemberFlags
.MethodIsSub) <> 0
1282
Return (m_flags And
SourceMemberFlags
.Async) <> 0
1288
Return (m_flags And
SourceMemberFlags
.Iterator) <> 0
2074
flags As
SourceMemberFlags
,
Symbols\Source\SourceNamedTypeSymbol.vb (22)
47
Friend Const DelegateConstructorMethodFlags As
SourceMemberFlags
=
SourceMemberFlags
.MethodKindConstructor
48
Friend Const DelegateCommonMethodFlags As
SourceMemberFlags
=
SourceMemberFlags
.Overridable
406
Dim allowableModifiers =
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Shadows
413
allowableModifiers =
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Partial
420
allowableModifiers =
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Shadows Or
SourceMemberFlags
.MustInherit Or
SourceMemberFlags
.NotInheritable Or
SourceMemberFlags
.Partial
427
allowableModifiers =
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Shadows Or
SourceMemberFlags
.Partial
434
allowableModifiers =
SourceMemberFlags
.AllAccessibilityModifiers Or
SourceMemberFlags
.Shadows Or
SourceMemberFlags
.Partial
457
Dim foundFlags As
SourceMemberFlags
= binder.DecodeModifiers(modifiers,
463
Return CType((foundFlags And
SourceMemberFlags
.DeclarationModifierFlagMask) >>
SourceMemberFlags
.DeclarationModifierFlagShift, DeclarationModifiers)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (4)
339
Dim modifiers As
SourceMemberFlags
= SourceMethodSymbol.DecodeConstructorModifiers(constructorSyntax.Modifiers, Me, binder, diagnostics).AllFlags
341
If (modifiers And
SourceMemberFlags
.Shared) = 0 Then
344
Return (modifiers And
SourceMemberFlags
.AccessibilityMask) =
SourceMemberFlags
.AccessibilityPublic
Symbols\Source\SourcePropertyAccessorSymbol.vb (14)
30
flags As
SourceMemberFlags
,
36
If(flags.ToMethodKind() = MethodKind.PropertyGet, flags, flags And Not
SourceMemberFlags
.Iterator),
71
kindFlags As
SourceMemberFlags
,
72
propertyFlags As
SourceMemberFlags
,
79
SourceMemberFlags
.AllAccessibilityModifiers,
84
If (modifiers.FoundFlags And
SourceMemberFlags
.Private) <> 0 Then
86
propertyFlags = propertyFlags And (Not
SourceMemberFlags
.Overridable)
89
If (modifiers.FoundFlags And
SourceMemberFlags
.Protected) <> 0 Then
93
modifiers = New MemberModifiers(modifiers.FoundFlags And Not
SourceMemberFlags
.Protected,
94
modifiers.ComputedFlags And Not
SourceMemberFlags
.AccessibilityMask)
97
Debug.Assert((
SourceMemberFlags
.Protected And
SourceMemberFlags
.InvalidInModule) <> 0)
106
flags = flags Or
SourceMemberFlags
.MethodIsSub
411
SourceMemberFlags
.None,
Symbols\Source\SourcePropertySymbol.vb (48)
31
Private ReadOnly _flags As
SourceMemberFlags
64
flags As
SourceMemberFlags
,
109
Dim accessorFlags = modifiers.AllFlags And (Not
SourceMemberFlags
.AccessibilityMask)
117
Dim accessorMethod = CreateAccessor(prop,
SourceMemberFlags
.MethodKindPropertyGet, accessorFlags, bodyBinder, accessor, diagnostics)
124
Dim accessorMethod = CreateAccessor(prop,
SourceMemberFlags
.MethodKindPropertySet, accessorFlags, bodyBinder, accessor, diagnostics)
134
Dim isReadOnly = (modifiers.FoundFlags And
SourceMemberFlags
.ReadOnly) <> 0
135
Dim isWriteOnly = (modifiers.FoundFlags And
SourceMemberFlags
.WriteOnly) <> 0
198
Dim flags = prop._flags And Not
SourceMemberFlags
.MethodKindMask
205
flags Or
SourceMemberFlags
.MethodKindPropertyGet,
215
flags Or
SourceMemberFlags
.MethodKindPropertySet Or
SourceMemberFlags
.MethodIsSub,
251
If (memberFlags And
SourceMemberFlags
.Shared) = 0 Then
252
memberFlags = modifiers.AllFlags Or
SourceMemberFlags
.Overridable
256
memberFlags = memberFlags Or
SourceMemberFlags
.FirstFieldDeclarationOfType
349
ignoreTypeSyntaxDiagnostics:=(_flags And
SourceMemberFlags
.FirstFieldDeclarationOfType) = 0,
658
Return (_flags And
SourceMemberFlags
.MustOverride) <> 0
664
Return (_flags And
SourceMemberFlags
.NotOverridable) <> 0
670
Return (_flags And
SourceMemberFlags
.Overridable) <> 0
676
Return (_flags And
SourceMemberFlags
.Overrides) <> 0
682
Return (_flags And
SourceMemberFlags
.Shared) <> 0
688
Return (_flags And
SourceMemberFlags
.Default) <> 0
694
Return (_flags And
SourceMemberFlags
.WriteOnly) <> 0
700
Return (_flags And
SourceMemberFlags
.ReadOnly) <> 0
718
If (_flags And
SourceMemberFlags
.Shadows) <> 0 Then
720
ElseIf (_flags And
SourceMemberFlags
.Overloads) <> 0 Then
723
Return (_flags And
SourceMemberFlags
.Overrides) <> 0
744
Return (_flags And
SourceMemberFlags
.WithEvents) <> 0
750
Return (_flags And
SourceMemberFlags
.Shadows) <> 0
757
Return (_flags And
SourceMemberFlags
.Overloads) <> 0
764
Return (_flags And
SourceMemberFlags
.Overrides) <> 0
979
Return CType((_flags And
SourceMemberFlags
.AccessibilityMask), Accessibility)
1071
kindFlags As
SourceMemberFlags
,
1072
propertyFlags As
SourceMemberFlags
,
1118
SourceMemberFlags
.AllAccessibilityModifiers Or
1119
SourceMemberFlags
.Default Or
1120
SourceMemberFlags
.Overloads Or
1121
SourceMemberFlags
.Shadows Or
1122
SourceMemberFlags
.Shared Or
1123
SourceMemberFlags
.Overridable Or
1124
SourceMemberFlags
.NotOverridable Or
1125
SourceMemberFlags
.Overrides Or
1126
SourceMemberFlags
.MustOverride Or
1127
SourceMemberFlags
.ReadOnly Or
1128
SourceMemberFlags
.Iterator Or
1129
SourceMemberFlags
.WriteOnly,
1137
If (flags And
SourceMemberFlags
.Default) <> 0 AndAlso (flags And
SourceMemberFlags
.InvalidIfDefault) <> 0 Then
1139
flags = flags And Not
SourceMemberFlags
.InvalidIfDefault
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (3)
32
SourceMemberFlags
.AccessibilityPrivate Or If([property].IsShared,
SourceMemberFlags
.Shared,
SourceMemberFlags
.None))
Symbols\Source\SynthesizedFieldSymbol.vb (9)
26
Protected ReadOnly _flags As
SourceMemberFlags
45
Me._flags = CType(accessibility,
SourceMemberFlags
) Or
46
If(isReadOnly,
SourceMemberFlags
.ReadOnly,
SourceMemberFlags
.None) Or
47
If(isShared,
SourceMemberFlags
.Shared,
SourceMemberFlags
.None)
100
Return (_flags And
SourceMemberFlags
.ReadOnly) <> 0
150
Return CType((_flags And
SourceMemberFlags
.AccessibilityMask), Accessibility)
156
Return (_flags And
SourceMemberFlags
.Shared) <> 0
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (3)
24
Private ReadOnly _flags As
SourceMemberFlags
37
flags As
SourceMemberFlags
,
221
Return (_flags And
SourceMemberFlags
.Overridable) <> 0