13 types derived from Symbol
Microsoft.CodeAnalysis.VisualBasic (13)
Symbols\AliasSymbol.vb (1)
53Inherits Symbol
Symbols\AssemblySymbol.vb (1)
22Inherits Symbol
Symbols\EventSymbol.vb (1)
22Inherits Symbol
Symbols\FieldSymbol.vb (1)
20Inherits Symbol
Symbols\LabelSymbol.vb (1)
17Inherits Symbol
Symbols\MethodSymbol.vb (1)
15Inherits Symbol
Symbols\ModuleSymbol.vb (1)
15Inherits Symbol
Symbols\NamespaceOrTypeSymbol.vb (1)
19Inherits Symbol
Symbols\ParameterSymbol.vb (1)
20Inherits Symbol
Symbols\PreprocessingSymbol.vb (1)
12Inherits Symbol
Symbols\PropertySymbol.vb (1)
15Inherits Symbol
Symbols\Source\LocalSymbol.vb (1)
18Inherits Symbol
Symbols\Source\RangeVariableSymbol.vb (1)
18Inherits Symbol
1 instantiation of Symbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PreprocessingSymbol.vb (1)
18MyBase.New()
1882 references to Symbol
Microsoft.CodeAnalysis.VisualBasic (1882)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
28Public symbol As Symbol
Analysis\FlowAnalysis\AbstractRegionDataFlowPass.vb (1)
22Optional initiallyAssignedVariables As HashSet(Of Symbol) = Nothing,
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (4)
24Friend Overloads Shared Function Analyze(info As FlowAnalysisInfo, region As FlowAnalysisRegionInfo) As IEnumerable(Of Symbol) 28Return If(result, walker.AlwaysAssigned, SpecializedCollections.EmptyEnumerable(Of Symbol)()) 37Private ReadOnly Property AlwaysAssigned As IEnumerable(Of Symbol) 39Dim result As New List(Of Symbol)
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (1)
23Private Sub New(container As Symbol, type As TypeSymbol, locals As ImmutableArray(Of LocalSymbol))
Analysis\FlowAnalysis\DataFlowPass.VariableIdentifier.vb (2)
23Public Sub New(symbol As Symbol, containingSlot As Integer) 29Public ReadOnly Symbol As Symbol
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\FlowAnalysis\DataFlowsInWalker.vb (9)
23Private Sub New(info As FlowAnalysisInfo, region As FlowAnalysisRegionInfo, unassignedVariables As HashSet(Of Symbol)) 28unassignedVariables As HashSet(Of Symbol), 30ByRef invalidRegionDetected As Boolean) As HashSet(Of Symbol) 33Dim unassignedWithoutStatic As New HashSet(Of Symbol) 44Return If(succeeded, walker._dataFlowsIn, New HashSet(Of Symbol)()) 50Private ReadOnly _dataFlowsIn As HashSet(Of Symbol) = New HashSet(Of Symbol)() 107Protected Overrides Sub ReportUnassigned(local As Symbol, 119Dim sym As Symbol = GetNodeSymbol(boundFieldAccess)
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (15)
24Private ReadOnly _originalUnassigned As HashSet(Of Symbol) 25Private ReadOnly _dataFlowsOut As New HashSet(Of Symbol)() 28Private ReadOnly _assignedInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 32unassignedVariables As HashSet(Of Symbol), originalUnassigned As HashSet(Of Symbol), dataFlowsIn As ImmutableArray(Of ISymbol)) 41unassignedVariables As HashSet(Of Symbol), dataFlowsIn As ImmutableArray(Of ISymbol)) As HashSet(Of Symbol) 44Dim unassignedWithoutStatic As New HashSet(Of Symbol) 60Return If(success, result, New HashSet(Of Symbol)()) 70For Each variable As Symbol In _dataFlowsIn 141Protected Overrides Sub ReportUnassigned(local As Symbol, 151Dim sym As Symbol = GetNodeSymbol(boundFieldAccess) 175Protected Overrides Sub NoteWrite(variable As Symbol, value As BoundExpression) 191Private Function WasUsedBeforeAssignment(sym As Symbol) As Boolean
Analysis\FlowAnalysis\DefinitelyAssignedWalker.vb (8)
18Private ReadOnly _definitelyAssignedOnEntry As New HashSet(Of Symbol)() 19Private ReadOnly _definitelyAssignedOnExit As New HashSet(Of Symbol)() 25Friend Overloads Shared Function Analyze(info As FlowAnalysisInfo, region As FlowAnalysisRegionInfo) As (entry As HashSet(Of Symbol), ex As HashSet(Of Symbol)) 31(New HashSet(Of Symbol), New HashSet(Of Symbol))) 47Private Sub ProcessRegion(definitelyAssigned As HashSet(Of Symbol)) 63Private Sub ProcessState(definitelyAssigned As HashSet(Of Symbol), state1 As LocalState, state2opt As LocalState)
Analysis\FlowAnalysis\FlowAnalysisInfo.vb (2)
20Public ReadOnly Symbol As Symbol 24Public Sub New(_compilation As VisualBasicCompilation, _symbol As Symbol, _node As BoundNode)
Analysis\FlowAnalysis\ReadWriteWalker.vb (29)
20ByRef readInside As IEnumerable(Of Symbol), 21ByRef writtenInside As IEnumerable(Of Symbol), 22ByRef readOutside As IEnumerable(Of Symbol), 23ByRef writtenOutside As IEnumerable(Of Symbol), 24ByRef captured As IEnumerable(Of Symbol), 25ByRef capturedInside As IEnumerable(Of Symbol), 26ByRef capturedOutside As IEnumerable(Of Symbol)) 39readInside = Enumerable.Empty(Of Symbol)() 52Private ReadOnly _readInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 53Private ReadOnly _writtenInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 54Private ReadOnly _readOutside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 55Private ReadOnly _writtenOutside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 56Private ReadOnly _captured As HashSet(Of Symbol) = New HashSet(Of Symbol)() 57Private ReadOnly _capturedInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 58Private ReadOnly _capturedOutside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 60Private _currentMethodOrLambda As Symbol 63Protected Overrides Sub NoteRead(variable As Symbol) 80Protected Overrides Sub NoteWrite(variable As Symbol, value As BoundExpression) 98Private Sub NoteCaptured(variable As Symbol) 126Private Sub NoteReceiverReadOrWritten(fieldAccess As BoundFieldAccess, readOrWritten As HashSet(Of Symbol)) 149Private Shared Function IsCompilerGeneratedTempLocal(variable As Symbol) As Boolean 153Private Sub CheckCaptured(variable As Symbol)
Analysis\FlowAnalysis\RegionAnalysisContext.vb (2)
19Private ReadOnly _symbol As Symbol 53Friend Sub New(compilation As VisualBasicCompilation, member As Symbol, boundNode As BoundNode, firstInRegion As BoundNode, lastInRegion As BoundNode, region As textspan)
Analysis\FlowAnalysis\UnassignedVariablesWalker.vb (6)
25Friend Overloads Shared Function Analyze(info As FlowAnalysisInfo) As HashSet(Of Symbol) 28Return If(walker.Analyze(), walker._result, New HashSet(Of Symbol)()) 34Private ReadOnly _result As HashSet(Of Symbol) = New HashSet(Of Symbol)() 36Protected Overrides Sub ReportUnassigned(local As Symbol, 45Dim sym As Symbol = GetNodeSymbol(boundFieldAccess)
Analysis\FlowAnalysis\VariablesDeclaredWalker.vb (3)
17Friend Overloads Shared Function Analyze(info As FlowAnalysisInfo, region As FlowAnalysisRegionInfo) As IEnumerable(Of Symbol) 20Return If(walker.Analyze(), walker._variablesDeclared, SpecializedCollections.EmptyEnumerable(Of Symbol)()) 26Private ReadOnly _variablesDeclared As New HashSet(Of Symbol)
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (13)
23Private _unassignedVariables As HashSet(Of Symbol) 58Private ReadOnly Property UnassignedVariables As HashSet(Of Symbol) 61Dim result = If(Me._context.Failed, New HashSet(Of Symbol)(), 196Dim readInside As IEnumerable(Of Symbol) = Nothing 197Dim writtenInside As IEnumerable(Of Symbol) = Nothing 198Dim readOutside As IEnumerable(Of Symbol) = Nothing 199Dim writtenOutside As IEnumerable(Of Symbol) = Nothing 200Dim captured As IEnumerable(Of Symbol) = Nothing 201Dim capturedInside As IEnumerable(Of Symbol) = Nothing 202Dim capturedOutside As IEnumerable(Of Symbol) = Nothing 205readInside = Enumerable.Empty(Of Symbol)() 295Friend Function Normalize(data As IEnumerable(Of Symbol)) As ImmutableArray(Of ISymbol) 296Dim builder = ArrayBuilder(Of Symbol).GetInstance()
Analysis\ForLoopVerification.vb (1)
130Friend Shared Function ReferencedSymbol(expression As BoundExpression) 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\AttributeSemanticModel.vb (3)
27Dim owner As Symbol = GetAttributeTarget(containingSemanticModel, binder) 36Private Shared Function GetAttributeTarget(model As SyntaxTreeSemanticModel, binder As AttributeBinder) As Symbol 39Return DirectCast(model.GetDeclaredSymbolForNode(binder.Root.Parent.Parent), 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\BasesBeingResolvedBinder.vb (1)
29Public Overrides Function CheckAccessibility(sym As Symbol,
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_Attributes.vb (6)
26ownerSymbol As Symbol, 45ownerSymbol As Symbol, 58ownerSymbol As Symbol, 450Dim sym As Symbol = GetBestAttributeFieldOrProperty(result) 605Private Shared Function GetBestAttributeFieldOrProperty(result As LookupResult) As Symbol 611Dim bestSym As Symbol = Nothing
Binding\Binder_Constraints.vb (2)
14containingSymbol As Symbol, 42containingSymbol As Symbol,
Binding\Binder_Delegates.vb (5)
156ImmutableArray(Of Symbol).Empty, 185ImmutableArray(Of Symbol).Empty, 545Dim bestSymbols = ImmutableArray(Of Symbol).Empty 919container As Symbol, 941Private Shared Function GetDelegateOrEventKeywordText(sym As Symbol) As String
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_Initializers.vb (2)
137Dim additionalSymbols = If(initializer.FieldsOrProperties.Length > 1, initializer.FieldsOrProperties.RemoveAt(0), ImmutableArray(Of Symbol).Empty) 531ImmutableArray(Of Symbol).Empty,
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_Lambda.vb (1)
673Dim containingMember As Symbol = Me.ContainingMember
Binding\Binder_Lookup.vb (26)
117Friend Function CheckViability(sym As Symbol, 239Friend Function GetInaccessibleErrorInfo(sym As Symbol) As DiagnosticInfo 274''' Does not consider <see cref="Symbol.CanBeReferencedByName"/> - that is left to the caller. 276Friend Function CanAddLookupSymbolInfo(sym As Symbol, 555Private Shared ReadOnly s_ambiguousInModuleError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 556Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 750Dim allMembers = New HashSet(Of Symbol)(comparer) 751Dim conflictingMembers = New HashSet(Of Symbol)(comparer) 1123Private Shared Function GenerateAmbiguousDefaultPropertyDiagnostic(symbols As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 1372Return IsDerivedInterface(base, derived, basesBeingResolved, New HashSet(Of Symbol), useSiteInfo) 1379verified As HashSet(Of Symbol), 1553Dim symbols As ArrayBuilder(Of Symbol) = lookupResult.Symbols 1587Dim resultSymbols As ArrayBuilder(Of Symbol) = result.Symbols 1593Dim symbol As Symbol = resultSymbols(j) 1736Dim knownSymbols As ArrayBuilder(Of Symbol) = knownResult.Symbols 1737Dim newSymbols As ArrayBuilder(Of Symbol) = newResult.Symbols 1751Dim newSymbol As Symbol = newSymbols(j) 1804Dim otherKnown As Symbol = knownSymbols(k) 1825Private Shared Sub CompactAndAppend(first As ArrayBuilder(Of Symbol), second As ArrayBuilder(Of Symbol)) 1840Dim item As Symbol = first(j) 1856Dim items As Symbol = second(i) 1912For Each sym As Symbol In result.Symbols 2092Dim members As ImmutableArray(Of Symbol) = ImmutableArray(Of Symbol).Empty 2098members = ImmutableArray(Of Symbol).CastUp(container.GetTypeMembers(name))
Binding\Binder_ObjectInitializer.vb (8)
299ImmutableArray(Of Symbol).Empty, 388ImmutableArray(Of Symbol).Empty, 495ImmutableArray.Create(Of Symbol)(methodResult.Candidate.UnderlyingSymbol), 554Dim memberSymbol As Symbol = If( 555DirectCast(TryCast(assignmentOperator.Left, BoundPropertyAccess)?.PropertySymbol, Symbol), 562Dim requiredMember As Symbol = Nothing 897Function(y As Symbol) As Boolean 1002ImmutableArray(Of Symbol).Empty,
Binding\Binder_Query.vb (5)
2658Public Overrides ReadOnly Property ContainingMember As Symbol 2664Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 2666Return ImmutableArray(Of Symbol).Empty 4466methods As ArrayBuilder(Of Symbol), 4703Dim symbols = ArrayBuilder(Of Symbol).GetInstance()
Binding\Binder_Statements.vb (10)
437ImmutableArray(Of Symbol).Empty, 1821symbol As Symbol, 3610ImmutableArray(Of Symbol).Empty, 3801ImmutableArray(Of Symbol).Empty, 3854ImmutableArray(Of Symbol).Empty, 3873Dim member As Symbol 3874Dim specialTypeMember As Symbol 4236Private Shared ReadOnly s_isFunctionWithoutArguments As Func(Of Symbol, Boolean) = Function(sym) 4249Private Shared ReadOnly s_isReadablePropertyWithoutArguments As Func(Of Symbol, Boolean) = Function(sym) 4269symbolChecker As Func(Of Symbol, Boolean),
Binding\Binder_Symbols.vb (9)
50Optional suppressUseSiteError As Boolean = False) As Symbol 52Dim sym As Symbol = TypeBinder.BindTypeOrAliasSyntax(typeSyntax, Me, diagBag, suppressUseSiteError, 86Optional suppressUseSiteError As Boolean = False) As Symbol 186Friend Shared Function ReportUseSite(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, symbol As Symbol) As Boolean 243resolvingBaseType As Boolean) As Symbol 291Return Binder.GetErrorSymbol(GetBaseNamesForDiagnostic(typeSyntax), diagInfo, ImmutableArray.Create(Of Symbol)(sym), LookupResultKind.NotATypeOrNamespace) 480suppressUseSiteError As Boolean) As Symbol 489suppressUseSiteError As Boolean) As Symbol 716Dim currentSymbol As Symbol = lookupResult.SingleSymbol
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\Binder_XmlLiterals.vb (7)
1573Public Overrides ReadOnly Property ContainingSymbol As Symbol 1752Public Overrides ReadOnly Property AssociatedSymbol As Symbol 1770Public Overrides ReadOnly Property ContainingSymbol As Symbol 2007Public Shared Function MakeParameters(propertyOrAccessor As Symbol, originalParameters As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of ParameterSymbol) 2022Private ReadOnly _propertyOrAccessor As Symbol 2024Public Sub New(propertyOrAccessor As Symbol, underlyingParameter As ParameterSymbol) 2029Public Overrides ReadOnly Property ContainingSymbol As Symbol
Binding\BinderBuilder.vb (6)
271target As Symbol) As AttributeBinder 327Return New DeclarationInitializerBinder(parameterSymbol, ImmutableArray(Of Symbol).Empty, containingBinder, node) 340Return New DeclarationInitializerBinder(parameterSymbol, ImmutableArray(Of Symbol).Empty, containingBinder, node) 346Public Shared Function CreateBinderForDocumentationComment(containingBinder As Binder, commentedSymbol As Symbol, binderType As DocumentationCommentBinder.BinderType) As Binder 421fieldOrProperty As Symbol, 422additionalFieldsOrProperties As ImmutableArray(Of Symbol)) As Binder
Binding\BinderFactory.vb (8)
287Dim fieldOrProperty As Symbol = Nothing 288Dim additionalFieldsOrProperties = ImmutableArray(Of Symbol).Empty 309Dim builder = ArrayBuilder(Of Symbol).GetInstance 312Dim additionalFieldOrProperty As Symbol = containingNamedTypeBinder.ContainingType.FindFieldOrProperty(identifier.ValueText, identifier.Span, _tree) 359Return BuildInitializerBinder(containingNamedTypeBinder, field, ImmutableArray(Of Symbol).Empty) 522Dim symbol As Symbol = Nothing 664Private Function BuildInitializerBinder(containingBinder As Binder, fieldOrProperty As Symbol, additionalFieldsOrProperties As ImmutableArray(Of Symbol)) As Binder
Binding\BindingDiagnosticBag.vb (5)
90Friend Function ReportUseSite(symbol As Symbol, node As SyntaxNode) As Boolean 94Friend Function ReportUseSite(symbol As Symbol, token As SyntaxToken) As Boolean 98Friend Function ReportUseSite(symbol As Symbol, location As Location) As Boolean 106Friend Sub AddAssembliesUsedByCrefTarget(symbol As Symbol) 121Friend Overloads Sub AddDependencies(symbol As Symbol)
Binding\BlockBaseBinder.vb (1)
26Friend MustInherit Class BlockBaseBinder(Of T As Symbol)
Binding\ConstantFieldsInProgressBinder.vb (3)
34Public Overrides ReadOnly Property ContainingMember As Symbol 40Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 42Return ImmutableArray(Of Symbol).Empty
Binding\DeclarationInitializerBinder.vb (6)
21Private ReadOnly _symbol As Symbol 26Private ReadOnly _additionalSymbols As ImmutableArray(Of Symbol) 38Public Sub New(symbol As Symbol, additionalSymbols As ImmutableArray(Of Symbol), [next] As Binder, root As VisualBasicSyntaxNode) 54Public Overrides ReadOnly Property ContainingMember As Symbol 64Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol)
Binding\DefaultParametersInProgressBinder.vb (1)
34Friend MustInherit Class SymbolsInProgressBinder(Of T 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\DocumentationCommentParamBinder.vb (4)
20Public Sub New(containingBinder As Binder, commentedSymbol As Symbol) 53Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 55Return ImmutableArray(Of Symbol).Empty 60Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentTypeParamBinder.vb (4)
20Public Sub New(containingBinder As Binder, commentedSymbol As Symbol) 24Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 26Return ImmutableArray(Of Symbol).Empty 31Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentTypeParamRefBinder.vb (6)
20Public Sub New(containingBinder As Binder, commentedSymbol As Symbol) 24Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 25Dim result As ImmutableArray(Of Symbol) = MyBase.BindXmlNameAttributeValue(identifier, useSiteInfo) 44Dim symbol As Symbol = lookupResult.SingleSymbol 48Return ImmutableArray.Create(Of Symbol)(symbol) 51Return ImmutableArray(Of Symbol).Empty
Binding\EarlyWellKnownAttributeBinder.vb (5)
26Private ReadOnly _owner As Symbol 27Friend Sub New(owner As Symbol, containingBinder As Binder) 32Public Overrides ReadOnly Property ContainingMember As Symbol 38Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 40Return ImmutableArray(Of Symbol).Empty
Binding\IgnoreAccessibilityBinder.vb (1)
20Public Overrides Function CheckAccessibility(sym As Symbol, <[In]> <Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), Optional accessThroughType As TypeSymbol = Nothing, Optional basesBeingResolved As BasesBeingResolved = Nothing) As AccessCheckResult
Binding\ImplicitVariableBinder.vb (2)
48Private ReadOnly _containerOfLocals As Symbol 65Public Sub New(containingBinder As Binder, containerOfLocals As Symbol)
Binding\ImportAliasesBinder.vb (3)
81Public Overrides ReadOnly Property ContainingMember As Symbol 87Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 89Return ImmutableArray(Of Symbol).Empty
Binding\ImportedTypesAndNamespacesMembersBinder.vb (2)
165Friend Shared GenerateAmbiguityError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 166Function(ambiguousSymbols As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
Binding\InitializerSemanticModel.vb (1)
90Private Iterator Function GetInitializedFieldsOrProperties(binder As Binder) As IEnumerable(Of Symbol)
Binding\LocationSpecificBinder.vb (5)
27Private ReadOnly _owner As Symbol 33Public Sub New(location As BindingLocation, owner As Symbol, containingBinder As Binder) 45Public Overrides ReadOnly Property ContainingMember As Symbol 51Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 53Return ImmutableArray(Of Symbol).Empty
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)
Binding\MemberSemanticModel.vb (4)
820Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 884Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 891Return ImmutableArray(Of Symbol).Empty 1181Friend ReadOnly Property MemberSymbol As Symbol
Binding\NamedTypeBinder.vb (4)
151Public Overrides Function CheckAccessibility(sym As Symbol, 166Public Overrides ReadOnly Property ContainingMember As Symbol 172Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 174Return ImmutableArray(Of Symbol).Empty
Binding\NamespaceBinder.vb (3)
52Public Overrides ReadOnly Property ContainingMember As Symbol 58Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 60Return ImmutableArray(Of Symbol).Empty
Binding\SourceModuleBinder.vb (1)
32Public Overrides Function CheckAccessibility(sym As Symbol,
Binding\SubOrFunctionBodyBinder.vb (6)
19Protected ReadOnly _parameterMap As Dictionary(Of String, Symbol) 34_parameterMap = New Dictionary(Of String, Symbol)(mapSize, CaseInsensitiveComparison.Comparer) 47Public Overrides ReadOnly Property ContainingMember As Symbol 53Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 55Return ImmutableArray(Of Symbol).Empty 71Dim parameterSymbol As Symbol = Nothing
Binding\SymbolsInProgress.vb (1)
13Friend NotInheritable Class SymbolsInProgress(Of T As Symbol)
BoundTree\BoundAggregateClause.vb (1)
12Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundAnonymousTypeCreationExpression.vb (1)
13Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundAnonymousTypePropertyAccess.vb (1)
15Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundAttribute.vb (1)
12Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundBinaryOperator.vb (1)
39Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundCall.vb (1)
66Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundConversion.vb (1)
79Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundEventAccess.vb (1)
12Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundExpression.vb (1)
24Public Overridable ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundExpressionExtensions.vb (2)
558Public Sub GetExpressionSymbols(methodGroup As BoundMethodGroup, symbols As ArrayBuilder(Of Symbol)) 588Public Sub GetExpressionSymbols(node As BoundExpression, symbols As ArrayBuilder(Of Symbol))
BoundTree\BoundFieldAccess.vb (1)
18Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundLabel.vb (1)
12Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundLambda.vb (1)
29Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundLocal.vb (1)
21Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundNamespaceExpression.vb (2)
20Public Overrides ReadOnly Property ExpressionSymbol As Symbol 22Return If(DirectCast(Me.AliasOpt, Symbol), Me.NamespaceSymbol)
BoundTree\BoundObjectCreationExpression.vb (1)
23Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundOrdering.vb (1)
13Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundParameter.vb (1)
27Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundPropertyAccess.vb (1)
34Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundQueryableSource.vb (1)
18Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundQueryClause.vb (1)
12Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundQuerySource.vb (1)
18Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundRangeVariable.vb (1)
12Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundToQueryableCollectionConversion.vb (1)
16Public Overrides ReadOnly Property ExpressionSymbol As Symbol
BoundTree\BoundTypeExpression.vb (2)
17Public Overrides ReadOnly Property ExpressionSymbol As Symbol 19Return If(DirectCast(Me.AliasOpt, Symbol), Me.Type)
BoundTree\BoundUnaryOperator.vb (1)
32Public Overrides ReadOnly Property ExpressionSymbol As Symbol
CodeGen\Optimizer\Optimizer.vb (1)
21container As Symbol,
CodeGen\Optimizer\StackScheduler.Analyzer.vb (3)
43Private ReadOnly _container As Symbol 68Private Sub New(container As Symbol, 83container As Symbol,
CodeGen\Optimizer\StackScheduler.DummyLocal.vb (1)
15Public Sub New(container As Symbol)
CodeGen\Optimizer\StackScheduler.vb (1)
16container As Symbol,
CommandLine\VisualBasicCompiler.vb (1)
309Dim symbol 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\DocumentationComments\DocumentationCommentCompiler.Common.vb (9)
29Private Function ShouldSkipSymbol(symbol As Symbol) As Boolean 403symbolName As String, symbol As Symbol, tree As SyntaxTree) 420Dim bindResult As ImmutableArray(Of Symbol) = binder.BindXmlNameAttributeValue(nameAttribute.Reference, useSiteInfo) 445Private Sub ReportWarningsForParamOrTypeParamTags(Of TSymbol As Symbol)( 483Private Sub ReportWarningsForParamOrTypeParamTags(Of TSymbol As Symbol)( 528Private Function GetDocumentationCommentForSymbol(symbol As Symbol, 715Private Shared Function GetSymbolName(symbol As Symbol) As String 718Dim associatedSymbol As Symbol = DirectCast(symbol, FieldSymbol).AssociatedSymbol 759sym As Symbol,
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (7)
27Private ReadOnly _symbol As Symbol 43Private Sub New(symbol As Symbol, 84Public Sub New(symbol As Symbol) 153memberSymbol As Symbol, 625Dim bindResult As ImmutableArray(Of Symbol) = binder.BindInsideCrefAttributeValue(reference, preserveAliases:=False, 650Dim smallestSymbol As Symbol = Nothing 762Dim bindResult As ImmutableArray(Of Symbol) = binder.BindXmlNameAttributeValue(identifier, useSiteInfo)
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
112Friend Shared Function GetDocumentationCommentXml(symbol As Symbol,
Compilation\DocumentationComments\DocumentationCommentWalker.vb (6)
31Private ReadOnly _symbol As Symbol 38Private Sub New(symbol As Symbol, 95Private Sub WriteHeaderAndVisit(symbol As Symbol, trivia As DocumentationCommentTriviaSyntax) 109Friend Shared Function GetSubstitutedText(symbol As Symbol, 153Dim result As ImmutableArray(Of Symbol) = crefBinder.BindInsideCrefAttributeValue(reference, preserveAliases:=False, diagnosticBag:=diagnostics, useSiteInfo:=useSiteInfo) 185Dim smallestSymbol As Symbol = Nothing
Compilation\LexicalOrderSymbolComparer.vb (4)
15Implements IComparer(Of Symbol) 22Public Function Compare(x As Symbol, y As Symbol) As Integer Implements IComparer(Of Symbol).Compare
Compilation\LookupSymbolsInfo.vb (1)
10Inherits AbstractLookupSymbolsInfo(Of Symbol)
Compilation\MethodCompiler.vb (14)
32Private ReadOnly _filterOpt As Predicate(Of Symbol) ' If not Nothing, limit analysis to specific symbols 91filter As Predicate(Of Symbol), 122Private Shared Function IsDefinedOrImplementedInSourceTree(symbol As Symbol, tree As SyntaxTree, span As TextSpan?) As Boolean 166Dim filter As Predicate(Of Symbol) = Nothing 219filter As Predicate(Of Symbol), 354Dim processedSymbols As New ConcurrentSet(Of Symbol)(ReferenceEqualityComparer.Instance) 358Dim builder = ArrayBuilder(Of Symbol).GetInstance 384Dim symbol As Symbol = builder(index) 536Private Function CompileNamedTypeAsync(symbol As NamedTypeSymbol, filter As Predicate(Of Symbol)) As Task 549Private Sub CompileNamedType(containingType As NamedTypeSymbol, filter As Predicate(Of Symbol)) 863For Each member As Symbol In sourceTypeSymbol.GetMembers("InitializeComponent") 1216filter As Predicate(Of Symbol), 2148Private Shared Function PassesFilter(filterOpt As Predicate(Of Symbol), symbol As Symbol) As Boolean
Compilation\MethodResolutionResult.vb (1)
40Friend Structure MemberResolutionResult(Of TMember As Symbol)
Compilation\OverloadResolutionResult.vb (1)
21Friend Class OverloadResolutionResult(Of TMember As Symbol)
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\SpeculativeSemanticModelWithMemberModel.vb (2)
225Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 241Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (1)
105Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
Compilation\SymbolInfo.vb (1)
13Friend Shared Function Create(symbols As ImmutableArray(Of Symbol), resultKind As LookupResultKind) As SymbolInfo
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)
Compilation\VisualBasicCompilation.vb (6)
1316Friend Shadows Function GetAssemblyOrModuleSymbol(reference As MetadataReference) As Symbol 1810Friend Function ShouldAddEvent(symbol As Symbol) As Boolean 1814Friend Sub SymbolDeclaredEvent(symbol As Symbol) 1965Friend Shadows Function GetSpecialTypeMember(memberId As SpecialMember) As Symbol 2019Dim symbol0 = symbol.EnsureVbSymbolOrNothing(Of Symbol)(NameOf(symbol)) 2020Dim within0 = within.EnsureVbSymbolOrNothing(Of Symbol)(NameOf(within))
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
108Dim containingSymbol As Symbol = symbol.ContainingSymbol
DocumentationComments\DocumentationCommentIDVisitor.vb (2)
17Public Overrides Function DefaultVisit(symbol As Symbol, builder As StringBuilder) As Object 57Private Shared Function VisitSymbolUsingPrefix(symbol As Symbol, builder As StringBuilder, prefix As String) As Object
DocumentationComments\PEDocumenationCommentUtils.vb (1)
16symbol As Symbol,
DocumentationComments\SourceDocumentationCommentUtils.vb (2)
11symbol As Symbol, 35Friend Function GetDocumentationCommentForSymbol(symbol As Symbol,
Emit\ArrayTypeSymbolAdapter.vb (1)
176Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\AttributeDataAdapter.vb (1)
133Private Function LookupName(name As String) As Symbol
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (1)
65Return TryCast(symbol, Symbol)
Emit\EditAndContinue\VisualBasicSymbolChanges.vb (1)
18Return TryCast(symbol, Symbol)
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)
Emit\EventSymbolAdapter.vb (1)
175Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\FieldSymbolAdapter.vb (1)
307Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\MethodReference.vb (1)
22Protected Overrides ReadOnly Property UnderlyingSymbol As Symbol
Emit\MethodSymbolAdapter.vb (1)
589Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\NamedTypeSymbolAdapter.vb (2)
974Friend Overridable Function GetMembersForCci() As ImmutableArray(Of Symbol) 1012Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\NamespaceSymbolAdapter.vb (1)
69Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\NoPia\EmbeddedTypesManager.vb (3)
31Private ReadOnly _reportedSymbolsMap As New ConcurrentDictionary(Of Symbol, Boolean)(ReferenceEqualityComparer.Instance) 223For Each member As Symbol In type.GetMembersUnordered() 277Private Shared Sub ReportNotEmbeddableSymbol(id As ERRID, symbol As Symbol, syntaxNodeOpt As SyntaxNode, diagnostics As DiagnosticBag, typeManagerOpt As EmbeddedTypesManager)
Emit\ParameterSymbolAdapter.vb (1)
220Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\PEModuleBuilder.vb (3)
272Private Sub AddSymbolLocation(result As MultiDictionary(Of Cci.DebugSourceDocument, Cci.DefinitionWithLocation), symbol As Symbol) 294Private Function GetSmallestSourceLocationOrNull(symbol As Symbol) As Location 374Dim members As ImmutableArray(Of Symbol) = sym.GetMembers()
Emit\PropertySymbolAdapter.vb (1)
232Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Emit\SourceAssemblySymbolAdapter.vb (1)
22Symbol.AddSynthesizedAttribute(synthesized, referenceAssemblyAttribute)
Emit\SpecializedFieldReference.vb (1)
30Protected Overrides ReadOnly Property UnderlyingSymbol As Symbol
Emit\SymbolAdapter.vb (1)
149Friend MustOverride ReadOnly Property AdaptedSymbol As Symbol
Emit\SymbolTranslator.vb (7)
18Protected ReadOnly m_AssemblyOrModuleSymbolToModuleRefMap As New ConcurrentDictionary(Of Symbol, Microsoft.Cci.IModuleReference)() 19Private ReadOnly _genericInstanceMap As New ConcurrentDictionary(Of Symbol, Object)() 31Private _addedEmbeddedSymbols As ConcurrentSet(Of Symbol) = Nothing 34Private Sub ProcessReferencedSymbol(symbol As Symbol) 43Interlocked.CompareExchange(_addedEmbeddedSymbols, New ConcurrentSet(Of Symbol)(ReferenceEqualityComparer.Instance), Nothing) 207Private Function GetCciAdapter(symbol As Symbol) As Object 460Private Shared Function ContainerIsGeneric(container As Symbol) As Boolean
Emit\SynthesizedNamespaceSymbol.vb (5)
32Public Overrides ReadOnly Property ContainingSymbol As Symbol 78Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 79Return ImmutableArray(Of Symbol).Empty 82Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 83Return ImmutableArray(Of Symbol).Empty
Emit\TypeMemberReference.vb (1)
12Protected MustOverride ReadOnly Property UnderlyingSymbol As Symbol
Emit\TypeParameterSymbolAdapter.vb (2)
309Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 322Friend Overrides ReadOnly Property AdaptedSymbol As Symbol
Errors\CustomDiagnostics.vb (10)
14Sub GetAssociatedSymbols(builder As ArrayBuilder(Of Symbol)) 27Private ReadOnly _badSymbol As Symbol 31Friend Sub New(badSymbol As Symbol, errid As ERRID) 37Friend Sub New(badSymbol As Symbol, errid As ERRID, ParamArray additionalArgs As Object()) 42Public ReadOnly Property BadSymbol As Symbol 48Private Sub GetAssociatedSymbols(builder As ArrayBuilder(Of Symbol)) Implements IDiagnosticInfoWithSymbols.GetAssociatedSymbols 73Private ReadOnly _symbols As ImmutableArray(Of Symbol) 76Friend Sub New(errid As ERRID, symbols As ImmutableArray(Of Symbol), ParamArray args As Object()) 81Public ReadOnly Property AmbiguousSymbols As ImmutableArray(Of Symbol) 87Private Sub GetAssociatedSymbols(builder As ArrayBuilder(Of Symbol)) Implements IDiagnosticInfoWithSymbols.GetAssociatedSymbols
Errors\LazyObsoleteDiagnosticInfo.vb (4)
15Private ReadOnly _symbol As Symbol 16Private ReadOnly _containingSymbol As Symbol 18Friend Sub New(sym As Symbol, containingSymbol As Symbol)
Generated\BoundNodes.xml.Generated.vb (4)
586Public Sub New(syntax As SyntaxNode, resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 610Private ReadOnly _Symbols As ImmutableArray(Of Symbol) 611Public ReadOnly Property Symbols As ImmutableArray(Of Symbol) 629Public Function Update(resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundBadExpression
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (2)
68hoistedVariables As IReadOnlySet(Of Symbol), 69nonReusableLocalProxies As Dictionary(Of Symbol, CapturedSymbolOrExpression),
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
277Dim symbolsCapturedWithoutCtor As ISet(Of Symbol) = Nothing
Lowering\Diagnostics\DiagnosticsPass.vb (1)
70Dim parameterSymbolContainingSymbol As Symbol = parameterSymbol.ContainingSymbol
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
599Dim leftSymbol As Symbol = Nothing
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (3)
254Dim helper As Symbol 257helper = _factory.WellKnownMember(Of Symbol)(WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharArrayRankOneString) 260helper = _factory.WellKnownMember(Of Symbol)(WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharArrayRankOneObject)
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (2)
31hoistedVariables As IReadOnlySet(Of Symbol), 32localProxies As Dictionary(Of Symbol, FieldSymbol),
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (5)
27Friend Sub New(frame As LambdaFrame, captured As Symbol, type As TypeSymbol, fieldName As String, isMeParameter As Boolean) 39Public Shared Function Create(frame As LambdaFrame, captured As Symbol, ByRef uniqueId As Integer) As LambdaCapturedVariable 48Public Shared Function GetCapturedVariableFieldName(captured As Symbol, ByRef uniqueId As Integer) As String 75Public Shared Function GetCapturedVariableFieldType(frame As LambdaFrame, captured As Symbol) As TypeSymbol 99Public Shared Function IsMe(captured As Symbol) As Boolean
Lowering\LambdaRewriter\LambdaFrame.vb (7)
38Private Shared ReadOnly s_typeSubstitutionFactory As Func(Of Symbol, TypeSubstitution) = 44Friend Shared ReadOnly CreateTypeParameter As Func(Of TypeParameterSymbol, Symbol, TypeParameterSymbol) = 136Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 137Return ImmutableArray(Of Symbol).Empty 140Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 141Dim members = StaticCast(Of Symbol).From(CapturedLocals.AsImmutable()) 143members = members.AddRange(ImmutableArray.Create(Of Symbol)(_constructor, _sharedConstructor, _singletonCache))
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\LambdaRewriter\LambdaRewriter.vb (8)
70Private ReadOnly _framePointers As Dictionary(Of NamedTypeSymbol, Symbol) = New Dictionary(Of NamedTypeSymbol, Symbol)() 89Private _innermostFramePointer As Symbol 169symbolsCapturedWithoutCopyCtor As ISet(Of Symbol), 261captured As Symbol, 400Dim result As Symbol = _framePointers(frameClass) 609Dim oldInnermostFramePointer As Symbol = _innermostFramePointer 635originalSymbol As Symbol,
Lowering\LambdaRewriter\SynthesizedLambdaCacheFieldSymbol.vb (1)
21implicitlyDefinedBy As Symbol,
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_AddRemoveHandler.vb (2)
147ImmutableArray.Create(Of Symbol)(eventSymbol), 305ImmutableArray.Create(Of Symbol)([event]),
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
189Private Shared Sub AssertIsWriteableFromMember(node As BoundPropertyAccess, fromMember As Symbol)
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
49Dim useField As Symbol = Nothing
Lowering\LocalRewriter\LocalRewriter_FieldAccess.vb (1)
75ImmutableArray.Create(Of Symbol)(tupleField),
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (3)
18Return VisitFieldOrPropertyInitializer(node, ImmutableArray(Of Symbol).CastUp(node.InitializedFields)) 22Return VisitFieldOrPropertyInitializer(node, ImmutableArray(Of Symbol).CastUp(node.InitializedProperties)) 37Private Function VisitFieldOrPropertyInitializer(node As BoundFieldOrPropertyInitializer, initializedSymbols As ImmutableArray(Of Symbol)) As BoundNode
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (3)
116Me._symbolsCapturedWithoutCopyCtor = New HashSet(Of Symbol)() 301boundCurrent = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 717Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty,
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (2)
448rewrittenInitCondition = New BoundBadExpression(rewrittenLimit.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 503rewrittenLoopCondition = New BoundBadExpression(rewrittenLimit.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty,
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (2)
962Private Function TryGetWellknownMember(Of T As Symbol)(<Out> ByRef result As T, 987Private Function TryGetSpecialMember(Of T As Symbol)(<Out> ByRef result As T,
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_RaiseEvent.vb (1)
165Return New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(rewrittenReceiver), ErrorTypeSymbol.UnknownResultType, 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\LocalRewriter\LocalRewriter_TupleLiteralExpression.vb (2)
56ImmutableArray(Of Symbol).Empty, 78ImmutableArray(Of Symbol).Empty,
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
24Protected ReadOnly Proxies As Dictionary(Of Symbol, TProxy) = New Dictionary(Of Symbol, TProxy)()
Lowering\Rewriter.vb (2)
43Dim symbolsCapturedWithoutCopyCtor As ISet(Of Symbol) = Nothing 102If(symbolsCapturedWithoutCopyCtor, SpecializedCollections.EmptySet(Of Symbol)),
Lowering\StateMachineRewriter\StateMachineFieldSymbol.vb (3)
24implicitlyDefinedBy As Symbol, 43implicitlyDefinedBy As Symbol, 64implicitlyDefinedBy As Symbol,
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (4)
70Private ReadOnly _hoistedVariables As IReadOnlySet(Of Symbol) = Nothing 79hoistedVariables As IReadOnlySet(Of Symbol), 80initialProxies As Dictionary(Of Symbol, TProxy), 314Private Function NeedsProxy(localOrParameter As Symbol) As Boolean
Lowering\StateMachineRewriter\StateMachineRewriter.vb (10)
34Protected nonReusableLocalProxies As Dictionary(Of Symbol, TProxy) 36Protected hoistedVariables As IReadOnlySet(Of Symbol) 37Protected InitialParameters As Dictionary(Of Symbol, TProxy) 61Me.nonReusableLocalProxies = New Dictionary(Of Symbol, TProxy)() 106Me.InitialParameters = New Dictionary(Of Symbol, TProxy)() 114Me.hoistedVariables = New OrderedSet(Of Symbol)(variablesToHoist.CapturedLocals) 378Friend Function EnsureSpecialType(type As SpecialType, bag As BindingDiagnosticBag) As Symbol 382Friend Function EnsureWellKnownType(type As WellKnownType, bag As BindingDiagnosticBag) As Symbol 386Friend Function EnsureSpecialMember(member As SpecialMember, bag As BindingDiagnosticBag) As Symbol 390Friend Function EnsureWellKnownMember(member As WellKnownMember, bag As BindingDiagnosticBag) As Symbol
Lowering\StateMachineRewriter\SynthesizedContainer.vb (8)
29Private Shared ReadOnly s_typeSubstitutionFactory As Func(Of Symbol, TypeSubstitution) = 32Private Shared ReadOnly s_createTypeParameter As Func(Of TypeParameterSymbol, Symbol, TypeParameterSymbol) = 218Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 220Return ImmutableArray.Create(Of Symbol)(Me.Constructor) 223Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 225ImmutableArray.Create(Of Symbol)(Me.Constructor), ImmutableArray(Of Symbol).Empty) 238Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (1)
145Public Overrides ReadOnly Property AssociatedSymbol As Symbol
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
70Public Overrides ReadOnly Property ContainingSymbol As Symbol
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),
Lowering\WithExpressionRewriter.vb (3)
46Public ReadOnly ContainingMember As Symbol 56Public Sub New(containingMember As Symbol, doNotUseByRefLocal As Boolean, binder As Binder, preserveIdentityOfLValues As Boolean, isDraftRewrite As Boolean) 269containingMember As Symbol,
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,
Semantics\Operators.vb (1)
3297Public Overrides ReadOnly Property ContainingSymbol As Symbol
Semantics\OverloadResolution.vb (12)
33Public MustOverride ReadOnly Property UnderlyingSymbol As Symbol 140Friend MustOverride Function IsOverriddenBy(otherSymbol As Symbol) As Boolean 207Public Overrides ReadOnly Property UnderlyingSymbol As Symbol 213Friend Overrides Function IsOverriddenBy(otherSymbol As Symbol) As Boolean 300Friend Overrides Function IsOverriddenBy(otherSymbol As Symbol) As Boolean 424Public Overrides ReadOnly Property UnderlyingSymbol As Symbol 430Friend Overrides Function IsOverriddenBy(otherSymbol As Symbol) As Boolean 3533Dim container As Symbol = info.Candidate.UnderlyingSymbol.ContainingSymbol 3582Dim firstSymbol As Symbol = info.Candidate.UnderlyingSymbol.OriginalDefinition 3597Dim secondSymbol As Symbol = info2.Candidate.UnderlyingSymbol.OriginalDefinition 4125Dim existingSymbol As Symbol = existingCandidate.Candidate.UnderlyingSymbol 4126Dim newSymbol As Symbol = newCandidate.Candidate.UnderlyingSymbol
Semantics\SemanticFacts.vb (2)
39Public Shared Function IsSymbolAccessible(symbol As Symbol, 60Public Shared Function IsSymbolAccessible(symbol As Symbol,
SymbolDisplay\CustomSymbolDisplayFormatter.vb (8)
100Public Shared Function QualifiedName(symbol As Symbol) As FormattedSymbol 104Public Shared Function WithContainingType(symbol As Symbol) As FormattedSymbol 108Public Shared Function ErrorNameWithKind(symbol As Symbol) As FormattedSymbol 112Public Shared Function ShortErrorName(symbol As Symbol) As FormattedSymbol 116Public Shared Function DelegateSignature(symbol As Symbol) As FormattedSymbol 120Public Shared Function ShortNameWithTypeArgs(symbol As Symbol) As FormattedSymbol 124Public Shared Function ShortNameWithTypeArgsAndContainingTypes(symbol As Symbol) As FormattedSymbol 128Public Shared Function DefaultErrorFormat(symbol As Symbol) As FormattedSymbol
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
681Dim vbSymbol = TryCast(symbol, Symbol)
Symbols\AliasSymbol.vb (3)
59Private ReadOnly _aliasContainer As Symbol 62aliasContainer As Symbol, 223Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (2)
64Private Shared Sub ReportErrorOnSymbol(symbol As Symbol, diagnostics As BindingDiagnosticBag, ByRef hasError As Boolean) 73Private Shared Sub ReportErrorOnSpecialMember(symbol As Symbol, member As SpecialMember, diagnostics As BindingDiagnosticBag, ByRef hasError As Boolean, embedVBCore As Boolean)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (2)
137Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 138Return StaticCast(Of Symbol).From(_members)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
65Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (5)
22Private ReadOnly _members As ImmutableArray(Of Symbol) 30Dim methodMembersBuilder = ArrayBuilder(Of Symbol).GetInstance() 31Dim otherMembersBuilder = ArrayBuilder(Of Symbol).GetInstance() 78Dim method As Symbol = DirectCast(equatableInterface, SubstitutedNamedType).GetMemberForDefinition(Me.Manager.System_IEquatable_T_Equals) 174Public Overrides Function GetMembers() As ImmutableArray(Of Symbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (3)
127Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 129Return ImmutableArray.CreateRange(Of Symbol)(From member In GetMembers() Where CaseInsensitiveComparison.Equals(member.Name, name)) 139Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (2)
131Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 132Return StaticCast(Of Symbol).From(_members)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (1)
131Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (5)
21Private ReadOnly _members As ImmutableArray(Of Symbol) 31Dim methodMembersBuilder = ArrayBuilder(Of Symbol).GetInstance() 32Dim otherMembersBuilder = ArrayBuilder(Of Symbol).GetInstance() 81Dim method As Symbol = DirectCast(equatableInterface, SubstitutedNamedType).GetMemberForDefinition(Me.Manager.System_IEquatable_T_Equals) 114Public Overrides Function GetMembers() As ImmutableArray(Of Symbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (2)
226Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 238Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
33Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\ArrayTypeSymbol.vb (6)
200Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 201Return ImmutableArray(Of Symbol).Empty 209Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 210Return ImmutableArray(Of Symbol).Empty 266Public Overrides ReadOnly Property ContainingSymbol As Symbol 388Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\AssemblySymbol.vb (1)
235Public NotOverridable Overrides ReadOnly Property ContainingSymbol 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\BaseTypeAnalysis.vb (2)
98New HashSet(Of Symbol), 190Private Function GetDependenceChain(visited As HashSet(Of Symbol),
Symbols\ConstraintsHelper.vb (3)
614constructedSymbol As Symbol, 644constructedSymbol As Symbol, 1010constructedSymbol As Symbol,
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (14)
19Friend ReadOnly IsReferencedPredicate As Func(Of Symbol, Boolean) = Function(t) Not t.IsEmbedded OrElse Me.IsSymbolReferenced(t) 24Private ReadOnly _symbols As ConcurrentDictionary(Of Symbol, Boolean) 45_symbols = New ConcurrentDictionary(Of Symbol, Boolean)(ReferenceEqualityComparer.Instance) 115Friend Sub GetCurrentReferencedSymbolsSnapshot(builder As ArrayBuilder(Of Symbol), filter As ConcurrentSet(Of Symbol)) 134Public Sub MarkSymbolAsReferenced(symbol As Symbol, allSymbols As ConcurrentSet(Of Symbol)) 147Public Sub MarkSymbolAsReferenced(symbol As Symbol) 148MarkSymbolAsReferenced(symbol, New ConcurrentSet(Of Symbol)(ReferenceEqualityComparer.Instance)) 154Public Function IsSymbolReferenced(symbol As Symbol) As Boolean 202Private Sub AddReferencedSymbolWithDependents(symbol As Symbol, allSymbols As ConcurrentSet(Of Symbol)) 306Private Sub AddReferencedSymbolRaw(symbol As Symbol, allSymbols As ConcurrentSet(Of Symbol))
Symbols\EmbeddedSymbols\Symbols\EmbeddedNamedTypeSymbol.vb (2)
53Friend Overrides Function GetMembersForCci() As ImmutableArray(Of Symbol) 54Dim builder = ArrayBuilder(Of Symbol).GetInstance()
Symbols\ErrorMethodSymbol.vb (2)
30Public Overrides ReadOnly Property AssociatedSymbol As Symbol 42Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\ErrorTypeSymbol.vb (8)
40Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 79Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 80Return ImmutableArray(Of Symbol).Empty 83Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 84Return ImmutableArray(Of Symbol).Empty 121Public Overrides ReadOnly Property ContainingSymbol As Symbol 373Public Overridable ReadOnly Property CandidateSymbols As ImmutableArray(Of Symbol) 375Return ImmutableArray(Of Symbol).Empty
Symbols\EventSymbol.vb (1)
46Protected NotOverridable Overrides ReadOnly Property OriginalSymbolDefinition As Symbol
Symbols\ExtendedErrorTypeSymbol.vb (7)
24Private ReadOnly _candidateSymbols As ImmutableArray(Of Symbol) 46candidateSymbols As ImmutableArray(Of Symbol), 59_candidateSymbols = StaticCast(Of Symbol).From(DirectCast(candidateSymbols(0), NamespaceSymbol).ConstituentNamespaces) 84_candidateSymbols = ImmutableArray.Create(Of Symbol)(nonErrorGuessType) 87_candidateSymbols = ImmutableArray(Of Symbol).Empty 99Public Overrides ReadOnly Property ContainingSymbol As Symbol 105Public Overrides ReadOnly Property CandidateSymbols As ImmutableArray(Of Symbol)
Symbols\FieldOrPropertyInitializer.vb (4)
18Public ReadOnly FieldsOrProperties As ImmutableArray(Of Symbol) 59Me.FieldsOrProperties = ImmutableArray.Create(Of Symbol)(field) 68Public Sub New(fieldsOrProperties As ImmutableArray(Of Symbol), syntax As SyntaxReference, precedingInitializersLength As Integer) 87Me.FieldsOrProperties = ImmutableArray.Create(Of Symbol)([property])
Symbols\FieldSymbol.vb (2)
44Protected NotOverridable Overrides ReadOnly Property OriginalSymbolDefinition As Symbol 82Public MustOverride ReadOnly Property AssociatedSymbol As Symbol
Symbols\IndexedTypeParameterSymbol.vb (1)
149Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\InstanceErrorTypeSymbol.vb (2)
81Dim container As Symbol = ContainingSymbol 218Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\InstanceTypeSymbol.vb (1)
197Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\LabelSymbol.vb (1)
84Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\MemberSignatureComparer.vb (7)
15Implements IEqualityComparer(Of Symbol) 44Public Overloads Function Equals(sym1 As Symbol, sym2 As Symbol) As Boolean _ 45Implements IEqualityComparer(Of Symbol).Equals 68Public Overloads Function GetHashCode(sym As Symbol) As Integer _ 69Implements IEqualityComparer(Of Symbol).GetHashCode 85Private Sub CheckSymbolKind(sym As Symbol)
Symbols\MergedNamespaceSymbol.vb (10)
38Private ReadOnly _cachedLookup As CachingDictionary(Of String, Symbol) 44Private _lazyMembers As ImmutableArray(Of Symbol) 187Me._cachedLookup = New CachingDictionary(Of String, Symbol)(AddressOf SlowGetChildrenOfName, AddressOf SlowGetChildNames, IdentifierComparison.Comparer) 209Private Function SlowGetChildrenOfName(name As String) As ImmutableArray(Of Symbol) 211Dim otherSymbols = ArrayBuilder(Of Symbol).GetInstance() 215For Each childSym As Symbol In nsSym.GetMembers(name) 297Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 299Dim builder = ArrayBuilder(Of Symbol).GetInstance() 307Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 325Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
98Friend Function FindMember(memberRefOrMethodDef As EntityHandle, methodsOnly As Boolean) As Symbol
Symbols\Metadata\PE\MetadataDecoder.vb (2)
19Inherits MetadataDecoder(Of PEModuleSymbol, TypeSymbol, MethodSymbol, FieldSymbol, Symbol) 459Friend Overrides Function GetSymbolForMemberRef(memberRef As MemberReferenceHandle, Optional scope As TypeSymbol = Nothing, Optional methodsOnly As Boolean = False) As Symbol
Symbols\Metadata\PE\PEEventSymbol.vb (1)
117Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PEFieldSymbol.vb (2)
90Public Overrides ReadOnly Property AssociatedSymbol As Symbol 96Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.vb (1)
27Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PEMethodSymbol.vb (4)
35Private _associatedPropertyOrEventOpt As Symbol 290Public Overrides ReadOnly Property ContainingSymbol As Symbol 588Public Overrides ReadOnly Property AssociatedSymbol As Symbol 988Private Function SetAssociatedPropertyOrEvent(propertyOrEventSymbol As Symbol, methodKind As MethodKind) As Boolean
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
135Public Overrides ReadOnly Property ContainingSymbol As Symbol
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\Metadata\PE\PENamespaceSymbol.vb (11)
27Protected m_lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol)) 48Private _lazyFlattenedNamespacesAndTypes As ImmutableArray(Of Symbol) 76Public NotOverridable Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 91Public NotOverridable Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 94Dim m As ImmutableArray(Of Symbol) = Nothing 100Return ImmutableArray(Of Symbol).Empty 201Dim members As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer) 206members.Add(ns.Name, ImmutableArray.Create(Of Symbol)(ns)) 213Dim symbols As ImmutableArray(Of Symbol) = Nothing 216members.Add(name, StaticCast(Of Symbol).From(typeSymbols)) 218members(name) = symbols.Concat(StaticCast(Of Symbol).From(typeSymbols))
Symbols\Metadata\PE\PENestedNamespaceSymbol.vb (1)
84Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PEParameterSymbol.vb (8)
24Private ReadOnly _containingSymbol As Symbol 78containingSymbol As Symbol, 100containingSymbol As Symbol, 135containingSymbol As Symbol, 154containingSymbol As Symbol, 211containingSymbol As Symbol, 234containingSymbol As Symbol, 312Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (1)
26Private Shared Function GetSymbolsForExplicitlyImplementedAccessor(Of T As Symbol)(accessor As MethodSymbol) As ISet(Of T)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
141Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PETypeParameterSymbol.vb (5)
26Private ReadOnly _containingSymbol As Symbol ' Could be PENamedType or a PEMethod 54Me.New(moduleSymbol, DirectCast(definingNamedType, Symbol), ordinal, handle) 63Me.New(moduleSymbol, DirectCast(definingMethod, Symbol), ordinal, handle) 68definingSymbol As Symbol, 131Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Metadata\PE\PEUtilities.vb (1)
8Friend Function DeriveCompilerFeatureRequiredAttributeDiagnostic(symbol As Symbol, [module] As PEModuleSymbol, handle As System.Reflection.Metadata.EntityHandle, allowedFeatures As CompilerFeatureRequiredFeatures, decoder As MetadataDecoder) As DiagnosticInfo
Symbols\MethodSymbol.vb (4)
89Protected NotOverridable Overrides ReadOnly Property OriginalSymbolDefinition As Symbol 300Public MustOverride ReadOnly Property AssociatedSymbol As Symbol 452Friend Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\MissingAssemblySymbol.vb (1)
47Friend Overrides Function GetDeclaredSpecialTypeMember(member As SpecialMember) As Symbol
Symbols\MissingMetadataTypeSymbol.vb (2)
138Public Overrides ReadOnly Property ContainingSymbol As Symbol 285Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\MissingModuleSymbol.vb (1)
68Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\MissingNamespaceSymbol.vb (6)
26Private ReadOnly _containingSymbol As Symbol 49Public Overrides ReadOnly Property ContainingSymbol As Symbol 117Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 118Return ImmutableArray(Of Symbol).Empty 121Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 122Return ImmutableArray(Of Symbol).Empty
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\NamedTypeSymbolExtensions.vb (2)
24Friend Function FindMember(container As NamedTypeSymbol, symbolName As String, kind As SymbolKind, nameSpan As TextSpan, tree As SyntaxTree) As Symbol 55Friend Function FindFieldOrProperty(container As NamedTypeSymbol, symbolName As String, nameSpan As TextSpan, tree As SyntaxTree) As Symbol
Symbols\NamespaceOrTypeSymbol.vb (6)
51Public MustOverride Function GetMembers() As ImmutableArray(Of Symbol) 59Friend Overridable Function GetMembersUnordered() As ImmutableArray(Of Symbol) 75Public MustOverride Function GetMembers(name As String) As ImmutableArray(Of Symbol) 192membersByName As IEnumerable(Of KeyValuePair(Of String, ImmutableArray(Of Symbol))) 196For Each pair As KeyValuePair(Of String, ImmutableArray(Of Symbol)) In membersByName 202For Each member As Symbol In pair.Value
Symbols\NamespaceSymbol.vb (4)
490membersByName As IEnumerable(Of KeyValuePair(Of String, ImmutableArray(Of Symbol))) 494For Each pair As KeyValuePair(Of String, ImmutableArray(Of Symbol)) In membersByName 497For Each member As Symbol In pair.Value 518Friend Sub AddMemberIfExtension(bucket As ArrayBuilder(Of MethodSymbol), member As Symbol)
Symbols\ObsoleteAttributeHelpers.vb (7)
49Private Shared Function GetObsoleteContextState(symbol As Symbol, forceComplete As Boolean, getStateFromSymbol As Func(Of Symbol, ThreeState)) As ThreeState 71Friend Shared Function GetObsoleteDiagnosticKind(context As Symbol, symbol As Symbol, Optional forceComplete As Boolean = False) As ObsoleteDiagnosticKind 108Private Shared Function GetDiagnosticKind(containingMember As Symbol, forceComplete As Boolean, getStateFromSymbol As Func(Of Symbol, ThreeState)) As ObsoleteDiagnosticKind 128Friend Shared Function CreateObsoleteDiagnostic(symbol As Symbol) As DiagnosticInfo
Symbols\OverriddenMembersResult.vb (1)
19Friend NotInheritable Class OverriddenMembersResult(Of TSymbol As Symbol)
Symbols\ParameterSymbol.vb (2)
35Protected NotOverridable Overrides ReadOnly Property OriginalSymbolDefinition As Symbol 255Friend Overridable Function ChangeOwner(newContainingSymbol As Symbol) As ParameterSymbol
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (5)
35Private _lazyExtensionMethodsMap As Dictionary(Of String, ImmutableArray(Of Symbol)) 40Private Shared ReadOnly s_emptyDictionary As New Dictionary(Of String, ImmutableArray(Of Symbol))() 89Dim match As ImmutableArray(Of Symbol) = Nothing 147Dim extensionMethods As New Dictionary(Of String, ImmutableArray(Of Symbol))(map.Count, CaseInsensitiveComparison.Comparer) 150extensionMethods.Add(pair.Key, StaticCast(Of Symbol).From(pair.Value.ToImmutableAndFree()))
Symbols\PreprocessingSymbol.vb (1)
46Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\PropertySymbol.vb (2)
39Protected NotOverridable Overrides ReadOnly Property OriginalSymbolDefinition As Symbol 171Dim containingMember As Symbol = containingBinder.ContainingMember
Symbols\ReducedExtensionMethodSymbol.vb (5)
341Public Overrides ReadOnly Property ContainingSymbol As Symbol 541Public Overrides ReadOnly Property AssociatedSymbol As Symbol 738Public Overrides ReadOnly Property ContainingSymbol As Symbol 847Public Overrides ReadOnly Property ContainingSymbol As Symbol 887Public MustOverride Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
67Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingFieldSymbol.vb (3)
94Public Overrides ReadOnly Property ContainingSymbol As Symbol 180Public Overrides ReadOnly Property AssociatedSymbol As Symbol 182Dim associated As Symbol = _underlyingField.AssociatedSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (2)
219Public Overrides ReadOnly Property AssociatedSymbol As Symbol 250Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
120Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (4)
289Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 293Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 297Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 425Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (7)
67Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 71Private Function RetargetMembers(underlyingMembers As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 72Dim builder = ArrayBuilder(Of Symbol).GetInstance() 83Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 87Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 120Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
198Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
83Public Overrides ReadOnly Property ContainingSymbol As 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\Retargeting\RetargetingTypeParameterSymbol.vb (1)
119Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SignatureOnlyMethodSymbol.vb (2)
118Public Overrides ReadOnly Property ContainingSymbol() As Symbol 186Public Overrides ReadOnly Property AssociatedSymbol() As Symbol
Symbols\SignatureOnlyParameterSymbol.vb (1)
137Public Overrides ReadOnly Property ContainingSymbol() As Symbol
Symbols\SignatureOnlyPropertySymbol.vb (1)
63Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\BoundLambdaParameterSymbol.vb (1)
41Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\CrefTypeParameterSymbol.vb (1)
98Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\CustomEventAccessorSymbol.vb (3)
72Public Overrides ReadOnly Property AssociatedSymbol As Symbol 254Private Shared Function CheckEventMethodParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags 271Private Shared Function CheckAddRemoveParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags
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\LambdaSymbol.vb (3)
101Public Overrides ReadOnly Property AssociatedSymbol As Symbol 113Public Overrides ReadOnly Property ContainingSymbol As Symbol 225Dim container As Symbol = ContainingSymbol
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\MeParameterSymbol.vb (4)
17Private ReadOnly _container As Symbol 20Friend Sub New(memberSymbol As Symbol) 25Friend Sub New(memberSymbol As Symbol, type As TypeSymbol) 54Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\OverloadingHelper.vb (7)
33Dim overloadedMembers = ArrayBuilder(Of Symbol).GetInstance() ' the set of overloaded symbols. 81overloadsMembers As ArrayBuilder(Of Symbol), 104Private Function SetMetadataNamesOfOverrides(overloadedMembers As ArrayBuilder(Of Symbol), compilation As VisualBasicCompilation) As String 110Dim overriddenMember As Symbol = member.OverriddenMember() 130Private Function NameOfFirstMember(overloadedMembers As ArrayBuilder(Of Symbol), compilation As VisualBasicCompilation) As String 162Dim lookupSymbols As ArrayBuilder(Of Symbol) = result.Symbols 189Private Function IsCandidateMember(member As Symbol, kind As SymbolKind) As Boolean
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\RangeVariableSymbol.vb (1)
40Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\SourceAssemblySymbol.vb (1)
160Friend Overrides Function GetSpecialTypeMember(member As SpecialMember) As Symbol
Symbols\Source\SourceComplexParameterSymbol.vb (5)
274container As Symbol, 290Friend Shared Function Create(container As Symbol, 313Friend Overrides Function ChangeOwner(newContainingSymbol As Symbol) As ParameterSymbol 323Friend Shared Function CreateFromSyntax(container As Symbol, 420container As Symbol,
Symbols\Source\SourceEventSymbol.vb (1)
421Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\SourceFieldSymbol.vb (3)
113Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol 163Public Overrides ReadOnly Property AssociatedSymbol As Symbol 882container As NamedTypeSymbol) As Symbol
Symbols\Source\SourceLabelSymbol.vb (1)
48Public Overrides ReadOnly Property ContainingSymbol As Symbol
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\SourceMemberFieldSymbol.vb (1)
543Dim fieldOrWithEventSymbols(nameCount - 1) As Symbol
Symbols\Source\SourceMemberMethodSymbol.vb (6)
596Optional candidateEventSymbols As ArrayBuilder(Of Symbol) = Nothing, 597Optional candidateWithEventsSymbols As ArrayBuilder(Of Symbol) = Nothing, 598Optional candidateWithEventsPropertySymbols As ArrayBuilder(Of Symbol) = Nothing, 857Optional candidateEventSymbols As ArrayBuilder(Of Symbol) = Nothing, 896Optional candidateEventSymbols As ArrayBuilder(Of Symbol) = Nothing, 933Optional candidatePropertySymbols As ArrayBuilder(Of Symbol) = Nothing,
Symbols\Source\SourceMethodSymbol.vb (3)
596Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol 614Public Overrides ReadOnly Property AssociatedSymbol As Symbol 1049container As NamedTypeSymbol) As Symbol
Symbols\Source\SourceModuleSymbol.vb (5)
127Public Overrides ReadOnly Property ContainingSymbol As Symbol 755For Each child As Symbol In If(symbol.IsNamespace, symbol.GetMembers(), symbol.GetTypeMembers().Cast(Of Symbol)) 914symbol As Symbol) As Boolean 1155For Each member As Symbol In namespaceOrType.GetMembersUnordered()
Symbols\Source\SourceNamedTypeSymbol.vb (4)
486Dim symbols As ImmutableArray(Of Symbol) 490symbols = StaticCast(Of Symbol).From(container.GetTypeMembers(Me.Name)) 2361For Each member As Symbol In current.GetMembers(eventName) 2645Dim symbols As ArrayBuilder(Of Symbol) = Nothing
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\Source\SourceNamedTypeSymbol_GroupClass.vb (5)
226For Each member As Symbol In current.GetMembers(name) 240For Each member As Symbol In ns.GetMembersUnordered() 397Dim conflictsWith As Symbol = Nothing 424<Out> ByRef conflictsWith As Symbol 426Dim members As ArrayBuilder(Of Symbol) = Nothing
Symbols\Source\SourceNamespaceSymbol.vb (9)
38Private _lazyAllMembers As ImmutableArray(Of Symbol) 101Public Overrides ReadOnly Property ContainingSymbol As Symbol 103Return If(_containingNamespace, DirectCast(_containingModule, Symbol)) 199Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 217Friend Overloads Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 219Dim members = StaticCast(Of Symbol).From(Me.GetNameToMembersMap().Flatten()) 226Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 229Return ImmutableArray(Of Symbol).CastUp(members) 231Return ImmutableArray(Of Symbol).Empty
Symbols\Source\SourceParameterSymbol.vb (2)
21container As Symbol, 448Dim container As Symbol = ContainingSymbol
Symbols\Source\SourceParameterSymbolBase.vb (3)
18Private ReadOnly _containingSymbol As Symbol 21Friend Sub New(containingSymbol As Symbol, ordinal As Integer) 32Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\SourcePropertyAccessorSymbol.vb (2)
305Public Overrides ReadOnly Property AssociatedSymbol As Symbol 464Private Shared Function CheckParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags
Symbols\Source\SourcePropertySymbol.vb (1)
428Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\SourceSimpleParameterSymbol.vb (3)
26container As Symbol, 35Friend Overrides Function ChangeOwner(newContainingSymbol As Symbol) As ParameterSymbol 177container As Symbol,
Symbols\Source\SourceTypeParameterSymbol.vb (2)
276Public Overrides ReadOnly Property ContainingSymbol As Symbol 320Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (3)
37Public Overrides ReadOnly Property AssociatedSymbol As Symbol 55Friend Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
157Public Overrides ReadOnly Property AssociatedSymbol As Symbol 193Private Shared Sub ReportUseSiteInfo(symbol As Symbol, diagnostics As BindingDiagnosticBag)
Symbols\Source\SynthesizedFieldSymbol.vb (6)
23Protected ReadOnly _implicitlyDefinedBy As Symbol 30implicitlyDefinedBy As Symbol, 92Public Overrides ReadOnly Property AssociatedSymbol As Symbol 120Public Overrides ReadOnly Property ContainingSymbol As Symbol 166Friend Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\Source\SynthesizedMyGroupCollectionPropertyBackingFieldSymbol.vb (1)
23implicitlyDefinedBy As Symbol,
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
77Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Source\UnboundLambdaParameterSymbol.vb (1)
56Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SpecialMembers.vb (7)
20Friend Overridable Function GetSpecialTypeMember(member As SpecialMember) As Symbol 30Friend Overridable Function GetDeclaredSpecialTypeMember(member As SpecialMember) As Symbol 42Private _lazySpecialTypeMembers() As Symbol 48Friend Overrides Function GetDeclaredSpecialTypeMember(member As SpecialMember) As Symbol 57Dim specialTypeMembers = New Symbol(SpecialMember.Count - 1) {} 68Dim result As Symbol = Nothing 74Interlocked.CompareExchange(_lazySpecialTypeMembers(member), result, DirectCast(ErrorTypeSymbol.UnknownResultType, Symbol))
Symbols\SubstitutedErrorType.vb (4)
17Private ReadOnly _container As Symbol 160Dim container As Symbol = ContainingSymbol 213Public Sub New(container As Symbol, fullInstanceType As InstanceErrorTypeSymbol, substitution As TypeSubstitution) 224Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SubstitutedEventSymbol.vb (1)
91Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SubstitutedFieldSymbol.vb (2)
32Public Overrides ReadOnly Property ContainingSymbol As Symbol 114Public Overrides ReadOnly Property AssociatedSymbol As Symbol
Symbols\SubstitutedMethodSymbol.vb (7)
22Private _propertyOrEventSymbolOpt As Symbol 102Public Overrides ReadOnly Property AssociatedSymbol As Symbol 152Public MustOverride Overrides ReadOnly Property ContainingSymbol As Symbol 434Public Overrides ReadOnly Property ContainingSymbol As Symbol 445Friend Function SetAssociatedPropertyOrEvent(propertyOrEventSymbol As Symbol) As Boolean 808Public Overrides ReadOnly Property ContainingSymbol As Symbol 850Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SubstitutedNamedType.vb (14)
340Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 346Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 352Private Function GetMembers_Worker(members As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 353Dim result = ArrayBuilder(Of Symbol).GetInstance() 408Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 435Friend Function GetMemberForDefinition(member As Symbol) As Symbol 443Private Function SubstituteTypeParametersInMember(member As Symbol) As Symbol 630Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol 642Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 965Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol 1013Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\SubstitutedParameterSymbol.vb (3)
50Public MustOverride Overrides ReadOnly Property ContainingSymbol As Symbol 240Public Overrides ReadOnly Property ContainingSymbol As Symbol 267Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SubstitutedPropertySymbol.vb (1)
81Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SubstitutedTypeParameterSymbol.vb (3)
37Private _containingSymbol As Symbol 64Public Sub SetContainingSymbol(container As Symbol) 107Public 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\SymbolExtensions.vb (31)
18Friend Function IsCompilationOutputWinMdObj(symbol As Symbol) As Boolean 27Friend Function GetKindText(target As Symbol) As String 99Friend Function ToErrorMessageArgument(target As Symbol, Optional errorCode As ERRID = ERRID.ERR_None) As Object 136Public Function IsOverloadable(symbol As Symbol) As Boolean 160Friend Function IsOverloads(sym As Symbol) As Boolean 185Friend Function IsShadows(sym As Symbol) As Boolean 194Friend Function IsInstanceMember(sym As Symbol) As Boolean 207Friend Function RequiresImplementation(sym As Symbol) As Boolean 242Public Function IsAccessor(symbol As Symbol) As Boolean 247Public Function IsWithEventsProperty(symbol As Symbol) As Boolean 256Public Function IsPropertyAndNotWithEvents(symbol As Symbol) As Boolean 279Friend Function IsReducedExtensionMethod(this As Symbol) As Boolean 287Friend Function OverriddenMember(sym As Symbol) As Symbol 304Friend Function GetArity(symbol As Symbol) As Integer 320Friend Function GetMeParameter(sym As Symbol) As ParameterSymbol 339Friend Function GetParameters(sym As Symbol) As ImmutableArray(Of ParameterSymbol) 366Friend Function UnwrapAlias(symbol As Symbol) As Symbol 375Friend Function IsUserDefinedOperator(symbol As Symbol) As Boolean 383Friend Function IsHiddenByCodeAnalysisEmbeddedAttribute(symbol As Symbol) As Boolean 393Friend Function IsHiddenByVisualBasicEmbeddedAttribute(symbol As Symbol) As Boolean 403Friend Function GetUpperLevelNamedTypeSymbol(symbol As Symbol) As NamedTypeSymbol 417Friend Function GetDeclaringSyntaxNode(Of T As VisualBasicSyntaxNode)(this As Symbol) As T 427Return DirectCast(Symbol.GetDeclaringSyntaxNodeHelper(Of T)(this.Locations).FirstOrDefault, T) 431Friend Function AsMember(Of T As Symbol)(origMember As T, type As NamedTypeSymbol) As T 444Friend Function EnsureVbSymbolOrNothing(Of TSource As ISymbol, TDestination As {Symbol, TSource})(symbol As TSource, paramName As String) As TDestination 455Friend Function ContainingNonLambdaMember(member As Symbol) As Symbol 464Friend Function ContainsTupleNames(member As Symbol) As Boolean 486Friend Function IsRequired(member As Symbol) As Boolean
Symbols\SymbolVisitor.vb (2)
11Public Overridable Sub Visit(symbol As Symbol) 17Public Overridable Sub DefaultVisit(symbol As Symbol)
Symbols\SymbolVisitor`1.vb (2)
11Public Overridable Function Visit(symbol As Symbol) As TResult 15Public Overridable Function DefaultVisit(symbol As Symbol) As TResult
Symbols\SymbolVisitor`2.vb (2)
22Public Overridable Function Visit(symbol As Symbol, Optional arg As TArgument = Nothing) As TResult 30Public Overridable Function DefaultVisit(symbol As Symbol, arg As TArgument) As TResult
Symbols\SynthesizedSymbols\SynthesizedAccessor.vb (4)
14Partial Friend MustInherit Class SynthesizedAccessor(Of T As Symbol) 58Public NotOverridable Overrides ReadOnly Property AssociatedSymbol As Symbol 128Friend NotOverridable Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (5)
17Friend MustInherit Class SynthesizedBackingFieldBase(Of T As Symbol) 39Public NotOverridable Overrides ReadOnly Property AssociatedSymbol As Symbol 67Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol 113Friend NotOverridable Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (7)
27Private ReadOnly _typeMapFactory As Func(Of Symbol, TypeSubstitution) 28Private ReadOnly _container As Symbol 35Friend Shared Function MakeTypeParameters(origParameters As ImmutableArray(Of TypeParameterSymbol), container As Symbol, 36mapFunction As Func(Of TypeParameterSymbol, Symbol, TypeParameterSymbol)) As ImmutableArray(Of TypeParameterSymbol) 40Friend Sub New(correspondingMethodTypeParameter As TypeParameterSymbol, container As Symbol, name As String, typeMapFactory As Func(Of Symbol, TypeSubstitution)) 85Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
77Public Overrides ReadOnly Property AssociatedSymbol As Symbol 95Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (10)
37Private _lazyMembers As ImmutableArray(Of Symbol) 51Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 75Dim members As ImmutableArray(Of Symbol) 77members = ImmutableArray.Create(Of Symbol)(ctor, invoke) 79members = ImmutableArray.Create(Of Symbol)(ctor, beginInvoke, endInvoke, invoke) 88Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 102Public Overrides ReadOnly Property AssociatedSymbol As Symbol 128Friend Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol 160Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
194Public Overrides ReadOnly Property AssociatedSymbol As Symbol 212Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (6)
19Private ReadOnly _members As ImmutableArray(Of Symbol) 29_members = ImmutableArray.Create(Of Symbol)( 46Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 50Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 76Public Overrides ReadOnly Property AssociatedSymbol As Symbol 88Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (2)
29Private Shared ReadOnly s_typeParametersSubstitutionFactory As Func(Of Symbol, TypeSubstitution) = 32Private Shared ReadOnly s_createTypeParameter As Func(Of TypeParameterSymbol, Symbol, TypeParameterSymbol) =
Symbols\SynthesizedSymbols\SynthesizedLocal.vb (1)
20Friend Sub New(container As Symbol,
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (3)
38Private Shared ReadOnly s_typeSubstitutionFactory As Func(Of Symbol, TypeSubstitution) = 41Friend Shared ReadOnly CreateTypeParameter As Func(Of TypeParameterSymbol, Symbol, TypeParameterSymbol) = 50newContainer As Symbol,
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (2)
31Public Overrides ReadOnly Property AssociatedSymbol As Symbol 44Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
88Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (1)
42Public NotOverridable Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Tuples\TupleEventSymbol.vb (1)
32Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Tuples\TupleFieldSymbol.vb (6)
62Public Overrides ReadOnly Property AssociatedSymbol As Symbol 64Return Me._containingTuple.GetTupleMemberSymbolForUnderlyingMember(Of Symbol)(Me._underlyingField.AssociatedSymbol) 68Public Overrides ReadOnly Property ContainingSymbol As Symbol 193Public Overrides ReadOnly Property AssociatedSymbol As Symbol 196Dim result As Symbol 263Public Overrides ReadOnly Property AssociatedSymbol As Symbol
Symbols\Tuples\TupleMethodSymbol.vb (3)
44Public Overrides ReadOnly Property AssociatedSymbol As Symbol 46Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of Symbol)(Me._underlyingMethod.ConstructedFrom.AssociatedSymbol) 50Public Overrides ReadOnly Property ContainingSymbol As Symbol
Symbols\Tuples\TupleParameterSymbol.vb (3)
12Private ReadOnly _container As Symbol 14Public Overrides ReadOnly Property ContainingSymbol As Symbol 44Public Sub New(container As Symbol, underlyingParameter As ParameterSymbol)
Symbols\Tuples\TuplePropertySymbol.vb (1)
86Public Overrides ReadOnly Property ContainingSymbol As Symbol
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\TypeParameterSymbol.vb (4)
82Public NotOverridable Overrides Function GetMembers() As ImmutableArray(Of Symbol) 83Return ImmutableArray(Of Symbol).Empty 87Public NotOverridable Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 88Return ImmutableArray(Of Symbol).Empty
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
Symbols\TypeSymbolExtensions.vb (3)
993specializedGenericTypeOrMethod As Symbol, 1008Dim container As Symbol = typeArgument.ContainingSymbol 1028Dim container As Symbol = typeArgument.ContainingSymbol
Symbols\UnboundGenericType.vb (15)
101Public MustOverride Overrides ReadOnly Property ContainingSymbol As Symbol 329Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 355Private _lazyContainingSymbol As Symbol 385Public Overrides ReadOnly Property ContainingSymbol As Symbol 388Dim result As Symbol 463Dim container As Symbol = ContainingSymbol 497Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 506Return StaticCast(Of Symbol).From(GetTypeMembers(builder.ToImmutableAndFree())) 509Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 511Return StaticCast(Of Symbol).From(GetTypeMembers(name)) 609Public Overrides ReadOnly Property ContainingSymbol As Symbol 639Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 640Return ImmutableArray(Of Symbol).Empty 643Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 644Return ImmutableArray(Of Symbol).Empty
Symbols\UsedAssemblies.vb (1)
30Dim symbol As Symbol = GetBoundReferenceManager().GetReferencedAssemblySymbol(reference)
Symbols\WellKnownMembers.vb (11)
30Private _lazyWellKnownTypeMembers() As Symbol 32Private _lazyExtensionAttributeConstructor As Symbol = ErrorTypeSymbol.UnknownResultType ' Not yet known. 121DirectCast(attributeCtor, Symbol), 122DirectCast(ErrorTypeSymbol.UnknownResultType, Symbol)) 306Friend Function GetWellKnownTypeMember(member As WellKnownMember) As Symbol 316Dim wellKnownTypeMembers = New Symbol(WellKnownMember.Count - 1) {} 330Dim result As Symbol = Nothing 336Interlocked.CompareExchange(_lazyWellKnownTypeMembers(member), result, DirectCast(ErrorTypeSymbol.UnknownResultType, Symbol)) 424) As Symbol 425Dim result As Symbol = Nothing 458Not (m.DeclaredAccessibility = Accessibility.Public OrElse (accessWithinOpt IsNot Nothing AndAlso Symbol.IsSymbolAccessible(m, accessWithinOpt))) Then