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