105 references to GetLocation
Microsoft.CodeAnalysis.VisualBasic (87)
Binding\Binder_AnonymousTypes.vb (1)
201Me._fields(fieldIndex) = New AnonymousTypeField(fieldName, fieldNode.GetLocation(), fieldIsKey)
Binding\Binder_Constraints.vb (4)
58constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.Constructor, syntax.GetLocation())) 68constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, syntax.GetLocation())) 80constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ValueType, syntax.GetLocation())) 90constraintsBuilder.Add(New TypeParameterConstraint(constraintType, syntax.GetLocation()))
Binding\Binder_Expressions.vb (4)
362elementLocations.Add(nameSyntax.GetLocation) 370elementLocations.Add(argumentSyntax.GetLocation) 395inferredType = TupleTypeSymbol.Create(node.GetLocation, elements, locations, elementNames, Me.Compilation, 3024Dim referenceLocation As Location = node.GetLocation()
Binding\Binder_Lambda.vb (1)
801parameters(i).Name, parameters(i).Type, sourceParameter.Syntax.GetLocation(), parameters(i).IsByRef)
Binding\Binder_Query.vb (12)
257fields(i) = New AnonymousTypeField(rangeVar.Name, rangeVar.Type, rangeVar.Syntax.GetLocation(), isKeyOrByRef:=True) 2184Dim param = New BoundLambdaParameterSymbol(name, ordinal, type, isByRef:=False, syntaxNode:=syntaxNode, location:=syntaxNode.GetLocation()) 2194Dim param = New BoundLambdaParameterSymbol(name, ordinal, type, isByRef:=False, syntaxNode:=syntaxNode, location:=syntaxNode.GetLocation()) 2787rangeVar.Name, rangeVar.Type, rangeVar.Syntax.GetLocation(), isKeyOrByRef:=True) 3214fields(j) = New AnonymousTypeField(leftVar.Name, leftVar.Type, leftVar.Syntax.GetLocation(), isKeyOrByRef:=True) 3236rangeVarOpt.Name, rangeVarOpt.Type, rangeVarOpt.Syntax.GetLocation(), isKeyOrByRef:=True) 3808keysRangeVariables(0).Syntax.GetLocation(), isKeyOrByRef:=True) 3818keysRangeVariablesPart1(0).Syntax.GetLocation(), 3824keysRangeVariablesPart2(0).Syntax.GetLocation(), 3836fields(i) = New AnonymousTypeField(rangeVar.Name, rangeVar.Type, rangeVar.Syntax.GetLocation(), isKeyOrByRef:=True) 3851fields(keys) = New AnonymousTypeField(rangeVar.Name, rangeVar.Type, rangeVar.Syntax.GetLocation(), isKeyOrByRef:=True) 3864rangeVar.Name, rangeVar.Type, rangeVar.Syntax.GetLocation(), isKeyOrByRef:=True)
Binding\Binder_Symbols.vb (1)
674Return TupleTypeSymbol.Create(syntax.GetLocation,
Binding\Binder_Utils.vb (2)
311diagBag.Add(pair.UseSiteInfo, syntaxTypeArgument.GetLocation()) 1001Dim location = identifier.GetLocation()
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (5)
291Me._diagnostics.Add(ERRID.WRN_XMLDocDuplicateXMLNode1, node2.Node.GetLocation(), tagName) 589Me._diagnostics.Add(ERRID.WRN_XMLDocParseError1, trivia.GetLocation(), GetDescription(ex)) 671Me._diagnostics.Add(missingNameValueError, element.GetLocation()) 686Me._diagnostics.Add(ERRID.WRN_XMLDocMoreThanOneCommentBlock, theOnlyDocCommentTrivia.GetLocation()) 704Me._diagnostics.Add(ERRID.WRN_XMLDocBadXMLLine, theOnlyDocCommentTrivia.GetLocation())
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
593location = originatingSyntax.GetLocation()
Compilation\DocumentationComments\DocumentationCommentWalker.vb (2)
281ProcessBadNameInCrefAttribute(crefAttr, crefAttr.GetLocation, errid.Value) 307Dim location = If(errorLocation, reference.GetLocation)
Compilation\SyntaxTreeSemanticModel.vb (1)
1340Return New AliasSymbol(binder.Compilation, binder.ContainingNamespaceOrType, aliasName, targetSymbol, declarationSyntax.GetLocation())
Errors\DiagnosticBagExtensions.vb (1)
63Return Not useSiteDiagnostics.IsNullOrEmpty AndAlso diagnostics.Add(node.GetLocation, useSiteDiagnostics)
Errors\MessageProvider.vb (2)
515diagnostics.Add(ERRID.ERR_AttributeParameterRequired1, node.Name.GetLocation(), parameterName) 520diagnostics.Add(ERRID.ERR_AttributeParameterRequired2, node.Name.GetLocation(), parameterName1, parameterName2)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1387Me.Diagnostics.Add(ERRID.ERR_CannotUseOnErrorGotoWithClosure, resumeLabel.ResumeStatement.GetLocation(),
Symbols\Attributes\AttributeData.vb (4)
240diagnostics.Add(If(nodeOpt IsNot Nothing, nodeOpt.Name.GetLocation, NoLocation.Singleton), useSiteInfo) 245If(nodeOpt IsNot Nothing, nodeOpt.Name.GetLocation, NoLocation.Singleton)) 260Return (arg.ToString(), arg.GetLocation()) 262Return (value.ToString(Globalization.CultureInfo.InvariantCulture), nodeOpt.GetLocation())
Symbols\Source\ImplementsHelper.vb (1)
497Not InternalSyntax.Parser.CheckFeatureAvailability(diagBag, implementedMemberSyntax.GetLocation(),
Symbols\Source\RangeVariableSymbol.vb (1)
267Return ImmutableArray.Create(Of Location)(_syntax.GetLocation())
Symbols\Source\SourceAssemblySymbol.vb (4)
958diagnostics.Add(ERRID.ERR_FriendAssemblyNameInvalid, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), "") 965diagnostics.Add(ERRID.ERR_FriendAssemblyNameInvalid, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName) 973diagnostics.Add(ERRID.ERR_FriendAssemblyBadArguments, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName) 992locationAndValue = New Tuple(Of Location, String)(If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName)
Symbols\Source\SourceEventSymbol.vb (2)
366Dim location = syntax.GetLocation() 736Return implementingSyntax.GetLocation()
Symbols\Source\SourceMemberContainerTypeSymbol.vb (10)
983location = asClause.Type.GetLocation() 1020location = syntax.AsClause.Type.GetLocation() 1091location = syntax.AsClause.Type.GetLocation() 1127location = syntax.AsClause.Type.GetLocation() 2553diagBag.Add(ERRID.ERR_InvalidInNamespace, fieldDecl.GetLocation()) 2568diagBag.Add(ERRID.ERR_InvalidInNamespace, methodDecl.GetLocation()) 2587diagBag.Add(ERRID.ERR_InvalidInNamespace, methodDecl.GetLocation()) 2599diagBag.Add(ERRID.ERR_InvalidInNamespace, propertyDecl.PropertyStatement.GetLocation()) 2608diagBag.Add(ERRID.ERR_InvalidInNamespace, propertyDecl.GetLocation()) 2635diagBag.Add(ERRID.ERR_InvalidInNamespace, memberSyntax.GetLocation())
Symbols\Source\SourceMethodSymbol.vb (10)
264diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.GetLocation(), name) 273diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.GetLocation(), name) 1171Return implementingSyntax.GetLocation() 1810diagnostics.Add(ERRID.ERR_DllImportNotLegalOnDeclare, syntax.Name.GetLocation()) 1814diagnostics.Add(ERRID.ERR_DllImportNotLegalOnGetOrSet, syntax.Name.GetLocation()) 1818diagnostics.Add(ERRID.ERR_DllImportNotLegalOnEventMethod, syntax.Name.GetLocation()) 1823diagnostics.Add(ERRID.ERR_DllImportOnInterfaceMethod, syntax.Name.GetLocation()) 1828diagnostics.Add(ERRID.ERR_DllImportOnGenericSubOrFunction, syntax.Name.GetLocation()) 1833diagnostics.Add(ERRID.ERR_DllImportOnInstanceMethod, syntax.Name.GetLocation()) 1852diagnostics.Add(ERRID.ERR_DllImportOnNonEmptySubOrFunction, syntax.Name.GetLocation())
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1339backupLocation = t.GetLocation()
Symbols\Source\SourceNamespaceSymbol.vb (3)
406Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_TypecharNotallowed), node.GetLocation()) 424Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_NamespaceCaseMismatch3, node.Identifier.ValueText, Me.Name, path), node.GetLocation()) 443Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NestedGlobalNamespace), node.GetLocation())
Symbols\Source\SourcePropertySymbol.vb (1)
1060Return implementingSyntax.GetLocation()
Symbols\Symbol_Attributes.vb (10)
516diagnostics.Add(ERRID.ERR_InvalidMultipleAttributeUsage1, node.GetLocation(), CustomSymbolDisplayFormatter.ShortErrorName(attributeType)) 542diagnostics.Add(ERRID.ERR_InvalidAssemblyAttribute1, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType)) 545diagnostics.Add(ERRID.ERR_InvalidModuleAttribute1, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType)) 555diagnostics.Add(ERRID.ERR_InvalidAttributeUsageOnAccessor, node.Name.GetLocation, 562diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, 574diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType), ownerName) 577diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType), 581diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType), 594diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidTarget, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType)) 607diagnostics.Add(useSiteInfo, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton))
Syntax\SyntaxFacts.vb (1)
1116If p.GetLocation.SourceSpan.Start < token.SpanStart Then
Syntax\VisualBasicWarningStateMap.vb (1)
91entries(index) = New WarningStateMapEntry(currentDirective.GetLocation().SourceSpan.End, accumulatedGeneralWarningState, accumulatedSpecificWarningState)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\QualifyMemberAccess\VisualBasicQualifyMemberAccessDiagnosticAnalyzer.vb (1)
43Return unaryExpressionSyntax.Operand.GetLocation()
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
32syntaxContext.ReportDiagnostic(Diagnostic.Create(Descriptor, modifier.GetLocation(), additionalLocations:={parameterSyntax.GetLocation()}))
src\roslyn\src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.GetLocation(), styleOption.Notification,
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (1)
56nameColonEquals.GetLocation(),
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
76ImmutableArray.Create(notExpression.GetLocation()),
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Completion\CompletionProviders\OverrideCompletionProvider.vb (1)
205Return New TextSpan(methodStatement.GetLocation().SourceSpan.End, 0)
GenerateType\VisualBasicGenerateTypeService.vb (1)
432DirectCast(enclosingNamespace.Parent, NamespaceBlockSyntax).EndNamespaceStatement.GetLocation())
src\roslyn\src\Analyzers\VisualBasic\Analyzers\QualifyMemberAccess\VisualBasicQualifyMemberAccessDiagnosticAnalyzer.vb (1)
43Return unaryExpressionSyntax.Operand.GetLocation()
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
32syntaxContext.ReportDiagnostic(Diagnostic.Create(Descriptor, modifier.GetLocation(), additionalLocations:={parameterSyntax.GetLocation()}))
src\roslyn\src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.GetLocation(), styleOption.Notification,
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (1)
56nameColonEquals.GetLocation(),
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
76ImmutableArray.Create(notExpression.GetLocation()),
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (5)
Microsoft.NetCore.Analyzers\Runtime\BasicSpecifyCultureForToLowerAndToUpper.vb (2)
20Return DirectCast(invocation.Expression, MemberAccessExpressionSyntax).Name.GetLocation() 25Return DirectCast(node, MemberAccessExpressionSyntax).Name.GetLocation()
Microsoft.NetCore.Analyzers\Runtime\BasicUseOrdinalStringComparison.vb (3)
19Return DirectCast(invocation.Expression, MemberAccessExpressionSyntax).Name.GetLocation() 21Return DirectCast(invocation.Expression, ConditionalAccessExpressionSyntax).WhenNotNull.GetLocation() 24Return invocation.GetLocation()
System.Windows.Forms.Analyzers.VisualBasic (1)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.vb (1)
96invocationExpr.GetLocation())