Binding\Binder_Expressions.vb (7)
560Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleReservedElementNameAnyPosition, name)
564Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleReservedElementName, name, reserved)
568Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleDuplicateElementName)
1163Public Sub New(containingBinder As Binder)
2955accessingBinder As Binder,
2963accessingBinder As Binder) As BoundExpression
3689accessingBinder As Binder,
Binding\Binder_Imports.vb (12)
55binder As Binder,
78binder As Binder,
91Binder.ReportDiagnostic(diagBag,
105Binder.ReportDiagnostic(diagBag, aliasIdentifier, ERRID.ERR_DuplicateNamedImportAlias1, aliasText)
113Binder.ReportDiagnostic(diagBag,
123Binder.ReportUseSite(diagBag, aliasImportSyntax, useSiteInfo)
159binder As Binder,
174Binder.ReportDiagnostic(diagBag,
187Binder.ReportDiagnostic(diagBag, importsName, ERRID.ERR_DuplicateImport1, importedSymbol)
201Binder.ReportDiagnostic(diagBag, importsName, ERRID.ERR_DuplicateRawGenericTypeImport1, namedType)
218binder As Binder,
238Binder.ReportDiagnostic(diagBag, syntax, ERRID.ERR_DuplicatePrefix, prefix)
Binding\Binder_Lookup.vb (39)
338binder As Binder,
354binder As Binder)
373binder As Binder,
404binder As Binder,
482binder As Binder,
539binder As Binder)
574binder As Binder,
604binder As Binder)
642binder As Binder,
715binder As Binder,
734binder As Binder,
863binder As Binder,
929Public Shared Sub LookupDefaultProperty(result As LookupResult, container As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol))
951binder As Binder,
986binder As Binder,
1009binder As Binder,
1040binder As Binder,
1082binder As Binder,
1149binder As Binder,
1178binder As Binder,
1256binder As Binder,
1275singleResult = New SingleLookupResult(LookupResultKind.NotReferencable, binder.GetErrorSymbol(name, useSiteError), useSiteError)
1287binder As Binder)
1310binder As Binder)
1320Dim currentBinder As Binder = binder
1449binder As Binder,
1498binder As Binder,
1612binder As Binder,
1628binder As Binder,
1867Private Shared Sub AddBaseInterfacesToTheSearch(binder As Binder,
1925binder As Binder)
1973binder As Binder)
1992binder As Binder)
2018binder As Binder)
2039binder As Binder)
2053binder As Binder)
2089binder As Binder,
2122binder As Binder)
2150binder As Binder
Binding\Binder_Query.vb (36)
222ImmutableArray.Create(Of Binder)(intoBinder),
239ImmutableArray.Create(Of Binder)(intoBinder),
272ImmutableArray.Create(Of Binder)(intoBinder),
404ImmutableArray.Create(Of Binder)(firstSelectSelectorBinder, intoBinder),
423ImmutableArray(Of Binder).Empty,
562ImmutableArray.Create(Of Binder)(firstSelectSelectorBinder, intoBinder),
634ImmutableArray(Of Binder).Empty,
704ImmutableArray.Create(Of Binder)(selectorBinder),
724childScopeBinder As Binder,
850ImmutableArray.Create(Of Binder)(selectorBinder),
1050Dim lambdaBinders As ImmutableArray(Of Binder)
1092lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder, joinSelectorBinder)
1120lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder)
1407ImmutableArray(Of Binder).Empty,
1447Dim lambdaBinders As ImmutableArray(Of Binder)
1486lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, joinSelectorBinder)
1504lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder)
1653ImmutableArray(Of Binder).Empty,
1729ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, intoBinder),
1793Dim lambdaBinders As ImmutableArray(Of Binder)
1799lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, intoBinder)
1802lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, itemsLambdaBinder, intoBinder)
2395ImmutableArray.Create(Of Binder)(filterBinder),
2431ImmutableArray(Of Binder).Empty,
2503ImmutableArray(Of Binder).Empty,
2626ImmutableArray.Create(Of Binder)(keyBinder),
2811shadowingCheckBinder As Binder,
3252parentBinder As Binder,
3679Private ReadOnly _binder As Binder
3685binder As Binder,
3697binder As Binder,
3740parent As Binder,
3976ImmutableArray.Create(Of Binder)(aggregationBinder),
4102parent As Binder,
4235ImmutableArray(Of Binder).Empty,
4305ImmutableArray.Create(Of Binder)(selectorBinder),
Binding\Binder_Statements.vb (13)
426Private ReadOnly _binder As Binder
440Private Sub New(binder As Binder, diagnostics As BindingDiagnosticBag)
446binder As Binder,
478Binder.ReportDiagnostic(diagnostics, node.Syntax, ERRID.ERR_TryAndOnErrorDoNotMix)
606Private Shared Sub ReportNameConflictsBetweenStaticLocals(methodBlockBinder As Binder, diagnostics As BindingDiagnosticBag)
607Dim currentBinder As Binder = methodBlockBinder
1058Dim current As Binder = Me
2050Friend Function BindBlock(syntax As SyntaxNode, stmtList As SyntaxList(Of StatementSyntax), diagnostics As BindingDiagnosticBag, stmtListBinder As Binder) As BoundBlock
4378Dim binder As Binder = Me.GetBinder(DirectCast(node, VisualBasicSyntaxNode))
4382Protected Overridable Function CreateBoundWithBlock(node As WithBlockSyntax, boundBlockBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundStatement
4510Private Function GetUsingBlockLocals(currentBinder As Binder) As ImmutableArray(Of LocalSymbol)
4730Dim tryBinder As Binder = GetBinder(node)
4743Dim catchBinder As Binder = GetBinder(catchSyntax)
Binding\Binder_Symbols.vb (45)
224binder As Binder,
239binder As Binder,
261Return Binder.GetErrorSymbol(diagName, diagInfo)
268Binder.ReportDiagnostic(diagBag, typeSyntax, lookupResult.Diagnostic)
288Binder.ReportDiagnostic(diagBag, typeSyntax, diagInfo)
291Return Binder.GetErrorSymbol(GetBaseNamesForDiagnostic(typeSyntax), diagInfo, ImmutableArray.Create(Of Symbol)(sym), LookupResultKind.NotATypeOrNamespace)
318Private Shared Function NotFound(typeSyntax As TypeSyntax, diagName As String, binder As Binder, diagBag As BindingDiagnosticBag) As DiagnosticInfo
325Binder.ReportDiagnostic(diagBag, typeSyntax, diagInfo)
347Binder.ReportDiagnostic(diagBag, typeSyntax, diagInfo)
433Binder.ReportDiagnostic(diagBag, typeSyntax, ERRID.ERR_TypeFwdCycle2, fullName, forwardedType.ContainingAssembly)
435Binder.ReportDiagnostic(diagBag, typeSyntax, errorInfo)
469binder As Binder,
478binder As Binder,
486binder As Binder,
512Binder.ReportDiagnostic(diagBag, typeSyntax, ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, diagName))
518Binder.ReportDiagnostic(diagBag, typeSyntax, diagInfo)
521Return Binder.GetErrorSymbol(diagName, diagInfo, reportErrorWhenReferenced)
525Binder.ReportDiagnostic(diagBag, typeSyntax, lookupResult.Diagnostic)
552binder As Binder,
605binder As Binder,
644Binder.CheckTupleMemberName(name, i, nameSyntax, diagnostics, uniqueFieldNames)
650Binder.CollectTupleFieldMemberName(name, i, numElements, elementNames)
660Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleElementNamesAttributeMissing, AttributeDescription.TupleElementNamesAttribute.FullName)
687binder As Binder,
722Binder.ReportDiagnostic(diagBag, typeSyntax, ERRID.ERR_TypeInItsInheritsClause1, typeWithBaseBeingResolved)
725Binder.ReportDiagnostic(diagBag, typeSyntax,
740Private Shared Function ErrorTypeFromLookupResult(name As String, result As LookupResult, binder As Binder) As ErrorTypeSymbol
743Return Binder.GetErrorSymbol(name, result.Diagnostic, DirectCast(result.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols, result.Kind)
745Return Binder.GetErrorSymbol(name, result.Diagnostic, result.Symbols.ToImmutable(), result.Kind)
752binder As Binder,
761binder As Binder,
811binder As Binder,
826binder As Binder,
838binder As Binder,
844Binder.DisallowTypeCharacter(idSyntax, diagBag)
869binder As Binder,
878Binder.DisallowTypeCharacter(idSyntax, diagBag)
930binder As Binder,
948Binder.DisallowTypeCharacter(rightIdentToken, diagBag)
957Binder.ReportDiagnostic(diagBag, leftNameSyntax, lookupResult.Diagnostic)
1019binder As Binder,
1031Binder.DisallowTypeCharacter(rightIdentSyntax, diagBag)
1048Binder.ReportDiagnostic(diagBag, leftNameSyntax, lookupResult.Diagnostic)
1109binder As Binder) As SingleLookupResult
1117binder As Binder,
Binding\BinderBuilder.vb (37)
46tree As SyntaxTree) As Binder
47Dim sourceModuleBinder As Binder = CreateSourceModuleBinder(moduleSymbol)
48Dim sourceFileBinder As Binder = New SourceFileBinder(sourceModuleBinder, moduleSymbol.TryGetSourceFile(tree), tree)
49Dim namespaceBinder As Binder = New NamespaceBinder(sourceFileBinder, moduleSymbol.ContainingSourceAssembly.DeclaringCompilation.GlobalNamespace)
50Dim ignoreBasesBinder As Binder = New IgnoreBaseClassesBinder(namespaceBinder)
64tree As SyntaxTree) As Binder
65Dim sourceModuleBinder As Binder = CreateSourceModuleBinder(moduleSymbol)
66Dim projectImportsBinder As Binder = New ProjectImportsBinder(sourceModuleBinder, tree)
67Dim namespaceBinder As Binder = New NamespaceBinder(projectImportsBinder, moduleSymbol.ContainingSourceAssembly.DeclaringCompilation.GlobalNamespace)
68Dim ignoreBasesBinder As Binder = New IgnoreBaseClassesBinder(namespaceBinder)
86tree As SyntaxTree) As Binder
87Dim moduleBinder As Binder = CreateSourceModuleBinder(moduleSymbol)
114Dim sourceFileBinder As Binder = New SourceFileBinder(moduleBinder, sourceFile, tree)
152tree As SyntaxTree) As Binder
229typeSymbol As NamedTypeSymbol) As Binder
250Dim binder As Binder = CreateBinderForNamespace(moduleSymbol, tree, DirectCast(containingSymbol, NamespaceSymbol))
283Dim containingBinder As Binder
304Public Shared Function CreateBinderForAttribute(tree As SyntaxTree, containingBinder As Binder, node As VisualBasicSyntaxNode) As AttributeBinder
311node As VisualBasicSyntaxNode) As Binder
312Dim containingBinder As Binder
333Public Shared Function CreateBinderForParameterDefaultValue(parameterSymbol As ParameterSymbol, containingBinder As Binder, node As VisualBasicSyntaxNode) As Binder
346Public Shared Function CreateBinderForDocumentationComment(containingBinder As Binder, commentedSymbol As Symbol, binderType As DocumentationCommentBinder.BinderType) As Binder
368Public Shared Function CreateBinderForMethodDeclaration(methodSymbol As MethodSymbol, containingBinder As Binder) As Binder
382Public Shared Function CreateBinderForGenericMethodDeclaration(methodSymbol As SourceMethodSymbol, containingBinder As Binder) As Binder
391methodSymbol As SourceMethodSymbol) As Binder
400Public Shared Function CreateBinderForMethodBody(methodSymbol As MethodSymbol, root As SyntaxNode, containingBinder As Binder) As Binder
403Dim methodDeclBinder As Binder = CreateBinderForMethodDeclaration(methodSymbol, containingBinder)
415methodSymbol As SourceMethodSymbol) As Binder
420Public Shared Function CreateBinderForInitializer(containingBinder As Binder,
422additionalFieldsOrProperties As ImmutableArray(Of Symbol)) As Binder
444Public Shared Function CreateSourceModuleBinder(moduleSymbol As SourceModuleSymbol) As Binder
445Dim backstop As Binder = New BackstopBinder()
Binding\BinderFactory.vb (24)
32Private ReadOnly _cache As ConcurrentDictionary(Of ValueTuple(Of VisualBasicSyntaxNode, Byte), Binder)
44Me._cache = New ConcurrentDictionary(Of ValueTuple(Of VisualBasicSyntaxNode, Byte), Binder)
49Private Function MakeBinder(node As SyntaxNode, position As Integer) As Binder
64Public Function GetNamespaceBinder(node As NamespaceBlockSyntax) As Binder
69Public Function GetNamedTypeBinder(node As TypeStatementSyntax) As Binder
77Public Function GetNamedTypeBinder(node As EnumStatementSyntax) As Binder
85Public Function GetNamedTypeBinder(node As DelegateStatementSyntax) As Binder
91Public Function GetBinderForPosition(node As SyntaxNode, position As Integer) As Binder
96Private Function GetBinderAtOrAbove(node As SyntaxNode, position As Integer) As Binder
99Dim binder As Binder = MakeBinder(node, position)
122Optional containingBinder As Binder = Nothing) As Binder
128Dim binder As Binder = Nothing
148containingBinder As Binder) As Binder
437Private Function CreateDocumentationCommentBinder(node As DocumentationCommentTriviaSyntax, binderType As DocumentationCommentBinder.BinderType) As Binder
512Dim containingBinder As Binder = GetBinderAtOrAbove(nodeForOuterBinder, parent.SpanStart)
561Private Function GetContainingNamedTypeBinderForMemberNode(node As VisualBasicSyntaxNode, containingBinder As Binder) As NamedTypeBinder
577Private Shared Function GetParameterDeclarationContainingType(containingBinder As Binder) As NamedTypeSymbol
632forBody As Boolean) As Binder
655Private Function BuildInitializerBinder(containingBinder As Binder, fieldOrProperty As Symbol, additionalFieldsOrProperties As ImmutableArray(Of Symbol)) As Binder
659Private Function BuildAttributeBinder(containingBinder As Binder, node As VisualBasicSyntaxNode) As Binder
Binding\MemberSemanticModel.vb (51)
26Private ReadOnly _rootBinder As Binder
32rootBinder As Binder,
44Friend ReadOnly Property RootBinder As Binder
90Friend NotOverridable Overloads Overrides Function GetEnclosingBinder(position As Integer) As Binder
96Private Overloads Function GetEnclosingBinder(node As SyntaxNode) As Binder
1101Dim binder As Binder = Me.GetSpeculativeBinderForExpression(position, type, bindingOption)
1212Private ReadOnly _guardedQueryBindersMap As New Dictionary(Of SyntaxNode, ImmutableArray(Of Binder))()
1213Private ReadOnly _guardedAnonymousTypeBinderMap As New Dictionary(Of FieldInitializerSyntax, Binder.AnonymousTypeFieldInitializerBinder)()
1257memberBinder As Binder,
1261) As Binder
1262Dim binder As Binder = Nothing
1370<Out()> ByRef binder As Binder
1417Private Function GetAggregateClauseLambdaBinder(aggregate As AggregateClauseSyntax, position As Integer) As Binder
1418Dim binder As Binder = Nothing
1427Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(aggregate)
1448Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(aggregate)
1463Private Function GetGroupJoinClauseLambdaBinder(join As GroupJoinClauseSyntax, position As Integer) As Binder
1464Dim binder As Binder = Nothing
1469Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(join)
1487Private Function GetJoinClauseLambdaBinder(join As JoinClauseSyntax, position As Integer) As Binder
1488Dim binder As Binder = Nothing
1496Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(join)
1511Private Function GetFromClauseLambdaBinder(from As FromClauseSyntax, position As Integer) As Binder
1512Dim binder As Binder = Nothing
1521Private Function GetCollectionRangeVariablesLambdaBinder(variables As SeparatedSyntaxList(Of CollectionRangeVariableSyntax), position As Integer) As Binder
1522Dim binder As Binder = Nothing
1537Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(item)
1555Private Function GetLetClauseLambdaBinder([let] As LetClauseSyntax, position As Integer) As Binder
1556Dim binder As Binder = Nothing
1562Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(item)
1581Private Function GetGroupByClauseLambdaBinder(groupBy As GroupByClauseSyntax, position As Integer) As Binder
1582Dim binder As Binder = Nothing
1585Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(groupBy)
1617Private Function GetFunctionAggregationLambdaBinder(func As FunctionAggregationSyntax, position As Integer) As Binder
1618Dim binder As Binder = Nothing
1623Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(func)
1640) As Binder
1642Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(operatorSyntax)
1655Private Function GetQueryClauseLambdaBinders(node As VisualBasicSyntaxNode) As ImmutableArray(Of Binder)
1660Dim binders As ImmutableArray(Of Binder) = Nothing
1701<Out()> ByRef binder As Binder
1713Dim cachedBinder As Binder.AnonymousTypeFieldInitializerBinder = Nothing
1928Private Sub GuardedIncrementalBind(bindingRoot As SyntaxNode, enclosingBinder As Binder)
2024Friend Sub New(binding As MemberSemanticModel, [next] As Binder)
2033Public Overrides Function GetBinder(node As SyntaxNode) As Binder
2034Dim binder As Binder = Me.ContainingBinder.GetBinder(node)
2048Public Overrides Function GetBinder(list As SyntaxList(Of StatementSyntax)) As Binder
2049Dim binder As Binder = Me.ContainingBinder.GetBinder(list)
2324Dim haveBindersInTheMap As ImmutableArray(Of Binder) = Nothing
2337Dim haveBindersInTheMap As ImmutableArray(Of Binder) = Nothing
2352Dim haveBindersInTheMap As Binder.AnonymousTypeFieldInitializerBinder = Nothing
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (5)
19Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
56Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
87Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
186Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
328Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Compilation\MethodCompiler.vb (22)
417Dim sourceTypeBinder As Binder = If(method.MethodKind = MethodKind.Ordinary, Nothing,
437processedInitializers:=Binder.ProcessedFieldOrPropertyInitializers.Empty,
562Dim processedStaticInitializers = Binder.ProcessedFieldOrPropertyInitializers.Empty
563Dim processedInstanceInitializers = Binder.ProcessedFieldOrPropertyInitializers.Empty
579Dim sourceTypeBinder As Binder = Nothing
589processedStaticInitializers = New Binder.ProcessedFieldOrPropertyInitializers(Binder.BindFieldAndPropertyInitializers(sourceTypeSymbol,
594processedInstanceInitializers = New Binder.ProcessedFieldOrPropertyInitializers(Binder.BindFieldAndPropertyInitializers(sourceTypeSymbol,
683Dim processedInitializers = Binder.ProcessedFieldOrPropertyInitializers.Empty
742Binder.ProcessedFieldOrPropertyInitializers.Empty,
767Binder.ReportDiagnostic(_diagnostics, location, ERRID.WRN_ExpectedInitComponentCall2, sourceMethod, sourceTypeSymbol)
1202processedInitializers As Binder.ProcessedFieldOrPropertyInitializers,
1203containingTypeBinder As Binder,
1238Dim methodBinderOpt As Binder = Nothing
1332containingTypeBinder As Binder,
1432binderOpt As Binder,
1435processedInitializers As Binder.ProcessedFieldOrPropertyInitializers,
1753containingTypeBinder As Binder,
1756ByRef methodBodyBinder As Binder) As BoundBlock
1856Private Shared Function FindConstructorToCallByDefault(constructor As MethodSymbol, diagnostics As BindingDiagnosticBag, Optional binderForAccessibilityCheckOpt As Binder = Nothing) As MethodSymbol
2028Optional binderOpt As Binder = Nothing) As BoundExpressionStatement
Compilation\SemanticModel.vb (30)
225Dim binder As Binder = Nothing ' Passed ByRef to GetSpeculativelyBoundNodeSummary.
249Dim binder As Binder = Nothing ' Passed ByRef to GetSpeculativelyBoundNodeSummary.
270Friend Function GetSymbolInfoForNode(options As SymbolInfoOptions, boundNodes As BoundNodeSummary, binderOpt As Binder) As SymbolInfo
324Dim binder As Binder = Nothing ' passed ByRef to GetSpeculativelyBoundNodeSummary
411Dim binder As Binder = Nothing ' passed ByRef to GetSpeculativelyBoundNodeSummary
452Dim binder As Binder = Nothing ' passed ByRef to GetSpeculativelyBoundNodeSummary
484Friend Function GetMemberGroupForNode(boundNodes As BoundNodeSummary, binderOpt As Binder) As ImmutableArray(Of Symbol)
525Dim binder As Binder = Nothing
540Friend MustOverride Function GetEnclosingBinder(position As Integer) As Binder
722binder As Binder,
747<Out> ByRef binder As Binder) As BoundNode
762<Out> ByRef binder As Binder) As BoundNodeSummary
785Private Function MakeValueIfPossible(binder As Binder, node As BoundNode) As BoundNode
827Friend Function GetSpeculativelyBoundAttribute(position As Integer, attribute As AttributeSyntax, <Out> ByRef binder As Binder) As BoundAttribute
842Private Function GetSpeculativelyBoundAttributeSummary(position As Integer, attribute As AttributeSyntax, <Out> ByRef binder As Binder) As BoundNodeSummary
1010binderOpt As Binder,
1116Dim binder As Binder = If(binderOpt, GetEnclosingBinder(boundNodes.LowestBoundNode.Syntax.SpanStart))
1411binderOpt As Binder,
1463binderOpt As Binder,
1478Dim binder As Binder = If(binderOpt, GetEnclosingBinder(lowestBoundNode.Syntax.SpanStart))
1558Friend Overridable Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
1894Private Sub AppendSymbolsWithName(results As ArrayBuilder(Of Symbol), name As String, binder As Binder, container As NamespaceOrTypeSymbol, options As LookupOptions, info As LookupSymbolsInfo)
1918Private Shadows Sub LookupSymbols(binder As Binder,
1944Private Shadows Sub LookupSymbols(binder As Binder,
1995binder As Binder,
2272Dim binder As Binder = Me.GetSpeculativeAttributeBinder(position, attribute)
2384Dim binder As Binder = Me.GetEnclosingBinder(identifierSyntax.SpanStart)
3041Friend Shared Function StripSemanticModelBinder(binder As Binder) As Binder
3444Private Shared Sub AddImportScopes(binder As Binder, scopes As ArrayBuilder(Of IImportScope))
Compilation\SpeculativeSemanticModelWithMemberModel.vb (7)
33Friend Sub New(parentSemanticModel As SyntaxTreeSemanticModel, position As Integer, root As AttributeSyntax, binder As Binder)
43Friend Sub New(parentSemanticModel As SyntaxTreeSemanticModel, position As Integer, root As EqualsValueSyntax, binder As Binder)
53Friend Sub New(parentSemanticModel As SyntaxTreeSemanticModel, position As Integer, root As VisualBasicSyntaxNode, binder As Binder)
63Friend Sub New(parentSemanticModel As SyntaxTreeSemanticModel, position As Integer, root As TypeSyntax, binder As Binder)
73Friend Sub New(parentSemanticModel As SyntaxTreeSemanticModel, position As Integer, root As RangeArgumentSyntax, binder As Binder)
125Friend Overloads Overrides Function GetEnclosingBinder(position As Integer) As Binder
289Friend Overrides Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (5)
22Private ReadOnly _rootBinder As Binder
26Public Shared Function Create(parentSemanticModel As SyntaxTreeSemanticModel, root As ExpressionSyntax, binder As Binder, position As Integer, bindingOption As SpeculativeBindingOption) As SpeculativeSyntaxTreeSemanticModel
35Private Sub New(parentSemanticModel As SyntaxTreeSemanticModel, root As ExpressionSyntax, binder As Binder, position As Integer, bindingOption As SpeculativeBindingOption)
75Friend Overrides Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
79Friend Overrides Function GetEnclosingBinder(position As Integer) As Binder
Compilation\SyntaxTreeSemanticModel.vb (23)
34Private ReadOnly _semanticModelCache As New ConcurrentDictionary(Of Binder, MemberSemanticModel)()
140Private ReadOnly _methodBodySemanticModelCreator As Func(Of Binder, MemberSemanticModel) = Function(key As Binder) MethodBodySemanticModel.Create(Me, DirectCast(key, SubOrFunctionBodyBinder))
141Private ReadOnly _initializerSemanticModelCreator As Func(Of Binder, MemberSemanticModel) = Function(key As Binder) InitializerSemanticModel.Create(Me, DirectCast(key, DeclarationInitializerBinder))
142Private ReadOnly _attributeSemanticModelCreator As Func(Of Binder, MemberSemanticModel) = Function(key As Binder) AttributeSemanticModel.Create(Me, DirectCast(key, AttributeBinder))
144Public Function GetMemberSemanticModel(binder As Binder) As MemberSemanticModel
166Dim binder As binder = _binderFactory.GetBinderForPosition(FindInitialNodeFromPosition(position), position)
176Friend Overrides Function GetEnclosingBinder(position As Integer) As Binder
184Dim binder As binder = _binderFactory.GetBinderForPosition(FindInitialNodeFromPosition(position), position)
271Dim binder As Binder = GetEnclosingBinder(node.SpanStart)
459Dim binder As Binder = GetEnclosingBinder(expression.SpanStart)
659If Not Binder.AddReceiverNamespaces(namespaces, DirectCast(parentInfo.Symbol, Symbol), Compilation) Then
664If Not Binder.AddReceiverNamespaces(namespaces, DirectCast(candidate, Symbol), Compilation) Then
707Dim binder As Binder = GetEnclosingBinder(memberName.SpanStart)
763Dim binder As Binder = GetEnclosingBinder(handlesClause.SpanStart)
885Dim binder As Binder = _binderFactory.GetNamedTypeBinder(declarationSyntax)
904Dim binder As Binder = _binderFactory.GetNamedTypeBinder(declarationSyntax)
923Dim binder As Binder = _binderFactory.GetNamedTypeBinder(declarationSyntax)
944Dim binder As Binder = _binderFactory.GetNamespaceBinder(parentBlock)
1337Dim binder As Binder = GetEnclosingBinder(declarationSyntax.SpanStart)
1441Dim binder As Binder = Me.GetSpeculativeBinderForExpression(position, type, bindingOption)
Generated\BoundNodes.xml.Generated.vb (60)
1857Public Sub New(syntax As SyntaxNode, binder As Binder, withDependencies As Boolean, methodGroup As BoundMethodGroup, Optional hasErrors As Boolean = False)
1869Private ReadOnly _Binder As Binder
1870Public ReadOnly Property Binder As Binder
1895Public Function Update(binder As Binder, withDependencies As Boolean, methodGroup As BoundMethodGroup) As BoundAddressOfOperator
3325Public Sub New(syntax As SyntaxNode, binder As Binder, memberAccess As BoundLateMemberAccess, type As TypeSymbol, Optional hasErrors As Boolean = False)
3336Private ReadOnly _Binder As Binder
3337Public ReadOnly Property Binder As Binder
3355Public Function Update(binder As Binder, memberAccess As BoundLateMemberAccess, type As TypeSymbol) As BoundLateAddressOfOperator
3596Public Sub New(syntax As SyntaxNode, binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3608Private ReadOnly _BinderOpt As Binder.AnonymousTypeCreationBinder
3609Public ReadOnly Property BinderOpt As Binder.AnonymousTypeCreationBinder
3634Public Function Update(binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundAnonymousTypeCreationExpression
3647Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol, hasErrors As Boolean)
3656Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol)
3666Private ReadOnly _Binder As Binder.AnonymousTypeCreationBinder
3667Public ReadOnly Property Binder As Binder.AnonymousTypeCreationBinder
3685Public Function Update(binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol) As BoundAnonymousTypePropertyAccess
3698Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeFieldInitializerBinder, value As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
3709Private ReadOnly _Binder As Binder.AnonymousTypeFieldInitializerBinder
3710Public ReadOnly Property Binder As Binder.AnonymousTypeFieldInitializerBinder
3728Public Function Update(binder As Binder.AnonymousTypeFieldInitializerBinder, value As BoundExpression, type As TypeSymbol) As BoundAnonymousTypeFieldInitializer
4009Public Sub New(syntax As SyntaxNode, hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As BoundArrayInitialization, binder As Binder, Optional hasErrors As Boolean = False)
4061Private ReadOnly _Binder As Binder
4062Public ReadOnly Property Binder As Binder
4073Public Function Update(hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As BoundArrayInitialization, binder As Binder) As BoundArrayLiteral
4502Public Sub New(syntax As SyntaxNode, localDeclarations As ImmutableArray(Of BoundLocalDeclaration), initializer As BoundExpression, binder As Binder, Optional hasErrors As Boolean = False)
4529Private ReadOnly _Binder As Binder
4530Public ReadOnly Property Binder As Binder
4541Public Function Update(localDeclarations As ImmutableArray(Of BoundLocalDeclaration), initializer As BoundExpression, binder As Binder) As BoundAsNewLocalDeclarations
4622Protected Sub New(kind As BoundKind, syntax as SyntaxNode, memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False)
4647Private ReadOnly _BinderOpt As Binder
4648Public ReadOnly Property BinderOpt As Binder
4658Public Sub New(syntax As SyntaxNode, initializedFields As ImmutableArray(Of FieldSymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False)
4680Public Function Update(initializedFields As ImmutableArray(Of FieldSymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder) As BoundFieldInitializer
4693Public Sub New(syntax As SyntaxNode, initializedProperties As ImmutableArray(Of PropertySymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False)
4715Public Function Update(initializedProperties As ImmutableArray(Of PropertySymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder) As BoundPropertyInitializer
6760Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache, hasErrors As Boolean)
6779Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache)
6796Private ReadOnly _Binder As Binder
6797Public ReadOnly Property Binder As Binder
6836Public Function Update(binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) As UnboundLambda
7053Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, hasErrors As Boolean)
7066Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol)
7094Private ReadOnly _Binders As ImmutableArray(Of Binder)
7095Public ReadOnly Property Binders As ImmutableArray(Of Binder)
7105Public Sub New(syntax As SyntaxNode, source As BoundQueryPart, rangeVariableOpt As RangeVariableSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False)
7143Public Function Update(source As BoundQueryPart, rangeVariableOpt As RangeVariableSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryableSource
7156Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False)
7181Public Function Update(underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryClause
7333Public Sub New(syntax As SyntaxNode, binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation, hasErrors As Boolean)
7345Public Sub New(syntax As SyntaxNode, binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation)
7358Private ReadOnly _Binder As Binder
7359Public ReadOnly Property Binder As Binder
7384Public Function Update(binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation) As GroupTypeInferenceLambda
7397Public Sub New(syntax As SyntaxNode, capturedGroupOpt As BoundQueryClauseBase, groupPlaceholderOpt As BoundRValuePlaceholder, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False)
7438Public Function Update(capturedGroupOpt As BoundQueryClauseBase, groupPlaceholderOpt As BoundRValuePlaceholder, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundAggregateClause
9207Public Sub New(syntax As SyntaxNode, contents As ImmutableArray(Of BoundNode), binder As Binder, type As TypeSymbol, Optional hasErrors As Boolean = False)
9231Private ReadOnly _Binder As Binder
9232Public ReadOnly Property Binder As Binder
9243Public Function Update(contents As ImmutableArray(Of BoundNode), binder As Binder, type As TypeSymbol) As BoundInterpolatedStringExpression
Lowering\Diagnostics\DiagnosticsPass.vb (7)
75If Binder.IsTopMostEnclosingLambdaAQueryLambda(_containingSymbol, parameterSymbolContainingSymbol) Then
76Binder.ReportDiagnostic(Me._diagnostics, node.Syntax, ERRID.ERR_CannotLiftByRefParamQuery1, parameterSymbol.Name)
78Binder.ReportDiagnostic(Me._diagnostics, node.Syntax, ERRID.ERR_CannotLiftByRefParamLambda1, parameterSymbol.Name)
90Binder.ReportDiagnostic(Me._diagnostics, node.Syntax, errorId)
100Binder.ReportDiagnostic(Me._diagnostics, node.Syntax, errorId)
112If Binder.IsTopMostEnclosingLambdaAQueryLambda(_containingSymbol, Nothing) Then
155Binder.ReportDiagnostic(Me._diagnostics, errorSyntax, errorId)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (6)
379Return Binder.GetSpecialType(F.Compilation, type, Me.Body.Syntax, bag)
383Return Binder.GetWellKnownType(F.Compilation, type, Me.Body.Syntax, bag)
387Return Binder.GetSpecialTypeMember(F.Compilation.Assembly, member, Me.Body.Syntax, bag)
391Return Binder.GetWellKnownTypeMember(F.Compilation, member, Me.Body.Syntax, bag)
404Binder.ReportDiagnostic(bag, Body.Syntax, ERRID.ERR_NoGetProperty1, CustomSymbolDisplayFormatter.QualifiedName(symbol))
409Binder.ReportUseSite(bag, Body.Syntax, useSiteInfo)
Semantics\AccessCheck.vb (10)
1057Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritanceAccessMismatch5,
1067Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsTypeArgAccessMismatch7,
1079Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritanceAccessMismatchOutside3,
1088Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsTypeArgAccessMismatchOutside5,
1130Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatch6,
1140Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchOutsideAssembly4,
1192Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchImplementedEvent6,
1201Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatch6,
1213Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchImplementedEvent4,
1220Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchOutsideAssembly4,
Semantics\Conversions.vb (15)
926Public Shared Function ClassifyPredefinedConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
933binder As Binder,
1012Public Shared Function ClassifyConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
1042Private Shared Function ClassifyExpressionReclassification(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1136Public Shared Function ClassifyArrayLiteralConversion(source As BoundArrayLiteral, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1222Public Shared Function ClassifyInterpolatedStringConversion(source As BoundInterpolatedStringExpression, destination As TypeSymbol, binder As Binder) As ConversionKind
1235Public Shared Function ClassifyTupleConversion(source As BoundTupleLiteral, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1308Private Shared Function ClassifyArrayInitialization(source As BoundArrayInitialization, targetElementType As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1362Return Binder.ClassifyAddressOfConversion(source, destination)
1365Private Shared Function ClassifyQueryLambdaConversion(source As BoundQueryLambda, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1430binder As Binder,
1581Private Shared Function ClassifyNumericConstantConversion(constantExpression As BoundExpression, destination As TypeSymbol, binder As Binder) As ConversionKind
1783Public Shared Function ClassifyDirectCastConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1839Public Shared Function ClassifyTryCastConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2103Private Shared Function ClassifyUserDefinedConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
Semantics\Operators.vb (7)
500binder As Binder,
856binder As Binder,
2952Public Shared Function ResolveIsTrueOperator(argument As BoundExpression, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As OverloadResolutionResult
2966Public Shared Function ResolveIsFalseOperator(argument As BoundExpression, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As OverloadResolutionResult
2983binder As Binder,
3020binder As Binder,
3146binder As Binder,
Semantics\OverloadResolution.vb (31)
809binder As Binder,
847binder As Binder,
872binder As Binder,
1003binder As Binder,
1069binder As Binder,
1231binder As Binder,
1322binder As Binder,
1358binder As Binder,
1435binder As Binder,
1489binder As Binder,
1711binder As Binder,
1918binder As Binder,
2016binder As Binder,
2174binder As Binder
2227binder As Binder
2274binder As Binder
2332binder As Binder,
2590binder As Binder,
2857binder As Binder,
3204binder As Binder,
3283binder As Binder,
3402Dim visitor As New Binder.AttributeExpressionVisitor(binder, passedExpression.HasErrors)
3434binder As Binder,
3487binder As Binder,
3786binder As Binder,
3882binder As Binder,
4202binder As Binder
4360binder As Binder
4401binder As Binder
4859binder As Binder,
4908Binder.ReportDiagnostic(diagnostics,
Symbols\Source\ImplementsHelper.vb (19)
72binder As Binder) As QualifiedNameSyntax
94binder As Binder,
108Binder.ReportDiagnostic(diagBag, implementsClause, errorid, implementsClause.ImplementsKeyword.ToString())
113Binder.ReportDiagnostic(diagBag,
131Binder.ReportDiagnosticsIfObsolete(diagBag, implementingSym, implementedMember, implementsClause)
143Binder.ReportDiagnostic(diagBag,
169binder As Binder,
185Binder.ReportDiagnostic(diagBag, interfaceName, ERRID.ERR_InterfaceNotImplemented1,
209Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplementsMember3,
291Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplements3,
305Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplementsMember3,
364Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, binder.GetInaccessibleErrorInfo(foundMember))
377Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, binder.GetInaccessibleErrorInfo(accessorToCheck))
389Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_IdentNotMemberOfInterface4,
401Binder.ReportDiagnostic(diagBag, interfaceName, ERRID.ERR_BadImplementsType)
457binder As Binder,
488Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_PropertyDoesntImplementAllAccessors,
503Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_PropertyDoesntImplementInitOnly,
513Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_ImplementingInterfaceWithDifferentTupleNames5,
Symbols\Source\LocalSymbol.vb (25)
31binder As Binder,
45binder As Binder,
58binder As Binder,
78binder As Binder,
91binder As Binder,
162Friend Overridable Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
365Friend Overridable Function GetConstantValueDiagnostics(binder As Binder) As BindingDiagnosticBag
369Friend Overridable Function GetConstantExpression(binder As Binder) As BoundExpression
373Friend Overridable Function GetConstantValue(binder As Binder) As ConstantValue
487Protected ReadOnly _binder As Binder
490binder As Binder,
604Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
610Friend Overridable Function ComputeTypeInternal(containingBinder As Binder) As TypeSymbol
647binder As Binder,
683binder As Binder,
694Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol
747binder As Binder,
762Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
830binder As Binder,
845Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol
862Friend Overrides Function GetConstantExpression(localBinder As Binder) As BoundExpression
901Friend Overrides Function GetConstantValue(containingBinder As Binder) As ConstantValue
910Friend Overrides Function GetConstantValueDiagnostics(containingBinder As Binder) As BindingDiagnosticBag
1013Friend Overrides Function GetConstantValue(binder As Binder) As ConstantValue
1017Friend Overrides Function GetConstantValueDiagnostics(binder As Binder) As BindingDiagnosticBag
Symbols\Source\SourceComplexParameterSymbol.vb (6)
8Imports Microsoft.CodeAnalysis.VisualBasic.Binder
158Dim binder As Binder = BinderBuilder.CreateBinderForParameterDefaultValue(DirectCast(ContainingModule, SourceModuleSymbol),
166Binder.ReportDiagnostic(diagnostics, defaultSyntax.Value, ERRID.ERR_CircularEvaluation1, Me)
328binder As Binder,
344Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_ParamArrayNotArray)
349Binder.ReportDiagnostic(diagnostics, syntax.Identifier.Identifier, ERRID.ERR_ParamArrayRank)
Symbols\Source\SourceEnumConstantSymbol.vb (6)
18Public Shared Function CreateExplicitValuedConstant(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, diagnostics As BindingDiagnosticBag) As SourceEnumConstantSymbol
24Public Shared Function CreateImplicitValuedConstant(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, otherConstant As SourceEnumConstantSymbol, otherConstantOffset As Integer, diagnostics As BindingDiagnosticBag) As SourceEnumConstantSymbol
34Protected Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, diagnostics As BindingDiagnosticBag)
99Public Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, diagnostics As BindingDiagnosticBag)
114Public Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, initializer As EqualsValueSyntax, diagnostics As BindingDiagnosticBag)
130Public Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, otherConstant As SourceEnumConstantSymbol, otherConstantOffset As UInteger, diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceEventSymbol.vb (14)
66binder As Binder,
90Binder.ReportDiagnostic(diagnostics, identifier, ERRID.ERR_TypecharNotallowed)
171Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_EventTypeNotDelegate)
175Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_UnsupportedType1, type.Name)
178Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_EventDelegatesCantBeFunctions)
185Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_WinRTEventWithoutDelegate)
190Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_WinRTEventWithoutDelegate)
207Binder.ReportDiagnostic(diagnostics,
259Binder.ReportDiagnostic(diagnostics, implementsKeyword, ERRID.ERR_InterfaceEventCantUse1, implementsKeyword.ValueText)
263Binder.ReportDiagnostic(diagnostics, syntax.Modifiers.First(SyntaxKind.SharedKeyword), ERRID.ERR_SharedOnProcThatImpl)
336binder As Binder) As CustomEventAccessorSymbol
368binder.GetAccessorName(Me.Name, flags.ToMethodKind(), isWinMd:=False),
704binder As Binder,
739Private Function CreateBinderForTypeDeclaration() As Binder
Symbols\Source\SourceFile.vb (9)
205Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Strict")
207optionStrict = Binder.DecodeOnOff(optionStmtSyntax.ValueKeyword)
212Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Infer")
214optionInfer = Binder.DecodeOnOff(optionStmtSyntax.ValueKeyword)
219Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Explicit")
221optionExplicit = Binder.DecodeOnOff(optionStmtSyntax.ValueKeyword)
226Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Compare")
228optionCompareText = Binder.DecodeTextBinary(optionStmtSyntax.ValueKeyword)
238binder As Binder,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (20)
2525binder As Binder,
2631binder As Binder,
2665Binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_AutoPropertyInitializedInStructure)
2675binder As Binder,
2685binder As Binder,
2722Dim binder As Binder = BinderBuilder.CreateBinderForType(m_containingModule, syntaxRef.SyntaxTree, Me)
2787Dim binder As Binder = BinderBuilder.CreateBinderForType(m_containingModule, syntaxRef.SyntaxTree, Me)
2823Dim baseBinder As Binder = Nothing
2878binder As Binder,
2894binder As Binder,
2941Binder.ReportDiagnostic(diagBag,
2949Binder.ReportDiagnostic(diagBag, sym.Locations(0), ERRID.ERR_ShadowingGenericParamWithMember1, sym.Name)
2956binder As Binder,
3041Binder.ReportDiagnostic(
3061Binder.ReportDiagnostic(
3077Binder.ReportDiagnostic(
3097Binder.ReportDiagnostic(
3109Binder.ReportDiagnostic(
3183Friend Function CreateSharedConstructorsForConstFieldsIfRequired(binder As Binder, diagnostics As BindingDiagnosticBag) As MethodSymbol
3352originalBinder As Binder,
Symbols\Source\SourceMemberFieldSymbol.vb (16)
91Dim binder As Binder = BinderBuilder.CreateBinderForType(
116binder.ReportDiagnostic(diagBag, modifiedIdentifier.Identifier, ERRID.ERR_ConstAsNonConstant)
119binder.ReportDiagnostic(diagBag, declarator.AsClause.Type, ERRID.ERR_ConstAsNonConstant)
123binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_ConstantWithNoValue)
129binder.ReportDiagnostic(diagBag, declarator.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType)
143binder As Binder,
189VisualBasic.Binder.ModifiedIdentifierTypeDecoderContext.FieldType)
198binder As Binder,
213binder.ReportDiagnostic(diagnostics, modifiedIdentifier, ERRID.ERR_EventSourceIsArray)
222binder.ReportDiagnostic(diagnostics, identifier, ERRID.ERR_WithEventsAsStruct)
393binder As Binder,
498binder.ReportDiagnostic(diagBag, declarator, ERRID.ERR_InitWithMultipleDeclarators)
518binder.ReportDiagnostic(diagBag,
524binder.ReportDiagnostic(diagBag, DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.NewKeyword, ERRID.ERR_SharedStructMemberCannotSpecifyNew)
606binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_ArrayInitInStruct)
621binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_InitWithExplicitArraySizes)
Symbols\Source\SourceMemberMethodSymbol.vb (29)
72binder As Binder,
233Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_SecurityCriticalAsyncInClassOrStruct)
246Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_SynchronizedAsyncMethod)
262Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_PartialMethodParamArrayMismatch2, methodImpl, Me)
264Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_PartialMethodDefaultParameterValueMismatch2, methodImpl, Me)
312Dim binder As Binder = BinderBuilder.CreateBinderForType(sourceModule, Me.SyntaxTree, m_containingType)
320Binder.DisallowTypeCharacter(ident, diagBag, ERRID.ERR_TypeCharOnGenericParam)
326Binder.ReportDiagnostic(diagBag, typeParamSyntax, ERRID.ERR_TypeParamNameFunctionNameCollision)
394Dim binder As Binder = BinderBuilder.CreateBinderForType(sourceModule, Me.SyntaxTree, ContainingType)
398Binder.ReportDiagnostic(diagBag,
540Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
578Dim typeBinder As Binder = BinderBuilder.CreateBinderForType(sourceModule, Me.SyntaxTree, m_containingType)
594typeBinder As Binder,
612Binder.ReportDiagnostic(diagBag, singleHandleClause, ERRID.ERR_HandlesSyntaxInModule)
654Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_NoWithEventsVarOnHandlesList)
665Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_SharedEventNeedsSharedHandler)
670Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_SharedEventNeedsHandlerInTheSameType)
684Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_HandlesSyntaxInClass)
702Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_HandlesSyntaxInClass)
710Binder.ReportUseSite(diagBag, singleHandleClause.EventMember, eventContainingType)
726Binder.ReportDiagnostic(diagBag, singleHandleClause.EventMember, ERRID.ERR_EventNotFound1, eventName)
732Binder.ReportUseSite(diagBag, singleHandleClause.EventMember, eventSymbol)
735Binder.ReportUseSite(diagBag, singleHandleClause.EventMember, eventSymbol.AddMethod)
739Binder.ReportUseSite(diagBag, singleHandleClause.EventMember, eventSymbol.RemoveMethod)
828Dim resolutionResult = Binder.InterpretDelegateBinding(syntheticAddressOf, eventSymbol.Type, isForHandles:=True)
834Binder.ReportDiagnostic(diagBag, singleHandleClause.EventMember, ERRID.ERR_EventHandlerSignatureIncompatible2, Me.Name, eventName)
854binder As Binder,
892binder As Binder,
930binder As Binder,
Symbols\Source\SourceMethodSymbol.vb (37)
78binder As Binder,
99binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_StructsCannotHandleEvents)
103binder.ReportDiagnostic(diagBag, syntax.HandlesClause, ERRID.ERR_BadInterfaceMethodFlags1, syntax.HandlesClause.HandlesKeyword.ToString)
107binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_HandlesInvalidOnGenericMethod)
126binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_PartialMethodsMustNotBeAsync1, name)
143Private Shared Sub ReportPartialMethodErrors(modifiers As SyntaxTokenList, binder As Binder, diagBag As DiagnosticBag)
163binder.ReportDiagnostic(diagBag, token,
183binder.ReportDiagnostic(diagBag, location,
210binder.ReportDiagnostic(diagBag, partialToken, ERRID.ERR_PartialMethodsMustBePrivate)
219binder As Binder,
304binder As Binder,
366binder.ReportDiagnostic(diagBag, syntax.OperatorToken, paramCountMismatchERRID, SyntaxFacts.GetText(syntax.OperatorToken.Kind))
380binder As Binder,
396binder.ReportDiagnostic(diagBag, syntax.ParameterList, ERRID.ERR_SharedConstructorWithParams)
408binder.ReportDiagnostic(diagBag, syntax.NewKeyword, ERRID.ERR_NewInStruct)
418binder As Binder,
445binder As Binder,
470binder.ReportDiagnostic(diagBag, syntax.OperatorToken, ERRID.ERR_OperatorMustBeShared)
476binder.ReportDiagnostic(diagBag, syntax.OperatorToken, ERRID.ERR_ConvMustBeWideningOrNarrowing)
492binder As Binder,
894Dim binder As Binder = BinderBuilder.CreateBinderForType(Me.ContainingSourceModule, Me.SyntaxTree, m_containingType)
899binder.ReportDiagnostic(diagnostics, syntax.VarianceKeyword, ERRID.ERR_VarianceDisallowedHere)
1004Dim currentModifier As SourceMemberFlags = Binder.MapKeywordToFlag(keywordSyntax)
1164Dim binder As Binder = BinderBuilder.CreateBinderForType(containingSourceType.ContainingSourceModule, syntaxTree, containingSourceType)
1176Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
1737Binder.ReportDiagnostic(diagnostics, arguments.AttributeSyntaxOpt.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecurityCritical")
1740Binder.ReportDiagnostic(diagnostics, arguments.AttributeSyntaxOpt.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecuritySafeCritical")
1812Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_DllImportOnResumableMethod)
2183Private Function CreateBinderForMethodDeclaration(sourceModule As SourceModuleSymbol) As Binder
2184Dim binder As Binder = BinderBuilder.CreateBinderForMethodDeclaration(sourceModule, Me.SyntaxTree, Me)
2197Dim binder As Binder = CreateBinderForMethodDeclaration(sourceModule)
2240Dim binder As Binder = CreateBinderForMethodDeclaration(sourceModule)
2269binder.DisallowTypeCharacter(GetNameToken(methodStatement), diagBag, ERRID.ERR_TypeCharOnSub)
2303binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
2309binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_BadIteratorReturn)
2318binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_BadAsyncReturn)
2329binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_BadIteratorReturn)
Symbols\Source\SourceNamedTypeSymbol.vb (55)
155Private Function CreateLocationSpecificBinderForType(tree As SyntaxTree, location As BindingLocation) As Binder
157Dim binder As Binder = BinderBuilder.CreateBinderForType(ContainingSourceModule, tree, Me)
177Dim binder As Binder = BinderBuilder.CreateBinderForType(ContainingSourceModule, syntaxRef.SyntaxTree, Me)
225Private Function AddMembersInPart(binder As Binder,
282binder As Binder,
295Binder.ReportDiagnostic(diagBag,
316Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_PartialTypeBadMustInherit1, id.ToString())
381Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_PrivateTypeOutsideType)
385Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_ShadowingTypeOutsideClass1, id.ToString())
394Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_ProtectedTypeOutsideClass)
402binder As Binder,
470binder As Binder,
477Binder.DisallowTypeCharacter(id, diagBag)
528Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_TypeClashesWithVbCoreType4,
541Binder.ReportDiagnostic(diagBag, location, ERRID.ERR_TypeClashesWithVbCoreType4,
560Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_TypeConflict6,
615Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_CollisionWithPublicTypeInModule, Me, collision.ContainingModule)
625Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_ShadowingGenericParamWithMember1, Me.Name)
644Dim binder As Binder = BinderBuilder.CreateBinderForType(ContainingSourceModule, tree, Me)
684Binder.ReportDiagnostic(diagBag, id, errorCode,
694bodyBinder As Binder,
717Binder.ReportDiagnostic(diagnostics, syntax.EnumStatement.Identifier, ERRID.ERR_BadEmptyEnum1, syntax.EnumStatement.Identifier.ValueText)
825Dim binder As Binder = CreateLocationSpecificBinderForType(tree, BindingLocation.GenericConstraintsClause)
830Binder.DisallowTypeCharacter(identSymbol, diagBag, ERRID.ERR_TypeCharOnGenericParam)
838variance = Binder.DecodeVariance(varianceKeyword)
840Binder.ReportDiagnostic(diagBag, varianceKeyword, ERRID.ERR_VarianceDisallowedHere)
850Binder.ReportDiagnostic(diagBag, identSymbol, ERRID.ERR_PartialTypeTypeParamNameMismatch3, name, typeParameter.Name, Me.Name)
855Binder.ReportDiagnostic(diagBag, identSymbol, ERRID.ERR_PartialTypeConstraintMismatch1, Me.Name)
962Binder.ReportDiagnostic(diagBag, s.Locations(0), ERRID.WRN_ShadowingGenericParamWithParam1, s.Name)
965Binder.ReportDiagnostic(diagBag, s.Locations(0), ERRID.ERR_DuplicateTypeParamName1, s.Name)
1002Dim binder As Binder = CreateLocationSpecificBinderForType(tree, BindingLocation.BaseTypes)
1031Dim binder As Binder = CreateLocationSpecificBinderForType(tree, BindingLocation.BaseTypes)
1062Binder.ReportDiagnostic(diagBag, baseDecl, errId)
1073binder As Binder,
1089Binder.ReportDiagnostic(diagBag, inheritsDeclaration, ERRID.ERR_MultipleExtends)
1111Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_GenericParamBase2, "Class", Me.Name)
1115Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromNonClass)
1123Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromRestrictedType1, baseClassType)
1127Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromCantInherit3, Me.Name, baseClassType.Name, baseClassType.GetKindText())
1135Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_BaseMismatchForPartialClass3,
1152binder As Binder,
1173Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_DuplicateInInherits1, typeSymbol)
1182Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_GenericParamBase2, "Interface", Me.Name)
1198Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromNonInterface)
1209binder As Binder,
1228Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InterfaceImplementedTwice1, typeSymbol)
1233Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_ImplementsGenericParam, "Interface", Me.Name)
1243Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_BadImplementsType)
1318Dim binder As Binder = CreateLocationSpecificBinderForType(part.SyntaxTree, BindingLocation.BaseTypes)
1640Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_GenericClassCannotInheritAttr)
1755Dim binder As Binder = BinderBuilder.CreateBinderForType(ContainingSourceModule, tree, Me)
1774bodyBinder As Binder,
1784Binder.ReportDiagnostic(diagnostics, underlyingType.Type, ERRID.ERR_InvalidEnumBase)
2394Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.Microsoft_VisualBasic_CompilerServices_StandardModuleAttribute__ctor,
2660Dim binder As Binder = BinderBuilder.CreateBinderForType(ContainingSourceModule, syntaxRef.SyntaxTree, Me)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (23)
139Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassDuplicateGuids1, comClass.Name)
145Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.GuidAttribute.Name)
150Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ClassInterfaceAttribute.Name)
155Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ComSourceInterfacesAttribute.Name)
160Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ComVisibleAttribute.Name & "(False)")
165Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassRequiresPublicClass1, comClass.Name)
171Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassRequiresPublicClass2,
182Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassCantBeAbstract0)
193Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.WRN_ComClassNoMembers1, comClass.Name)
210Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_GuidAttribute__ctor,
217Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_ClassInterfaceAttribute__ctorClassInterfaceType,
224Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_ComSourceInterfacesAttribute__ctorString,
229Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_InterfaceTypeAttribute__ctorInt16,
237Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_ComVisibleAttribute__ctor,
264Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_DispIdAttribute__ctor,
272Binder.ReportUseSiteInfoForSynthesizedAttribute(WellKnownMember.System_Reflection_DefaultMemberAttribute__ctor,
288Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_BadAttributeUuid2, AttributeDescription.VisualBasicComClassAttribute.Name, id)
330Binder.ReportDiagnostic(diagnostics, member.Locations(0), ERRID.ERR_MemberConflictWithSynth4,
344Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.WRN_ComClassInterfaceShadows5,
427Binder.ReportDiagnostic(diagnostics, prop.Locations(0), ERRID.WRN_ComClassPropertySetObject1, prop)
453Binder.ReportDiagnostic(diagnostics, member.Locations(0), ERRID.ERR_ComClassGenericMethod)
494Binder.ReportDiagnostic(diagnostics, target.Locations(0), ERRID.ERR_ComClassReservedDispIdZero1, target.Name)
500Binder.ReportDiagnostic(diagnostics, target.Locations(0), ERRID.ERR_ComClassReservedDispId1, target.Name)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (11)
19Dim binder As Binder = Nothing
122Private Function GetMyGroupCollectionAttributeData(diagnostics As BindingDiagnosticBag, <Out> ByRef binder As Binder, <Out> ByRef attributeSyntax As AttributeSyntax) As VisualBasicAttributeData
142Dim attributeType As NamedTypeSymbol = Binder.BindAttributeType(binder, attr, Me, BindingDiagnosticBag.Discarded)
147binder.ReportDiagnostic(diagnostics, attr, ERRID.ERR_MyGroupCollectionAttributeCycle)
170binder.ReportDiagnostic(diagnostics, expression, ERRID.ERR_LiteralExpected)
237binder As Binder,
317Dim binder As Binder = BinderBuilder.CreateBinderForType(ContainingSourceModule, syntaxRef.SyntaxTree, Me)
374binder As Binder,
396ConflictsWithExistingMemberOrType(binder.GetAccessorName(propertyName, MethodKind.PropertyGet, False), membersBuilder, nestedTypes, conflictsWith) OrElse
397(disposeMethod.Length > 0 AndAlso ConflictsWithExistingMemberOrType(binder.GetAccessorName(propertyName, MethodKind.PropertySet, isWinMd), membersBuilder, nestedTypes, conflictsWith)) OrElse
399binder.ReportDiagnostic(diagnostics, attributeSyntax, ERRID.ERR_PropertyNameConflictInMyCollection, conflictsWith, targetType)
Symbols\Source\SourcePropertyAccessorSymbol.vb (8)
73binder As Binder,
111Binder.GetAccessorName(propertySymbol.Name, methodKind, propertySymbol.IsCompilationOutputWinMdObj()),
239Dim binder As Binder = BinderBuilder.CreateBinderForType(sourceModule, Me.SyntaxTree, Me.m_property.ContainingSourceType)
283Dim binder As Binder = BinderBuilder.CreateBinderForType(sourceModule, Me.SyntaxTree, Me.m_property.ContainingSourceType)
387binder As Binder,
421Binder.CheckParameterNameNotDuplicate(parameters, nPropertyParameters, paramSyntax, param, diagnostics)
458Private Shared ReadOnly s_checkParameterModifierCallback As Binder.CheckParameterModifierDelegate = AddressOf CheckParameterModifier
469Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SourcePropertySymbol.vb (12)
81bodyBinder As Binder,
202Binder.GetAccessorName(prop.Name, MethodKind.PropertyGet, isWinMd:=False),
211Binder.GetAccessorName(prop.Name, MethodKind.PropertySet,
230bodyBinder As Binder,
379Binder.ReportDiagnostic(diagnostics, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
391Binder.ReportDiagnostic(diagnostics, errorLocation, ERRID.ERR_BadIteratorReturn)
1017Private Function CreateBinderForTypeDeclaration() As Binder
1025bodyBinder As Binder,
1066binder As Binder,
1101bodyBinder As Binder,
1109Binder.ReportDiagnostic(diagnostics,
1155Private Shared Sub ReportAccessorAccessibilityError(binder As Binder,
Symbols\Source\SynthesizedEventAccessorSymbol.vb (8)
56diagnostics.Add(Binder.GetUseSiteInfoForWellKnownType(parameterType), Me.Locations(0))
84useSiteInfo = If(Me.MethodKind = MethodKind.EventRemove, Binder.GetUseSiteInfoForSpecialType(type), Nothing)
87useSiteInfo = Binder.GetUseSiteInfoForWellKnownType(type)
108Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
154Dim getOrCreateMethod As MethodSymbol = DirectCast(Binder.GetWellKnownTypeMember(
173Dim processHandlerMethod As MethodSymbol = DirectCast(Binder.GetWellKnownTypeMember(
286Dim updateMethod As MethodSymbol = DirectCast(Binder.GetSpecialTypeMember(compilation.Assembly, updateMethodId, useSiteInfo), MethodSymbol)
304Dim compareExchangeMethod As MethodSymbol = DirectCast(Binder.GetWellKnownTypeMember(compilation, WellKnownMember.System_Threading_Interlocked__CompareExchange_T, useSiteInfo), MethodSymbol)
Symbols\Source\UnboundLambdaParameterSymbol.vb (5)
67binder As Binder,
71Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.ParamArrayKeyword), ERRID.ERR_ParamArrayIllegal1, StringConstants.Lambda)
76Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.OptionalKeyword), ERRID.ERR_OptionalIllegal1, StringConstants.Lambda)
80Binder.ReportDiagnostic(diagBag, syntax.AttributeLists.Node, ERRID.ERR_LambdasCannotHaveAttributes)
87Dim paramType As TypeSymbol = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagBag, Binder.ModifiedIdentifierTypeDecoderContext.LambdaParameterType)
Symbols\Symbol_Attributes.vb (11)
250Dim binders As ImmutableArray(Of Binder) = Nothing
266Dim boundAttributeTypes As ImmutableArray(Of NamedTypeSymbol) = Binder.BindAttributeTypes(binders, attributesToBind, Me, diagnostics)
276Binder.GetAttributes(binders, attributesToBind, boundAttributeTypes, attributeBuilder, Me, diagnostics)
302<Out> ByRef binders As ImmutableArray(Of Binder)) As ImmutableArray(Of AttributeSyntax)
307Dim bindersBuilder As ArrayBuilder(Of Binder) = Nothing
321bindersBuilder = New ArrayBuilder(Of Binder)()
346binders = ImmutableArray(Of Binder).Empty
351Friend Function GetAttributeBinder(syntaxList As SyntaxList(Of AttributeListSyntax), sourceModule As SourceModuleSymbol) As Binder
410Private Function EarlyDecodeWellKnownAttributes(binders As ImmutableArray(Of Binder),
442binders As ImmutableArray(Of Binder),
464Dim binder As Binder = binders(i)
Symbols\Tuples\TupleTypeSymbol.vb (5)
551Binder.ReportUseSite(diagnostics, syntax, wellKnownType)
560Binder.ReportUseSite(diagnostics, syntax, wellKnownType2)
576Binder.ReportUseSite(diagnostics, syntax, wellKnownType)
580Binder.ReportUseSite(diagnostics, syntax, wellKnownType2)
649Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MissingRuntimeHelper, type.Name & "."c & descriptor.Name)