Analysis\FlowAnalysis\DataFlowPass.vb (19)
60Protected ReadOnly initiallyAssignedVariables As HashSet(Of Symbol)
76Private ReadOnly _writtenVariables As HashSet(Of Symbol) = New HashSet(Of Symbol)()
119Optional initiallyAssignedVariables As HashSet(Of Symbol) = Nothing,
274Protected Overridable Sub NoteRead(variable As Symbol)
280Protected Overridable Sub NoteWrite(variable As Symbol, value As BoundExpression)
297Protected Function GetNodeSymbol(node As BoundNode) As Symbol
353Dim symbol As Symbol = GetNodeSymbol(node)
370Dim symbol As Symbol = GetNodeSymbol(fieldAccess)
398Protected Function VariableSlot(symbol As Symbol, Optional containingSlot As Integer = 0) As Integer
484Protected Function GetOrCreateSlot(symbol As Symbol, Optional containingSlot As Integer = 0) As Integer
529Private Function DescendThroughTupleRestFields(ByRef symbol As Symbol, containingSlot As Integer, forceContainingSlotsToExist As Boolean) As Integer
715Dim parentSymbol As Symbol = parentIdentifier.Symbol
769Dim parentSymbol As Symbol = parentIdentifier.Symbol
837Dim eventOrProperty As Symbol = field.AssociatedSymbol
889Private Shared Function GetVariableType(symbol As Symbol) As TypeSymbol
945Protected Sub CheckAssigned(symbol As Symbol, node As SyntaxNode, Optional rwContext As ReadWriteContext = ReadWriteContext.None)
1099Private Function GetUnassignedSymbolFirstLocation(sym As Symbol, boundFieldAccess As BoundFieldAccess) As Location
1142Protected Overridable Sub ReportUnassigned(sym As Symbol,
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (11)
24Private ReadOnly _variablesToHoist As OrderedSet(Of Symbol)
29Private _lazyDisallowedCaptures As MultiDictionary(Of Symbol, SyntaxNode)
32Public ReadOnly CapturedLocals As OrderedSet(Of Symbol)
35Friend Sub New(cl As OrderedSet(Of Symbol), initializers As Dictionary(Of LocalSymbol, BoundExpression))
44Me._variablesToHoist = New OrderedSet(Of Symbol)()
94Private Shared Function HoistInDebugBuild(symbol As Symbol, skipByRefLocals As Boolean) As Boolean
131Private Sub CaptureVariable(variable As Symbol, syntax As SyntaxNode)
140_lazyDisallowedCaptures = New MultiDictionary(Of Symbol, SyntaxNode)()
162Protected Overrides Sub ReportUnassigned(symbol As Symbol, node As SyntaxNode, rwContext As ReadWriteContext, Optional slot As Integer = -1, Optional boundFieldAccess As BoundFieldAccess = Nothing)
164Dim sym As Symbol = GetNodeSymbol(boundFieldAccess)
197Dim symbol As Symbol = variableBySlot(i).Symbol
Binding\BackstopBinder.vb (9)
31Public Overrides Function CheckAccessibility(sym As Symbol,
61Public Overrides ReadOnly Property ContainingMember As Symbol
67Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol)
100Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
101Return ImmutableArray(Of Symbol).Empty
104Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
105Return ImmutableArray(Of Symbol).Empty
108Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
109Return ImmutableArray(Of Symbol).Empty
Binding\Binder.vb (23)
290Public Overridable Function CheckAccessibility(sym As Symbol,
302Public Function IsAccessible(sym As Symbol,
326Public Overridable ReadOnly Property ContainingMember As Symbol
336Public Overridable ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol)
516For Each candidate As Symbol In GetInternalXmlHelperType().GetMembers("Value")
552Friend Function GetSpecialTypeMember(member As SpecialMember, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag) As Symbol
556Friend Shared Function GetSpecialTypeMember(assembly As AssemblySymbol, member As SpecialMember, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag) As Symbol
558Dim specialMemberSymbol As Symbol = GetSpecialTypeMember(assembly, member, useSiteInfo)
564Friend Shared Function GetSpecialTypeMember(assembly As AssemblySymbol, member As SpecialMember, <Out> ByRef useSiteInfo As UseSiteInfo(Of AssemblySymbol)) As Symbol
565Dim specialMemberSymbol As Symbol = assembly.GetSpecialTypeMember(member)
577Friend Shared Function GetUseSiteInfoForMemberAndContainingType(member As Symbol) As UseSiteInfo(Of AssemblySymbol)
591Friend Function GetWellKnownTypeMember(member As WellKnownMember, syntax As SyntaxNode, diagBag As BindingDiagnosticBag) As Symbol
595Friend Shared Function GetWellKnownTypeMember(compilation As VisualBasicCompilation, member As WellKnownMember, syntax As SyntaxNode, diagBag As BindingDiagnosticBag) As Symbol
597Dim memberSymbol As Symbol = GetWellKnownTypeMember(compilation, member, useSiteInfo)
603Friend Shared Function GetWellKnownTypeMember(compilation As VisualBasicCompilation, member As WellKnownMember, <Out> ByRef useSiteInfo As UseSiteInfo(Of AssemblySymbol)) As Symbol
604Dim memberSymbol As Symbol = compilation.GetWellKnownTypeMember(member)
611Friend Shared Function GetUseSiteInfoForWellKnownTypeMember(memberSymbol As Symbol, member As WellKnownMember, embedVBRuntimeUsed As Boolean) As UseSiteInfo(Of AssemblySymbol)
645candidateSymbols As ImmutableArray(Of Symbol),
653Return GetErrorSymbol(name, errorInfo, ImmutableArray(Of Symbol).Empty, LookupResultKind.Empty, reportErrorWhenReferenced)
949Friend Sub ReportDiagnosticsIfObsoleteOrNotSupported(diagnostics As BindingDiagnosticBag, symbol As Symbol, node As SyntaxNode)
981Friend Shared Sub ReportDiagnosticsIfObsolete(diagnostics As BindingDiagnosticBag, context As Symbol, symbol As Symbol, node As SyntaxNode)
1081Dim ctor As Symbol = GetWellKnownTypeMember(Me.Compilation, attributeCtor, useSiteInfo)
Binding\Binder_DocumentationComments.vb (3)
14Friend Overridable Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
18Friend Overridable Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
22Friend Overridable Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
Binding\Binder_Expressions.vb (26)
289Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, resultType, hasErrors:=True)
297Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True)
305Return New BoundBadExpression(node, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True)
313Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, exprs, resultType, hasErrors:=True)
326Return New BoundBadExpression(wrappedExpression.Syntax, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(wrappedExpression), wrappedExpression.Type, hasErrors:=True)
636Dim symbols = ArrayBuilder(Of Symbol).GetInstance()
657Private Shared Sub BindNamespaceOrTypeSyntaxForSemanticModelGetExpressionSymbols(expression As BoundExpression, symbols As ArrayBuilder(Of Symbol))
686Dim typeOrAlias As Symbol = TypeBinder.BindTypeOrAliasSyntax(node.Type, getTypeBinder, diagnostics,
775Dim targetSymbol As Symbol = BindTypeOrAliasSyntax(node.Type, diagnostics)
2580Private Shared Function BindSimpleNameIsMemberOfType(member As Symbol, type As NamedTypeSymbol) As Boolean
2604Private Function TryBindInteractiveReceiver(syntax As VisualBasicSyntaxNode, currentMember As Symbol, currentType As NamedTypeSymbol, memberDeclaringType As NamedTypeSymbol) As BoundExpression
3122Dim symbols As ImmutableArray(Of Symbol)
3265Dim localSymbolContainingSymbol As Symbol = localSymbol.ContainingSymbol
3380Dim symbols As ArrayBuilder(Of Symbol) = lookupResult.Symbols
3387Dim ambiguous As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
3388symbols = ArrayBuilder(Of Symbol).GetInstance()
3404Private Function AdjustReceiverNamespace(namespaceReceiver As BoundNamespaceExpression, symbols As ArrayBuilder(Of Symbol)) As BoundNamespaceExpression
3423Friend Shared Function AddReceiverNamespaces(namespaces As SmallDictionary(Of NamespaceSymbol, Boolean), candidate As Symbol, compilation As VisualBasicCompilation) As Boolean
3438Private Shared Function AddContainingNamespaces(namespaces As SmallDictionary(Of NamespaceSymbol, Boolean), candidate As Symbol, compilation As VisualBasicCompilation) As Boolean
3508Private Sub CheckMemberTypeAccessibility(diagnostics As BindingDiagnosticBag, node As SyntaxNode, member As Symbol)
3553Public Shared Function IsTopMostEnclosingLambdaAQueryLambda(containingMember As Symbol, stopAtContainer As Symbol) As Boolean
3558Dim currentContainer As Symbol = containingMember
3600ImmutableArray(Of Symbol).Empty,
3958symbols As ImmutableArray(Of Symbol),
4001s As Symbol,
Binding\Binder_Invocation.vb (29)
734Optional representCandidateInDiagnosticsOpt As Symbol = Nothing,
790ImmutableArray(Of Symbol).Empty, builder.ToImmutableAndFree(),
1198Optional representCandidateInDiagnosticsOpt As Symbol = Nothing,
1229Optional representCandidateInDiagnosticsOpt As Symbol = Nothing,
1234Dim bestSymbols = ImmutableArray(Of Symbol).Empty
1268bestSymbols As ImmutableArray(Of Symbol),
1274Optional delegateSymbol As Symbol = Nothing,
1277Optional representCandidateInDiagnosticsOpt As Symbol = Nothing
1343bestSymbols As ImmutableArray(Of Symbol),
1350Optional delegateSymbol As Symbol = Nothing,
1353Optional representCandidateInDiagnosticsOpt As Symbol = Nothing,
1441Dim candidate As Symbol = bestSymbols(0).OriginalDefinition
1442Dim container As Symbol = candidate.ContainingSymbol
1456Dim singleSymbol As Symbol = singleCandidate.UnderlyingSymbol
1674ByRef bestSymbols As ImmutableArray(Of Symbol)
1719Dim bestSymbolsBuilder = ArrayBuilder(Of Symbol).GetInstance(bestCandidates.Count)
1726Dim underlyingSymbol As Symbol = bestCandidates(0).Candidate.UnderlyingSymbol
1765bestSymbols As ImmutableArray(Of Symbol),
1794Dim bestSymbol As Symbol = bestSymbols(i)
1832delegateSymbol As Symbol,
1836Dim diagnosticPerSymbol = ArrayBuilder(Of KeyValuePair(Of Symbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol))).GetInstance(candidates.Count)
1935diagnosticPerSymbol As ArrayBuilder(Of KeyValuePair(Of Symbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol))),
1989delegateSymbol As Symbol,
1992representCandidateInDiagnosticsOpt As Symbol
2036Dim candidateSymbol As Symbol = candidate.UnderlyingSymbol
2476Optional delegateSymbol As Symbol = Nothing
2545Optional delegateSymbol As Symbol = Nothing
3123Dim container As Symbol = ContainingMember
3134Dim propertyOrEvent As Symbol = DirectCast(container, MethodSymbol).AssociatedSymbol
Binding\Binder_Utils.vb (7)
258Private Shared Function DecodeParameterModifiers(container As Symbol,
818container As Symbol,
857Public Function DecodeParameterList(container As Symbol,
925Private Shared Function CheckOperatorParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags
988Private Shared Function CheckPropertyParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags
1025Friend Delegate Function CheckParameterModifierDelegate(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags
1027Public Sub DecodeParameterList(container As Symbol,
Binding\DocumentationCommentBinder.vb (17)
20Protected Sub New(containingBinder As Binder, commentedSymbol As Symbol)
37Private Shared Sub CheckBinderSymbolRelationship(containingBinder As Binder, commentedSymbol As Symbol)
43Dim binderContainingMember As Symbol = containingBinder.ContainingMember
141Protected ReadOnly CommentedSymbol As Symbol
143Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
147Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
151Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
155Protected Shared Function FindSymbolInSymbolArray(Of TSymbol As Symbol)(
156name As String, symbols As ImmutableArray(Of TSymbol)) As ImmutableArray(Of Symbol)
161Return ImmutableArray.Create(Of Symbol)(p)
166Return ImmutableArray(Of Symbol).Empty
176Protected Shared Sub RemoveOverriddenMethodsAndProperties(symbols As ArrayBuilder(Of Symbol))
182Dim originalDef2Symbol As Dictionary(Of Symbol, Integer) = Nothing
184Dim sym As Symbol = symbols(i)
188originalDef2Symbol = New Dictionary(Of Symbol, Integer)()
202Dim sym As Symbol = symbols(i)
254Dim sym As Symbol = symbols(source)
Binding\DocumentationCommentCrefBinder.vb (39)
21Public Sub New(containingBinder As Binder, commentedSymbol As Symbol)
69Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
73Return ImmutableArray(Of Symbol).Empty
84Return ImmutableArray(Of Symbol).Empty
87Dim symbols = ArrayBuilder(Of Symbol).GetInstance
94Return ImmutableArray(Of Symbol).Empty
113Dim candidateSymbol As Symbol = symbols(candidatePointer)
198Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
204Return ImmutableArray(Of Symbol).Empty
219Private Function BindInsideCrefSignatureOrReturnType(crefReference As CrefReferenceSyntax, name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag) As ImmutableArray(Of Symbol)
222Dim result As Symbol = typeParameterAwareBinder.BindNamespaceOrTypeOrAliasSyntax(name, If(diagnosticBag, BindingDiagnosticBag.Discarded))
230ImmutableArray(Of Symbol).Empty,
231ImmutableArray.Create(Of Symbol)(result))
303Private Function BindInsideCrefReferenceName(name As TypeSyntax, argCount As Integer, preserveAliases As Boolean, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
314Return ImmutableArray.Create(Of Symbol)(New CrefTypeParameterSymbol(ordinal, identifier.Identifier.ValueText, identifier))
318Return ImmutableArray.Create(Of Symbol)(New CrefTypeParameterSymbol(ordinal, StringConstants.NamedSymbolErrorName, name))
368Return ImmutableArray.Create(Of Symbol)(Me.Compilation.GlobalNamespace)
374Dim symbols = ArrayBuilder(Of Symbol).GetInstance
380Dim symbol As Symbol = symbols(0)
482symbols As ArrayBuilder(Of Symbol),
516Private Sub CollectTopLevelOperatorReferenceStrict(reference As CrefOperatorReferenceSyntax, argCount As Integer, symbols As ArrayBuilder(Of Symbol), <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol))
522symbols As ArrayBuilder(Of Symbol),
565symbols As ArrayBuilder(Of Symbol),
602Dim singleSymbol As Symbol = symbols(0)
644symbols As ArrayBuilder(Of Symbol),
677Dim singleSymbol As Symbol = symbols(0)
687Private Sub CollectConstructorsSymbolsStrict(symbols As ArrayBuilder(Of Symbol))
688Dim containingSymbol As Symbol = Me.ContainingMember
704Private Shared Sub CollectConstructorsSymbolsStrict(containingSymbol As Symbol, symbols As ArrayBuilder(Of Symbol))
713symbols As ArrayBuilder(Of Symbol),
741Private Sub CollectSimpleNameSymbolsStrict(containingSymbol As Symbol,
745symbols As ArrayBuilder(Of Symbol),
821symbols As ArrayBuilder(Of Symbol),
847Dim symbol As Symbol = symbols(i)
867Private Shared Sub CollectGoodOrAmbiguousFromLookupResult(lookupResult As LookupResult, symbols As ArrayBuilder(Of Symbol), preserveAlias As Boolean)
875Dim ambiguousSymbols As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
890Private Shared Sub CollectOperatorsAndConversionsInType(crefOperator As CrefOperatorReferenceSyntax, argCount As Integer, type As TypeSymbol, symbols As ArrayBuilder(Of Symbol),
1075symbols As ArrayBuilder(Of Symbol),
Binding\DocumentationCommentCrefBinder_Compat.vb (17)
30Private Function BindNameInsideCrefReferenceInLegacyMode(nameFromCref As TypeSyntax, preserveAliases As Boolean, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
35Return ImmutableArray(Of Symbol).Empty
46Dim result As Symbol = If(preserveAliases,
49Return ImmutableArray.Create(Of Symbol)(result)
60Return ImmutableArray(Of Symbol).Empty
63Dim symbols = ArrayBuilder(Of Symbol).GetInstance()
85Private Sub BindQualifiedNameForCref(node As QualifiedNameSyntax, symbols As ArrayBuilder(Of Symbol), preserveAliases As Boolean, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol))
112Dim singleSymbol As Symbol = symbols(0)
166Private Sub LookupSimpleNameInContainingSymbol(containingSymbol As Symbol,
231symbols As ArrayBuilder(Of Symbol),
234Optional containingSymbol As Symbol = Nothing,
284symbols As ArrayBuilder(Of Symbol),
343symbols As ArrayBuilder(Of Symbol))
393Private Function ConstructGenericSymbolWithTypeArgumentsForCref(genericSymbol As Symbol, genericName As GenericNameSyntax) As Symbol
422Private Shared Sub CreateGoodOrAmbiguousFromLookupResultAndFree(lookupResult As LookupResult, result As ArrayBuilder(Of Symbol), preserveAliases As Boolean)
430Dim symbols As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Binding\LookupResult.vb (43)
95Friend ReadOnly Symbol As Symbol
99Friend Sub New(kind As LookupResultKind, symbol As Symbol, diagInfo As DiagnosticInfo)
115Public Shared Function Good(sym As Symbol) As SingleLookupResult
120Public Shared Function Ambiguous(syms As ImmutableArray(Of Symbol),
121generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) As SingleLookupResult
127Public Shared Function WrongArityAndStopLookup(sym As Symbol, err As ERRID) As SingleLookupResult
133Public Shared Function WrongArityAndStopLookup(sym As Symbol, diagInfo As DiagnosticInfo) As SingleLookupResult
137Public Shared Function WrongArity(sym As Symbol,
142Public Shared Function WrongArity(sym As Symbol,
148Public Shared Function MustNotBeInstance(sym As Symbol, err As ERRID) As SingleLookupResult
153Public Shared Function MustBeInstance(sym As Symbol) As SingleLookupResult
158Public Shared Function Inaccessible(sym As Symbol,
163Friend Shared Function NotAnAttributeType(sym As Symbol, [error] As DiagnosticInfo) As SingleLookupResult
240Private ReadOnly _symList As ArrayBuilder(Of Symbol)
314Public ReadOnly Property Symbols As ArrayBuilder(Of Symbol)
320Public ReadOnly Property SingleSymbol As Symbol
348_symList = New ArrayBuilder(Of Symbol)
375Private Sub SetFrom(kind As LookupResultKind, sym As Symbol, diagInfo As DiagnosticInfo)
406Public Sub SetFrom(s As Symbol)
416Public Sub SetFrom(syms As ImmutableArray(Of Symbol),
417generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic))
453generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic))
456Dim ambiguousResults = ArrayBuilder(Of Symbol).GetInstance()
481generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic))
484Dim ambiguousResults = ArrayBuilder(Of Symbol).GetInstance()
508Public Shared Function CanOverload(sym1 As Symbol, sym2 As Symbol) As Boolean
738Private Shared Function AreEquivalentEnumConstants(symbol1 As Symbol, symbol2 As Symbol) As Boolean
750Private Shared ReadOnly s_ambiguousInTypeError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) =
751Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
753Dim container As Symbol = syms(0).ContainingSymbol
795Private Function RemoveAmbiguousSymbols(other As Symbol, ambiguous As Integer) As Integer
821first As Symbol,
822second As Symbol
873Private Shared Function GetSymbolLocation(sym As Symbol, sourceModule As ModuleSymbol, options As LookupOptions) As SymbolLocation
944Private Shared Function ResolveAmbiguityInTheSameNamespace(first As Symbol, second As Symbol, sourceModule As ModuleSymbol) As Integer
990type As Symbol
1011Private Shared ReadOnly s_ambiguousInNSError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) =
1012Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
1013Dim container As Symbol = syms(0).ContainingSymbol
1035Public Sub ReplaceSymbol(newSym As Symbol)
Compilation\ClsComplianceChecker.vb (36)
35Private ReadOnly _declaredOrInheritedCompliance As ConcurrentDictionary(Of Symbol, Compliance)
48Me._declaredOrInheritedCompliance = New ConcurrentDictionary(Of Symbol, Compliance)()
289Private Function VisitTypeOrMember(symbol As Symbol, compliance As Compliance) As Boolean
322Private Sub CheckForNonCompliantAbstractMember(symbol As Symbol)
354Private Sub CheckForCompliantWithinNonCompliant(symbol As Symbol)
411Private Sub CheckReturnTypeCompliance(symbol As Symbol)
450Dim seenByName As MultiDictionary(Of String, Symbol) = New MultiDictionary(Of String, Symbol)(CaseInsensitiveComparison.Comparer)
517Private Sub CheckSymbolDistinctness(symbol As Symbol, sameNameSymbols As MultiDictionary(Of String, Symbol).ValueSet)
525For Each other As Symbol In sameNameSymbols
535Private Sub CheckName(symbol As Symbol)
570Private Function DoNotVisit(symbol As Symbol) As Boolean
578Private Function IsSyntacticallyFilteredOut(symbol As Symbol) As Boolean
582Private Function ShouldReportNonCompliantType(type As TypeSymbol, context As NamedTypeSymbol, Optional diagnosticSymbol As Symbol = Nothing) As Boolean
589Private Sub ReportNonCompliantTypeArguments(type As TypeSymbol, context As NamedTypeSymbol, diagnosticSymbol As Symbol)
602Private Sub ReportNonCompliantTypeArguments(type As NamedTypeSymbol, context As NamedTypeSymbol, diagnosticSymbol As Symbol)
656Private Function GetDeclaredOrInheritedCompliance(symbol As Symbol) As Compliance
668Dim associated As Symbol = method.AssociatedSymbol
707Private Function GetInheritedCompliance(symbol As Symbol) As Compliance
710Dim containing As Symbol = If(DirectCast(symbol.ContainingType, Symbol), GetContainingModuleOrAssembly(symbol))
715Private Function GetDeclaredCompliance(symbol As Symbol, <Out> ByRef attributeLocation As Location) As Boolean?
758Private Function GetDeclaredComplianceHelper(symbol As Symbol, <Out> ByRef attributeLocation As Location, <Out> ByRef isAttributeInherited As Boolean) As Boolean?
792Private Function GetContainingModuleOrAssembly(symbol As Symbol) As Symbol
800Return If(producingNetModule, DirectCast(symbol.ContainingModule, Symbol), containingAssembly)
803Private Shared Function IsAccessibleOutsideAssembly(symbol As Symbol) As Boolean
815Private Shared Function IsAccessibleIfContainerIsAccessible(symbol As Symbol) As Boolean
833Private Sub AddDiagnostic(symbol As Symbol, code As ERRID, ParamArray args As Object())
838Private Sub AddDiagnostic(symbol As Symbol, code As ERRID, location As Location, ParamArray args As Object())
844Private Shared Function IsImplicitClass(symbol As Symbol) As Boolean
870Private Shared Function SignaturesCollide(x As Symbol, y As Symbol) As Boolean
919Private Shared Function GetParameterTypes(symbol As Symbol) As ImmutableArray(Of TypeSymbol)
941Private Shared Function GetParameterRefKinds(symbol As Symbol) As ImmutableArray(Of RefKind)
Compilation\SemanticModel.vb (68)
100Friend MustOverride Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
107Friend MustOverride Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
277Dim memberGroup As ImmutableArray(Of Symbol) = Nothing
278Dim symbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(boundNodes, binderOpt, options, resultKind, memberGroup)
488Friend Function GetMemberGroupForNode(boundNodes As BoundNodeSummary, binderOpt As Binder) As ImmutableArray(Of Symbol)
491Dim memberGroup As ImmutableArray(Of Symbol) = Nothing
492Dim symbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(boundNodes, binderOpt, SymbolInfoOptions.DefaultOptions, resultKind, memberGroup)
861Private Sub AddSymbolsFromDiagnosticInfo(symbolsBuilder As ArrayBuilder(Of Symbol), diagnosticInfo As DiagnosticInfo)
870Friend Function RemoveErrorTypesAndDuplicates(symbolsBuilder As ArrayBuilder(Of Symbol), options As SymbolInfoOptions) As ImmutableArray(Of Symbol)
875Return ImmutableArray(Of Symbol).Empty
891Dim symbolSet = PooledHashSet(Of Symbol).GetInstance()
898Dim tempBuilder As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
1017ByRef memberGroup As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol)
1020Dim symbolsBuilder = ArrayBuilder(Of Symbol).GetInstance()
1021Dim memberGroupBuilder = ArrayBuilder(Of Symbol).GetInstance()
1089Dim symbols = ImmutableArray(Of Symbol).Empty
1169Dim bindingSymbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options)
1201containingMember As Symbol,
1240symbolsBuilder As ArrayBuilder(Of Symbol),
1241memberGroupBuilder As ArrayBuilder(Of Symbol),
1253symbolsBuilder As ArrayBuilder(Of Symbol),
1254memberGroupBuilder As ArrayBuilder(Of Symbol),
1274symbolsBuilder As ArrayBuilder(Of Symbol),
1275memberGroupBuilder As ArrayBuilder(Of Symbol),
1341symbolsBuilder As ArrayBuilder(Of Symbol),
1342memberGroupBuilder As ArrayBuilder(Of Symbol),
1394Private Shared Function UnwrapAliases(symbols As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol)
1401Dim builder As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
1416ByRef bindingSymbols As ImmutableArray(Of Symbol),
1417memberGroupBuilder As ArrayBuilder(Of Symbol),
1468ByRef bindingSymbols As ImmutableArray(Of Symbol),
1469memberGroupBuilder As ArrayBuilder(Of Symbol),
1501bindingSymbols = ImmutableArray.Create(Of Symbol)(constructor)
1503bindingSymbols = StaticCast(Of Symbol).From(candidateConstructors)
1513symbol As Symbol,
1527Dim symbolsBuilder = ArrayBuilder(Of Symbol).GetInstance()
1544Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options)
1552symbol As Symbol
1820useBaseReferenceAccessibility As Boolean) As ImmutableArray(Of Symbol)
1832Return ImmutableArray(Of Symbol).Empty
1852Dim results = ArrayBuilder(Of Symbol).GetInstance(info.Count)
1862Dim builder As ArrayBuilder(Of Symbol) = Nothing
1872builder = ArrayBuilder(Of Symbol).GetInstance()
1887Dim results = ArrayBuilder(Of Symbol).GetInstance(info.Count)
1898Private Sub AppendSymbolsWithName(results As ArrayBuilder(Of Symbol), name As String, binder As Binder, container As NamespaceOrTypeSymbol, options As LookupOptions, info As LookupSymbolsInfo)
1900Dim uniqueSymbol As Symbol = Nothing
1927results As ArrayBuilder(Of Symbol))
1930Dim uniqueSymbols = PooledHashSet(Of Symbol).GetInstance()
1931Dim tempResults = ArrayBuilder(Of Symbol).GetInstance(arities.Count)
1953results As ArrayBuilder(Of Symbol))
1978Dim symbolSet = PooledHashSet(Of Symbol).GetInstance()
1979Dim symBuilder = ArrayBuilder(Of Symbol).GetInstance()
2002results As ArrayBuilder(Of Symbol)
2077Dim vbsymbol = symbol.EnsureVbSymbolOrNothing(Of Symbol)(NameOf(symbol))
2783Return FindNameParameterInfo(containingInvocationInfo.GetAllSymbols().Cast(Of Symbol).ToImmutableArray(),
2818Dim memberGroup As ImmutableArray(Of Symbol) = Nothing
2819Dim containingInvocationInfosymbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(summary,
2830Private Function FindNameParameterInfo(invocationInfosymbols As ImmutableArray(Of Symbol),
2834Dim symbols As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
2852Private Function FindNamedParameter(symbol As Symbol, argumentName As String) As ParameterSymbol
3512Return Me.IsAccessible(position, symbol.EnsureVbSymbolOrNothing(Of Symbol)(NameOf(symbol)))
3625Friend Function GetMessage(symbol As Symbol, position As Integer) As String
Compilation\SyntaxTreeSemanticModel.vb (42)
331Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
339Return ImmutableArray(Of Symbol).Empty
447Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
453Return ImmutableArray(Of Symbol).Empty
457Private Function GetTypeOrNamespaceSymbolNotInMember(expression As TypeSyntax) As Symbol
462Dim resultSymbol As Symbol
475Dim typeParameters As ImmutableArray(Of Symbol) = Nothing
476Dim result As ImmutableArray(Of Symbol) = GetCrefOrNameAttributeReferenceSymbols(node, (options And SymbolInfoOptions.ResolveAliases) = 0, typeParameters)
492result = ImmutableArray(Of Symbol).Empty
495Dim symbolsBuilder = ArrayBuilder(Of Symbol).GetInstance()
497Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options)
509Dim typeParameters As ImmutableArray(Of Symbol) = Nothing
510Dim result As ImmutableArray(Of Symbol) = GetCrefOrNameAttributeReferenceSymbols(name, preserveAlias:=False, typeParameters:=typeParameters)
523Dim resultSymbol As Symbol = result(0)
545<Out> ByRef typeParameters As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol)
546typeParameters = ImmutableArray(Of Symbol).Empty
601Dim symbols As ImmutableArray(Of Symbol)
612Dim symbolsBuilder As ArrayBuilder(Of Symbol) = Nothing
613Dim typeParametersBuilder As ArrayBuilder(Of Symbol) = Nothing
619symbolsBuilder = ArrayBuilder(Of Symbol).GetInstance(i)
620typeParametersBuilder = ArrayBuilder(Of Symbol).GetInstance()
643Dim resultSymbol As Symbol = GetTypeOrNamespaceSymbolNotInMember(expression)
659If Not Binder.AddReceiverNamespaces(namespaces, DirectCast(parentInfo.Symbol, Symbol), Compilation) Then
664If Not Binder.AddReceiverNamespaces(namespaces, DirectCast(candidate, Symbol), Compilation) Then
695Dim resultSymbol As Symbol = GetTypeOrNamespaceSymbolNotInMember(expression)
701Private Function GetImplementedMemberAndResultKind(symbolBuilder As ArrayBuilder(Of Symbol), memberName As QualifiedNameSyntax) As LookupResultKind
755Private Function GetHandledEventOrContainerSymbolsAndResultKind(eventSymbolBuilder As ArrayBuilder(Of Symbol),
756containerSymbolBuilder As ArrayBuilder(Of Symbol),
757propertySymbolBuilder As ArrayBuilder(Of Symbol),
788Dim implementedMemberBuilder As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
790Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(implementedMemberBuilder, options)
798Dim builder As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
804Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(builder, options)
812Dim builder As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
818Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(builder, options)
826Dim builder As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
832Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(builder, options)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (44)
42Dim symbol As Symbol = TryCast(definition.GetInternalSymbol(), Symbol)
60Dim symbol As Symbol = TryCast(reference.GetInternalSymbol(), Symbol)
72Inherits VisualBasicSymbolVisitor(Of Symbol)
76Private ReadOnly _matches As ConcurrentDictionary(Of Symbol, Symbol)
102_matches = New ConcurrentDictionary(Of Symbol, Symbol)(ReferenceEqualityComparer.Instance)
118Public Overrides Function DefaultVisit(symbol As Symbol) As Symbol
123Public Overrides Function Visit(symbol As Symbol) As Symbol
131Public Overrides Function VisitArrayType(symbol As ArrayTypeSymbol) As Symbol
146Public Overrides Function VisitEvent(symbol As EventSymbol) As Symbol
150Public Overrides Function VisitField(symbol As FieldSymbol) As Symbol
154Public Overrides Function VisitMethod(symbol As MethodSymbol) As Symbol
160Public Overrides Function VisitModule([module] As ModuleSymbol) As Symbol
184Public Overrides Function VisitAssembly(assembly As AssemblySymbol) As Symbol
215Public Overrides Function VisitNamespace([namespace] As NamespaceSymbol) As Symbol
216Dim otherContainer As Symbol = Visit([namespace].ContainingSymbol)
237Public Overrides Function VisitNamedType(type As NamedTypeSymbol) As Symbol
279Dim otherContainer As Symbol = Me.Visit(type.ContainingSymbol)
310Public Overrides Function VisitParameter(parameter As ParameterSymbol) As Symbol
314Public Overrides Function VisitProperty(symbol As PropertySymbol) As Symbol
318Public Overrides Function VisitTypeParameter(symbol As TypeParameterSymbol) As Symbol
324Dim otherContainer As Symbol = Me.Visit(symbol.ContainingSymbol)
349Dim type = DirectCast(Me.Visit(DirectCast(modifier.Modifier, Symbol)), NamedTypeSymbol)
362Private Function VisitNamedTypeMember(Of T As Symbol)(member As T, predicate As Func(Of T, T, Boolean)) As Symbol
379Private Function FindMatchingMember(Of T As Symbol)(otherTypeOrNamespace As ISymbolInternal, sourceMember As T, predicate As Func(Of T, T, Boolean)) As T
559Inherits VisualBasicSymbolVisitor(Of Symbol)
561Private ReadOnly _matches As ConcurrentDictionary(Of Symbol, Symbol)
565_matches = New ConcurrentDictionary(Of Symbol, Symbol)(ReferenceEqualityComparer.Instance)
569Public Overrides Function DefaultVisit(symbol As Symbol) As Symbol
574Public Overrides Function Visit(symbol As Symbol) As Symbol
578Public Overrides Function VisitArrayType(symbol As ArrayTypeSymbol) As Symbol
589Public Overrides Function VisitNamedType(type As NamedTypeSymbol) As Symbol
614Public Overrides Function VisitTypeParameter(symbol As TypeParameterSymbol) As Symbol
623Dim translatedType = DirectCast(Me.Visit(DirectCast(modifier.Modifier, Symbol)), NamedTypeSymbol)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (13)
59Friend variableScope As Dictionary(Of Symbol, BoundNode) = New Dictionary(Of Symbol, BoundNode)(ReferenceEqualityComparer.Instance)
105Friend capturedVariables As HashSet(Of Symbol) = New HashSet(Of Symbol)(ReferenceEqualityComparer.Instance)
110Friend capturedVariablesByLambda As MultiDictionary(Of LambdaSymbol, Symbol) = New MultiDictionary(Of LambdaSymbol, Symbol)(ReferenceEqualityComparer.Instance)
115Friend ReadOnly declaredInsideExpressionLambda As New HashSet(Of Symbol)(ReferenceEqualityComparer.Instance)
125Friend ReadOnly symbolsCapturedWithoutCopyCtor As ISet(Of Symbol)
127Private Sub New(method As MethodSymbol, symbolsCapturedWithoutCopyCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag)
138Public Shared Function AnalyzeMethodBody(node As BoundBlock, method As MethodSymbol, symbolsCapturedWithoutCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag) As Analysis
381Private Sub RecordCaptureInIntermediateBlocks(variableOrParameter As Symbol)
403Private Sub ReferenceVariable(variableOrParameter As Symbol, syntax As SyntaxNode)
442Private Sub VerifyCaptured(variableOrParameter As Symbol, syntax As SyntaxNode)
Lowering\LocalRewriter\LocalRewriter.vb (11)
24Private _symbolsCapturedWithoutCopyCtor As ISet(Of Symbol)
158<Out> ByRef symbolsCapturedWithoutCtor As ISet(Of Symbol),
215<Out> ByRef symbolsCapturedWithoutCopyCtor As ISet(Of Symbol),
255SpecializedCollections.EmptySet(Of Symbol),
578Private Function GetSpecialTypeMember(specialMember As SpecialMember) As Symbol
586Private Function ReportMissingOrBadRuntimeHelper(node As BoundNode, specialMember As SpecialMember, memberSymbol As Symbol) As Boolean
594Friend Shared Function ReportMissingOrBadRuntimeHelper(node As BoundNode, specialMember As SpecialMember, memberSymbol As Symbol, diagnostics As BindingDiagnosticBag, Optional embedVBCoreRuntime As Boolean = False) As Boolean
617Private Function ReportMissingOrBadRuntimeHelper(node As BoundNode, wellKnownMember As WellKnownMember, memberSymbol As Symbol) As Boolean
625Friend Shared Function ReportMissingOrBadRuntimeHelper(node As BoundNode, wellKnownMember As WellKnownMember, memberSymbol As Symbol, diagnostics As BindingDiagnosticBag, embedVBCoreRuntime As Boolean) As Boolean
691Private Shared Function CacheToLocalIfNotConst(container As Symbol,
754Friend Shared Function GenerateSequenceValueSideEffects(container As Symbol,
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (4)
26Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), nullableType, hasErrors:=True)
206Return If(isOptional, Nothing, New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True))
255Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True)
283Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr),
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (4)
74newGuid = New BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
83callGetTypeFromCLSID = New BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
94rewrittenObjectCreation = New BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, node.Type, hasErrors:=True)
153result = New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, typeParameter, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (2)
225Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, parameters, ErrorTypeSymbol.UnknownResultType, hasErrors:=True).ToStatement()
249boundMonitorExitCall = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(boundLockObject), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\SyntheticBoundNodeFactory.vb (7)
115Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
121Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, synthesizedKind As SynthesizedLocalKind, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
127Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, slotDebugInfo As LocalSlotDebugInfo, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
248Public Function WellKnownMember(Of T As Symbol)(wm As WellKnownMember, Optional isOptional As Boolean = False) As T
261Public Function SpecialMember(sm As SpecialMember, Optional isOptional As Boolean = False) As Symbol
262Dim memberSymbol As Symbol = Me.Compilation.GetSpecialTypeMember(sm)
459Dim boundNode = New BoundBadExpression(_syntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(subExpressions), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\UseTwiceRewriter.vb (15)
40containingMember As Symbol,
77containingMember As Symbol,
109containingMember As Symbol,
138containingMember As Symbol,
159containingMember As Symbol,
167Private Shared Function UseTwiceRValue(containingMember As Symbol, value As BoundExpression, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
206Private Shared Function UseTwiceCall(containingMember As Symbol, node As BoundCall, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
211Private Shared Function UseTwiceArrayAccess(containingMember As Symbol, node As BoundArrayAccess, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
253Private Shared Function UseTwiceLValue(containingMember As Symbol, lvalue As BoundExpression, temporaries As ArrayBuilder(Of SynthesizedLocal)) As Result
264Private Shared Function UseTwiceFieldAccess(containingMember As Symbol, node As BoundFieldAccess, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
304Private Shared Function UseTwicePropertyAccess(containingMember As Symbol, node As BoundPropertyAccess, isForRegularCompoundAssignment As Boolean, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
417Private Shared Function UseTwiceLateInvocation(containingMember As Symbol, node As BoundLateInvocation, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
478Private Shared Function UseTwiceLateMember(containingMember As Symbol, node As BoundLateMemberAccess, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
500Private Shared Sub UseTwiceRegularArgument(containingMember As Symbol, boundArgument As BoundExpression, arg As ArrayBuilder(Of SynthesizedLocal),
520Private Shared Sub UseTwiceParamArrayArgument(containingMember As Symbol, boundArray As BoundArrayCreation, arg As ArrayBuilder(Of SynthesizedLocal),
Semantics\AccessCheck.vb (24)
41Public Shared Function IsSymbolAccessible(symbol As Symbol,
51Public Shared Function CheckSymbolAccessibility(symbol As Symbol,
62Public Shared Function IsSymbolAccessible(symbol As Symbol,
75Public Shared Function CheckSymbolAccessibility(symbol As Symbol,
90Private Shared Function CheckSymbolAccessibilityCore(symbol As Symbol,
91within As Symbol,
141within As Symbol,
174Private Shared Function CheckNonNestedTypeAccessibility(assembly As AssemblySymbol, declaredAccessibility As Accessibility, within As Symbol) As AccessCheckResult
203within As Symbol,
277Private Shared Function CheckProtectedSymbolAccessibility(within As Symbol,
369Private Shared Function CheckPrivateSymbolAccessibility(within As Symbol, originalContainingType As NamedTypeSymbol) As AccessCheckResult
549Public Shared Function GetAccessibilityForErrorMessage(sym As Symbol, fromAssembly As AssemblySymbol) As String
587exposedThrough As Symbol,
649exposedThrough As Symbol,
682member As Symbol,
706exposedThrough As Symbol,
721exposedThrough As Symbol,
780symbol As Symbol
810symbol As Symbol,
852exposingMember As Symbol,
893DirectCast(parentOfExposingType.ContainingAssembly, Symbol),
989member As Symbol,
1106member As Symbol,
1153member As Symbol,
Symbols\Attributes\AttributeData.vb (4)
188Friend Sub DecodeSecurityAttribute(Of T As {WellKnownAttributeData, ISecurityAttributeTarget, New})(targetSymbol As Symbol, compilation As VisualBasicCompilation, ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation))
206targetSymbol As Symbol,
279targetSymbol As Symbol,
530Friend Function ShouldEmitAttribute(target As Symbol, isReturnType As Boolean, emittingAssemblyAttributesInNetModule As Boolean) As Boolean
Symbols\Metadata\PE\PENamedTypeSymbol.vb (20)
56Private _lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol))
171Dim s As Symbol = _container
327Public Overrides ReadOnly Property ContainingSymbol As Symbol
504Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol)
511Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol)
664Dim members = ArrayBuilder(Of Symbol).GetInstance()
688Dim membersDict As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer)
700Dim weMembers As ImmutableArray(Of Symbol) = Nothing
720Dim symbols As ImmutableArray(Of Symbol) = Nothing
722membersDict.Add(name, StaticCast(Of Symbol).From(typeSymbols))
724membersDict(name) = symbols.Concat(StaticCast(Of Symbol).From(typeSymbols))
756Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol)
760Dim m As ImmutableArray(Of Symbol) = Nothing
766Return ImmutableArray(Of Symbol).Empty
1124Private Sub CreateFields(members As ArrayBuilder(Of Symbol),
1219Private Sub CreateProperties(methodHandleToSymbol As Dictionary(Of MethodDefinitionHandle, PEMethodSymbol), members As ArrayBuilder(Of Symbol))
1241Private Sub CreateEvents(methodHandleToSymbol As Dictionary(Of MethodDefinitionHandle, PEMethodSymbol), members As ArrayBuilder(Of Symbol))
1546Private Shared Function GetIndexOfFirstMember(members As ImmutableArray(Of Symbol), kind As SymbolKind) As Integer
1560Private Overloads Shared Iterator Function GetMembers(Of TSymbol As Symbol)(members As ImmutableArray(Of Symbol), kind As SymbolKind, Optional offset As Integer = -1) As IEnumerable(Of TSymbol)
Symbols\NamedTypeSymbol.vb (28)
27Protected Shared ReadOnly s_requiredMembersErrorSentinel As ImmutableSegmentedDictionary(Of String, Symbol) = ImmutableSegmentedDictionary(Of String, Symbol).Empty.Add("<error sentinel>", Nothing)
31''' <see cref="ImmutableSegmentedDictionary(Of String, Symbol).Empty"/> if there are no required members. Otherwise,
34Private _lazyRequiredMembers As ImmutableSegmentedDictionary(Of String, Symbol) = Nothing
124Public Overridable ReadOnly Property AssociatedSymbol As Symbol
236Dim methods As ImmutableArray(Of Symbol) = GetMembers(WellKnownMemberNames.DelegateInvokeName)
305For Each member As Symbol In Me.GetMembers(name)
332Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name)))
375Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name)))
409Dim instanceCandidates As ImmutableArray(Of Symbol) = If(includeInstance, GetMembers(WellKnownMemberNames.InstanceConstructorName), ImmutableArray(Of Symbol).Empty)
410Dim sharedCandidates As ImmutableArray(Of Symbol) = If(includeShared, GetMembers(WellKnownMemberNames.StaticConstructorName), ImmutableArray(Of Symbol).Empty)
607Public MustOverride Overrides Function GetMembers() As ImmutableArray(Of Symbol)
614Public MustOverride Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol)
757Friend Overridable Function GetSimpleNonTypeMembers(name As String) As ImmutableArray(Of Symbol)
1102''' this will be <see cref="ImmutableSegmentedDictionary(Of String, Symbol).Empty"/>.
1104Friend ReadOnly Property AllRequiredMembers As ImmutableSegmentedDictionary(Of String, Symbol)
1108Return If(_lazyRequiredMembers = s_requiredMembersErrorSentinel, ImmutableSegmentedDictionary(Of String, Symbol).Empty, _lazyRequiredMembers)
1114''' true, <see cref="AllRequiredMembers"/> will be <see cref="ImmutableSegmentedDictionary(Of String, Symbol).Empty"/>
1127Dim lazyRequiredMembers As ImmutableSegmentedDictionary(Of String, Symbol) = _lazyRequiredMembers
1133Dim requiredMembersBuilder As ImmutableSegmentedDictionary(Of String, Symbol).Builder = Nothing
1137If(requiredMembersBuilder?.ToImmutable(), If(BaseTypeNoUseSiteDiagnostics?.AllRequiredMembers, ImmutableSegmentedDictionary(Of String, Symbol).Empty)),
1143Private Function TryCalculateRequiredMembers(<Out> ByRef requiredMembersBuilder As ImmutableSegmentedDictionary(Of String, Symbol).Builder) As Boolean
1148Dim baseAllRequiredMembers = If(BaseTypeNoUseSiteDiagnostics?.AllRequiredMembers, ImmutableSegmentedDictionary(Of String, Symbol).Empty)
1166Dim existingMember As Symbol = Nothing
1227Dim hs = PooledHashSet(Of Symbol).GetInstance()
1245partialClosure As HashSet(Of Symbol),
Symbols\Retargeting\RetargetingSymbolTranslator.vb (39)
27Private ReadOnly _symbolMap As New ConcurrentDictionary(Of Symbol, Symbol)()
29Private ReadOnly _createRetargetingMethod As Func(Of Symbol, RetargetingMethodSymbol)
30Private ReadOnly _createRetargetingNamespace As Func(Of Symbol, RetargetingNamespaceSymbol)
31Private ReadOnly _createRetargetingTypeParameter As Func(Of Symbol, RetargetingTypeParameterSymbol)
32Private ReadOnly _createRetargetingNamedType As Func(Of Symbol, RetargetingNamedTypeSymbol)
33Private ReadOnly _createRetargetingField As Func(Of Symbol, RetargetingFieldSymbol)
34Private ReadOnly _createRetargetingProperty As Func(Of Symbol, RetargetingPropertySymbol)
35Private ReadOnly _createRetargetingEvent As Func(Of Symbol, RetargetingEventSymbol)
37Private Function CreateRetargetingMethod(symbol As Symbol) As RetargetingMethodSymbol
42Private Function CreateRetargetingNamespace(symbol As Symbol) As RetargetingNamespaceSymbol
47Private Function CreateRetargetingNamedType(symbol As Symbol) As RetargetingNamedTypeSymbol
52Private Function CreateRetargetingField(symbol As Symbol) As RetargetingFieldSymbol
57Private Function CreateRetargetingProperty(symbol As Symbol) As RetargetingPropertySymbol
62Private Function CreateRetargetingEvent(symbol As Symbol) As RetargetingEventSymbol
67Private Function CreateRetargetingTypeParameter(symbol As Symbol) As RetargetingTypeParameterSymbol
80Inherits VisualBasicSymbolVisitor(Of RetargetOptions, Symbol)
92Private ReadOnly Property SymbolMap As ConcurrentDictionary(Of Symbol, Symbol)
128Public Function Retarget(symbol As Symbol) As Symbol
787Friend Function GetRetargetedAttributes(underlyingSymbol As Symbol, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData), Optional getReturnTypeAttributes As Boolean = False) As ImmutableArray(Of VisualBasicAttributeData)
833Public Function Retarget(arr As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol)
834Dim symbols = ArrayBuilder(Of Symbol).GetInstance(arr.Length)
836For Each s As Symbol In arr
986For Each retargetedMember As Symbol In retargetedType.GetMembers(method.Name)
1054For Each retargetedMember As Symbol In retargetedType.GetMembers([event].Name)
1104For Each retargetedMember As Symbol In retargetedType.GetMembers([property].Name)
1116Public Overrides Function VisitModule(symbol As ModuleSymbol, options As RetargetOptions) As Symbol
1122Public Overrides Function VisitNamespace(symbol As NamespaceSymbol, options As RetargetOptions) As Symbol
1126Public Overrides Function VisitNamedType(symbol As NamedTypeSymbol, options As RetargetOptions) As Symbol
1130Public Overrides Function VisitArrayType(symbol As ArrayTypeSymbol, arg As RetargetOptions) As Symbol
1134Public Overrides Function VisitMethod(symbol As MethodSymbol, options As RetargetOptions) As Symbol
1138Public Overrides Function VisitField(symbol As FieldSymbol, options As RetargetOptions) As Symbol
1142Public Overrides Function VisitProperty(symbol As PropertySymbol, arg As RetargetOptions) As Symbol
1146Public Overrides Function VisitEvent(symbol As EventSymbol, arg As RetargetOptions) As Symbol
1150Public Overrides Function VisitTypeParameter(symbol As TypeParameterSymbol, options As RetargetOptions) As Symbol
1154Public Overrides Function VisitErrorType(symbol As ErrorTypeSymbol, options As RetargetOptions) As Symbol
Symbols\Source\ImplementsHelper.vb (25)
24Public Function GetExplicitInterfaceImplementations(member As Symbol) As ImmutableArray(Of Symbol)
27Return StaticCast(Of Symbol).From(DirectCast(member, MethodSymbol).ExplicitInterfaceImplementations)
29Return StaticCast(Of Symbol).From(DirectCast(member, PropertySymbol).ExplicitInterfaceImplementations)
31Return StaticCast(Of Symbol).From(DirectCast(member, EventSymbol).ExplicitInterfaceImplementations)
33Return ImmutableArray(Of Symbol).Empty
42Public Function GetImplementingLocation(sourceSym As Symbol, implementedSym As Symbol) As Location
68Public Function FindImplementingSyntax(Of TSymbol As Symbol)(implementsClause As ImplementsClauseSyntax,
91Public Function ProcessImplementsClause(Of TSymbol As Symbol)(implementsClause As ImplementsClauseSyntax,
166Public Function FindExplicitlyImplementedMember(Of TSymbol As Symbol)(implementingSym As TSymbol,
171candidateSymbols As ArrayBuilder(Of Symbol),
366Dim [property] = DirectCast(DirectCast(foundMember, Symbol), PropertySymbol)
409Private Function MembersAreMatchingForPurposesOfInterfaceImplementation(implementingSym As Symbol,
410implementedSym As Symbol) As Boolean
415Private Function MembersHaveMatchingTupleNames(implementingSym As Symbol,
416implementedSym As Symbol) As Boolean
421Private Function MembersAreMatching(implementingSym As Symbol,
422implementedSym As Symbol,
454Private Function ValidateImplementedMember(Of TSymbol As Symbol)(implementingSym As TSymbol,
561Public Function ComputeImplementationForInterfaceMember(Of TSymbol As Symbol)(interfaceMember As TSymbol,
578Dim currTypeExplicitImpl As MultiDictionary(Of Symbol, Symbol).ValueSet = currType.ExplicitInterfaceImplementationMap(interfaceMember)
639Private Function FindImplicitImplementationDeclaredInType(Of TSymbol As Symbol)(interfaceMember As TSymbol,
664Public Function SubstituteExplicitInterfaceImplementations(Of TSymbol As Symbol)(unsubstitutedImplementations As ImmutableArray(Of TSymbol),
Symbols\Source\LocalSymbol.vb (13)
23Private ReadOnly _container As Symbol ' the method, field or property that contains the declaration of this variable
30Friend Shared Function Create(container As Symbol,
44Friend Shared Function Create(container As Symbol,
57Friend Shared Function Create(container As Symbol,
77Friend Shared Function CreateInferredForFromTo(container As Symbol,
90Friend Shared Function CreateInferredForEach(container As Symbol,
102Friend Sub New(container As Symbol, type As TypeSymbol)
200Public Overrides ReadOnly Property ContainingSymbol As Symbol
489Public Sub New(containingSymbol As Symbol,
646Public Sub New(container As Symbol,
682Public Sub New(container As Symbol,
746Public Sub New(container As Symbol,
829Public Sub New(container As Symbol,
Symbols\Source\OverrideHidingHelper.vb (34)
93Public Shared Function SignaturesMatch(sym1 As Symbol, sym2 As Symbol, <Out()> ByRef exactMatch As Boolean, <Out()> ByRef exactMatchIgnoringCustomModifiers As Boolean) As Boolean
126sym1 As Symbol,
127sym2 As Symbol,
200Dim overriddenMembers As HashSet(Of Symbol) = New HashSet(Of Symbol)()
201Dim unimplementedMembers As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
231Dim hidingSymbols As New HashSet(Of Symbol) ' don't report more than once per hiding symbols
279Private Shared Function DoesHide(hidingMember As Symbol, hiddenMember As Symbol) As Boolean
320member As Symbol,
345member As Symbol,
383Private Shared Sub ReportShadowingDiagnostic(hidingMember As Symbol,
384hiddenMember As Symbol,
459Public Shared Function AssociatedSymbolName(associatedSymbol As Symbol) As String
466Private Shared Sub ReportShadowingMustOverrideError(hidingMember As Symbol,
467hiddenMember As Symbol,
491Friend Shared Function CanOverrideOrHide(sym As Symbol) As Boolean
511Protected Shared Function GetOverriddenMember(sym As Symbol) As Symbol
567Friend Class OverrideHidingHelper(Of TSymbol As Symbol)
621Debug.Assert(Not (TypeOf overridingSym Is MethodSymbol AndAlso DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).ConstructedFrom <> overridingSym))
626(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse
627DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet)))
688(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse
689DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet)))
733sym As Symbol,
920Dim overridingProperty As PropertySymbol = DirectCast(DirectCast(member, Symbol), PropertySymbol)
921Dim overriddenProperty As PropertySymbol = DirectCast(DirectCast(overriddenMember, Symbol), PropertySymbol)
1000overridingMember As Symbol,
1001overriddenMember As Symbol,
1008Private Shared Function ConsistentAccessibility(overriding As Symbol, overridden As Symbol, ByRef errorId As ERRID) As Boolean
Symbols\Source\SourceMemberContainerTypeSymbol.vb (67)
89Private _lazyMembersFlattened As ImmutableArray(Of Symbol)
439For Each batch As ImmutableArray(Of Symbol) In GetMembersAndInitializers().Members.Values
440For Each member As Symbol In batch
1207Public Overrides ReadOnly Property ContainingSymbol As Symbol
1498Friend ReadOnly Members As Dictionary(Of String, ImmutableArray(Of Symbol))
1511members As Dictionary(Of String, ImmutableArray(Of Symbol)),
1532Friend ReadOnly Members As Dictionary(Of String, ArrayBuilder(Of Symbol)) = New Dictionary(Of String, ArrayBuilder(Of Symbol))(IdentifierComparison.Comparer)
1536Friend ReadOnly DeferredMemberDiagnostic As ArrayBuilder(Of Symbol) = ArrayBuilder(Of Symbol).GetInstance()
1544Dim readonlyMembers = New Dictionary(Of String, ImmutableArray(Of Symbol))(IdentifierComparison.Comparer)
1723Dim nontypeSymbols As ImmutableArray(Of Symbol) = Nothing
1726membersAndInitializers.Members.Add(name, StaticCast(Of Symbol).From(typeSymbols))
1728membersAndInitializers.Members(name) = nontypeSymbols.Concat(StaticCast(Of Symbol).From(typeSymbols))
1743Private Function FindPartialMethodDeclarations(diagnostics As BindingDiagnosticBag, members As Dictionary(Of String, ImmutableArray(Of Symbol))) As HashSet(Of SourceMemberMethodSymbol)
1765Private Sub ProcessPartialMethodsIfAny(members As Dictionary(Of String, ImmutableArray(Of Symbol)), diagnostics As BindingDiagnosticBag)
1794Dim memberGroup As ImmutableArray(Of Symbol) = members(originalPartialMethod.Name)
1870Dim newMembers = ArrayBuilder(Of Symbol).GetInstance()
1872Dim member As Symbol = memberGroup(i)
2149Dim symbolToReportErrorOn As Symbol = If(firstField.AssociatedSymbol, DirectCast(firstField, Symbol))
2248Private Function DetermineDefaultPropertyName(membersByName As Dictionary(Of String, ImmutableArray(Of Symbol)), diagBag As BindingDiagnosticBag) As String
2341Dim fieldOrPropertyArray As ImmutableArray(Of Symbol) = initializer.FieldsOrProperties
2345Dim fieldOrProperty As Symbol = fieldOrPropertyArray.First
2443Private Function GetExplicitSymbolFlags(symbol As Symbol, ByRef shadowsExplicitly As Boolean, ByRef overloadsExplicitly As Boolean, ByRef overridesExplicitly As Boolean) As Boolean
2754Dim symbols As ArrayBuilder(Of Symbol) = Nothing
2834Dim candidates As ArrayBuilder(Of Symbol) = Nothing
2915For Each sym As Symbol In members.DeferredMemberDiagnostic
2945Friend Sub AddMember(sym As Symbol,
2957Friend Sub AddSymbolToMembers(memberSymbol As Symbol,
2958members As Dictionary(Of String, ArrayBuilder(Of Symbol)))
2960Dim symbols As ArrayBuilder(Of Symbol) = Nothing
2964symbols = New ArrayBuilder(Of Symbol)
2971Private Function CheckIfMemberNameConflictsWithTypeMember(sym As Symbol,
2987Private Function CheckIfMemberNameIsDuplicate(sym As Symbol,
2991Dim definedSymbols As ArrayBuilder(Of Symbol) = Nothing
3004Private Function CheckIfMemberNameIsDuplicate(firstSymbol As Symbol,
3005secondSymbol As Symbol,
3122Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol)
3132Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol)
3150Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol)
3152Dim members As ImmutableArray(Of Symbol) = Nothing
3158Return ImmutableArray(Of Symbol).Empty
3161Friend Overrides Function GetSimpleNonTypeMembers(name As String) As ImmutableArray(Of Symbol)
3166Return ImmutableArray(Of Symbol).Empty
3178Dim symbols As ImmutableArray(Of Symbol) = Nothing
3360Private Function MakeExplicitInterfaceImplementationMap(diagnostics As BindingDiagnosticBag) As MultiDictionary(Of Symbol, Symbol)
3367Dim map = New MultiDictionary(Of Symbol, Symbol)(ExplicitInterfaceImplementationTargetMemberEqualityComparer.Instance)
3390Dim implementingSet As MultiDictionary(Of Symbol, Symbol).ValueSet = map(ifaceMember)
3428Private Function ShouldReportImplementationError(interfaceMember As Symbol) As Boolean
3452Friend Overrides ReadOnly Property ExplicitInterfaceImplementationMap As MultiDictionary(Of Symbol, Symbol)
3485Dim structEnumerator As Dictionary(Of String, ImmutableArray(Of Symbol)).Enumerator = lookup.Members.GetEnumerator
3489Dim memberList As ImmutableArray(Of Symbol) = structEnumerator.Current.Value
3504Dim member As Symbol = memberList(memberIndex)
3582memberList As ImmutableArray(Of Symbol),
3584membersEnumerator As Dictionary(Of String, ImmutableArray(Of Symbol)).Enumerator,
3588Dim member As Symbol = memberList(memberIndex)
3625Dim otherMembers As ImmutableArray(Of Symbol) = Nothing
3669Dim otherMembers As ImmutableArray(Of Symbol) = Nothing
3671For Each other As Symbol In otherMembers
3712memberList As ImmutableArray(Of Symbol),
3820Private Sub ReportOverloadsErrors(comparisonResults As SymbolComparisonResults, firstMember As Symbol, secondMember As Symbol, location As Location, diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (33)
123Dim interfaceMembers = ArrayBuilder(Of KeyValuePair(Of Symbol, Integer)).GetInstance()
301Private Shared Function GetComVisibleState(target As Symbol) As Boolean
328For Each member As Symbol In comClass.GetMembers(interfaceName)
340For Each member As Symbol In container.GetMembers(interfaceName)
361interfaceMembers As ArrayBuilder(Of KeyValuePair(Of Symbol, Integer)),
368For Each member As Symbol In comClass.GetMembers()
430interfaceMembers.Add(New KeyValuePair(Of Symbol, Integer)(prop, GetUserSpecifiedDispId(prop, diagnostics)))
438interfaceMembers.Add(New KeyValuePair(Of Symbol, Integer)(getter,
442interfaceMembers.Add(New KeyValuePair(Of Symbol, Integer)(setter,
456interfaceMembers.Add(New KeyValuePair(Of Symbol, Integer)(member, GetUserSpecifiedDispId(member, diagnostics)))
475Private Shared Function GetUserSpecifiedDispId(target As Symbol, diagnostics As BindingDiagnosticBag) As Integer
515Private ReadOnly _members As ImmutableArray(Of Symbol)
518Public Sub New(comClass As SourceNamedTypeSymbol, interfaceMembers As ArrayBuilder(Of KeyValuePair(Of Symbol, Integer)))
525For Each pair As KeyValuePair(Of Symbol, Integer) In interfaceMembers
531Dim members = ArrayBuilder(Of Symbol).GetInstance()
539Dim pair As KeyValuePair(Of Symbol, Integer) = interfaceMembers(i)
540Dim member As Symbol = pair.Key
576Dim getterPair As KeyValuePair(Of Symbol, Integer) = interfaceMembers(i)
578Dim setterPair As KeyValuePair(Of Symbol, Integer) = interfaceMembers(i)
673Dim members = ArrayBuilder(Of Symbol).GetInstance()
736Public Overrides ReadOnly Property ContainingSymbol As Symbol
770Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol)
774Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol)
1021Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1068Protected Overridable ReadOnly Property NameAndAttributesSource As Symbol
1097Public Overrides ReadOnly Property AssociatedSymbol As Symbol
1109Public Overrides ReadOnly Property ContainingSymbol As Symbol
1323Dim attributeSource As Symbol = NameAndAttributesSource
1365Dim attributeSource As Symbol = NameAndAttributesSource
1405Protected Overrides ReadOnly Property NameAndAttributesSource As Symbol
1421Private ReadOnly _container As Symbol
1440Public Overrides ReadOnly Property ContainingSymbol As Symbol
1716Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Symbol.vb (20)
151Public MustOverride ReadOnly Property ContainingSymbol As Symbol
176Dim container As Symbol = Me.ContainingSymbol
226Dim container As Symbol = Me.ContainingSymbol
280Dim container As Symbol = Me.ContainingSymbol
295Public ReadOnly Property OriginalDefinition As Symbol
301Protected Overridable ReadOnly Property OriginalSymbolDefinition As Symbol
564Friend Overridable ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
800Public Shared Operator =(left As Symbol, right As Symbol) As Boolean
818Public Shared Operator <>(left As Symbol, right As Symbol) As Boolean
838Return Me.[Equals](TryCast(other, Symbol), SymbolEqualityComparer.Default.CompareKind)
842Return Me.[Equals](TryCast(other, Symbol), equalityComparer.CompareKind)
846Return Me.Equals(TryCast(other, Symbol), compareKind)
850Public Overridable Overloads Function Equals(other As Symbol, compareKind As TypeCompareKind) As Boolean
1113Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(Of T As TypeSymbol)(types As ImmutableArray(Of T), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1124Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(modifiers As ImmutableArray(Of CustomModifier), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1135Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(parameters As ImmutableArray(Of ParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1149Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(typeParameters As ImmutableArray(Of TypeParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\Tuples\TupleTypeSymbol.vb (28)
46Private _lazyMembers As ImmutableArray(Of Symbol)
50Private _lazyUnderlyingDefinitionToMemberMap As SmallDictionary(Of Symbol, Symbol)
123Friend ReadOnly Property UnderlyingDefinitionToMemberMap As SmallDictionary(Of Symbol, Symbol)
152Public Overrides ReadOnly Property ContainingSymbol As Symbol
166Return Symbol.GetDeclaringSyntaxReferenceHelper(Of VisualBasicSyntaxNode)(Me._locations)
637Private Shared Function GetWellKnownMemberInType(type As NamedTypeSymbol, relativeMember As WellKnownMember) As Symbol
644Friend Shared Function GetWellKnownMemberInType(type As NamedTypeSymbol, relativeMember As WellKnownMember, diagnostics As BindingDiagnosticBag, syntax As SyntaxNode) As Symbol
645Dim wellKnownMemberInType As Symbol = TupleTypeSymbol.GetWellKnownMemberInType(type, relativeMember)
684Public Overrides Function GetMembers() As ImmutableArray(Of Symbol)
687ImmutableInterlocked.InterlockedInitialize(Of Symbol)(Me._lazyMembers, Me.CreateMembers())
692Private Function CreateMembers() As ImmutableArray(Of Symbol)
694Dim members = ArrayBuilder(Of Symbol).GetInstance(Math.Max(_elementTypes.Length, _underlyingType.OriginalDefinition.GetMembers().Length))
704Dim underlyingMembers As ImmutableArray(Of Symbol) = currentUnderlying.OriginalDefinition.GetMembers()
882Private Function ComputeDefinitionToMemberMap() As SmallDictionary(Of Symbol, Symbol)
883Dim smallDictionary As SmallDictionary(Of Symbol, Symbol) = New SmallDictionary(Of Symbol, Symbol)(ReferenceEqualityComparer.Instance)
885Dim members As ImmutableArray(Of Symbol) = Me.GetMembers()
888Dim symbol As Symbol = members(i)
925Public Function GetTupleMemberSymbolForUnderlyingMember(Of TMember As Symbol)(underlyingMemberOpt As TMember) As TMember
930Dim originalDefinition As Symbol = underlyingMemberOpt.OriginalDefinition
932Dim symbol As Symbol = Nothing
944Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol)
1021Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\TypeSubstitution.vb (19)
78Private ReadOnly _targetGenericDefinition As Symbol
121Public ReadOnly Property TargetGenericDefinition As Symbol
133Dim containingSymbol As Symbol = tp.ContainingSymbol
259targetGenericDefinition As Symbol
280targetGenericDefinition As Symbol
300Public Function IsValidToApplyTo(genericDefinition As Symbol) As Boolean
303Dim current As Symbol = genericDefinition
328Public Shared Function Concat(targetGenericDefinition As Symbol, sub1 As TypeSubstitution, sub2 As TypeSubstitution) As TypeSubstitution
368targetGenericDefinition As Symbol,
377targetGenericDefinition As Symbol,
396targetGenericDefinition As Symbol,
408Dim currentContainer As Symbol = Nothing
483targetGenericDefinition As Symbol,
496targetGenericDefinition As Symbol,
512targetGenericDefinition As Symbol,
556Private Sub New(targetGenericDefinition As Symbol, pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)), parent As TypeSubstitution)
590Dim memberDefinition As Symbol = alphaRenamedTypeParameters(0).OriginalDefinition.ContainingSymbol
753Dim targetGenericDefinition As Symbol = oldConstructSubstitution.TargetGenericDefinition
805targetGenericDefinition As Symbol,
Symbols\TypeSymbol.vb (38)
48Private _lazyImplementationForInterfaceMemberMap As ConcurrentDictionary(Of Symbol, Symbol)
57Protected m_lazyExplicitInterfaceImplementationMap As MultiDictionary(Of Symbol, Symbol)
83Protected NotOverridable Overrides ReadOnly Property OriginalSymbolDefinition As Symbol
326Public Overloads Shared Operator =(left As Symbol, right As TypeSymbol) As Boolean
331Public Overloads Shared Operator <>(left As Symbol, right As TypeSymbol) As Boolean
336Public Overloads Shared Operator =(left As TypeSymbol, right As Symbol) As Boolean
341Public Overloads Shared Operator <>(left As TypeSymbol, right As Symbol) As Boolean
353Public NotOverridable Overrides Function Equals(other As Symbol, compareKind As TypeCompareKind) As Boolean
534Friend MustOverride Overloads Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
540Return If(TypeOf interfaceMember Is Symbol,
541FindImplementationForInterfaceMember(DirectCast(interfaceMember, Symbol)),
644Public Function FindImplementationForInterfaceMember(interfaceMember As Symbol) As Symbol
658Dim result As Symbol = Nothing
668Private ReadOnly Property ImplementationForInterfaceMemberMap As ConcurrentDictionary(Of Symbol, Symbol)
676map = New ConcurrentDictionary(Of Symbol, Symbol)(concurrencyLevel:=1, capacity:=1)
684Private Function ComputeImplementationForInterfaceMember(interfaceMember As Symbol) As Symbol
718Friend Overridable ReadOnly Property ExplicitInterfaceImplementationMap As MultiDictionary(Of Symbol, Symbol)
729Protected Shared ReadOnly EmptyExplicitImplementationMap As MultiDictionary(Of Symbol, Symbol) = New MultiDictionary(Of Symbol, Symbol)
733Private Function MakeExplicitInterfaceImplementationMap() As MultiDictionary(Of Symbol, Symbol)
735Dim map = New MultiDictionary(Of Symbol, Symbol)(ExplicitInterfaceImplementationTargetMemberEqualityComparer.Instance)
753Implements IEqualityComparer(Of Symbol)
760Public Overloads Function Equals(x As Symbol, y As Symbol) As Boolean Implements IEqualityComparer(Of Symbol).Equals
765Public Overloads Function GetHashCode(obj As Symbol) As Integer Implements IEqualityComparer(Of Symbol).GetHashCode