114 overrides of Locations
Microsoft.CodeAnalysis.VisualBasic (102)
Binding\Binder_XmlLiterals.vb (2)
1657Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1902Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
268Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
94Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Semantics\Operators.vb (1)
3417Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AliasSymbol.vb (1)
118Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
77Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
170Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (1)
191Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
269Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
45Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\ArrayTypeSymbol.vb (1)
282Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\ErrorMethodSymbol.vb (1)
180Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\ErrorTypeSymbol.vb (1)
127Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\IndexedTypeParameterSymbol.vb (1)
143Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\InstanceErrorTypeSymbol.vb (1)
236Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\LabelSymbol.vb (1)
68Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\MergedNamespaceSymbol.vb (1)
338Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
132Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEEventSymbol.vb (1)
241Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
344Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
878Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
258Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
816Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PENamespaceSymbol.vb (1)
126Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEParameterSymbol.vb (1)
454Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
313Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
218Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\MissingAssemblySymbol.vb (1)
97Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\MissingModuleSymbol.vb (1)
94Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\MissingNamespaceSymbol.vb (1)
85Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\PreprocessingSymbol.vb (1)
28Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\ReducedExtensionMethodSymbol.vb (3)
589Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 752Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 961Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingAssemblySymbol.vb (1)
156Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
160Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
209Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
256Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
154Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
431Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
126Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
204Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
187Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
113Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SignatureOnlyMethodSymbol.vb (1)
198Public Overrides ReadOnly Property Locations() As ImmutableArray(Of Location)
Symbols\SignatureOnlyParameterSymbol.vb (1)
143Public Overrides ReadOnly Property Locations() As ImmutableArray(Of Location)
Symbols\SignatureOnlyPropertySymbol.vb (1)
214Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\CrefTypeParameterSymbol.vb (1)
98Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\LambdaParameterSymbol.vb (1)
137Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\LambdaSymbol.vb (1)
254Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\LocalSymbol.vb (1)
192Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\MeParameterSymbol.vb (1)
42Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\RangeVariableSymbol.vb (1)
53Public MustOverride Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceAssemblySymbol.vb (1)
803Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceClonedParameterSymbol.vb (1)
60Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceEventSymbol.vb (1)
442Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceFieldSymbol.vb (1)
599Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1385Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceMethodSymbol.vb (1)
831Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceModuleSymbol.vb (1)
202Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (4)
870Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1206Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1589Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1783Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceNamespaceSymbol.vb (1)
377Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceParameterSymbol.vb (1)
69Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourcePropertySymbol.vb (1)
448Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceTypeParameterSymbol.vb (2)
246Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 324Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
133Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SynthesizedFieldSymbol.vb (1)
130Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
99Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
107Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedEventSymbol.vb (1)
109Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedFieldSymbol.vb (1)
150Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedMethodSymbol.vb (1)
267Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedNamedType.vb (1)
218Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedParameterSymbol.vb (1)
86Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedPropertySymbol.vb (1)
190Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SubstitutedTypeParameterSymbol.vb (1)
135Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedAccessor.vb (1)
122Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (1)
83Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (1)
103Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
179Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
294Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
219Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
139Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
166Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (1)
152Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
174Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
179Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (1)
208Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedRegularMethodBase.vb (1)
129Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\UnboundGenericType.vb (1)
215Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedEventSymbol.vb (1)
46Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedFieldSymbol.vb (1)
112Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
66Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
90Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedParameterSymbol.vb (1)
55Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedPropertySymbol.vb (1)
65Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
70Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (7)
Symbols\DisplayClassVariable.vb (1)
180Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EEMethodSymbol.vb (1)
354Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EENamedTypeSymbol.vb (1)
263Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EETypeParameterSymbol.vb (1)
67Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\PlaceholderMethodSymbol.vb (1)
131Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SimpleTypeParameterSymbol.vb (1)
85Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedContextMethodSymbol.vb (1)
57Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (5)
MockSymbols.vb (5)
82Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 247Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 559Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 693Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 767Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
298 references to Locations
Microsoft.CodeAnalysis.VisualBasic (168)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
261Return Me.symbol.Kind = SymbolKind.Method AndAlso DirectCast(Me.symbol, MethodSymbol).Locations.Length = 1
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1102Dim locations As ImmutableArray(Of Location) = sym.Locations
Binding\Binder_Conversions.vb (1)
1559ReportDiagnostic(diagnostics, lambda.LambdaSymbol.Parameters(delegateParam.Ordinal).Locations(0),
Binding\Binder_XmlLiterals.vb (2)
1659Return _originalDefinition.Locations 1904Return _originalDefinition.Locations
Binding\MemberSemanticModel.vb (1)
529For Each location In symbol.Locations
Compilation\ClsComplianceChecker.vb (4)
766_diagnostics.ReportUseSite(attributeClass, If(symbol.Locations.IsEmpty, NoLocation.Singleton, symbol.Locations(0))) 834Dim location = If(symbol.Locations.IsEmpty, NoLocation.Singleton, symbol.Locations(0))
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
667smallestSymbol.Locations(0), symbol.Locations(0)) > 0 Then
Compilation\MethodCompiler.vb (13)
420method.ContainingType.Locations(0).PossiblyEmbeddedOrMySourceTree(), 1148referencingMethod.Locations(0))) 1929containingType.Locations(0))) 1934constructor.Locations(0))) 1943Dim locations As ImmutableArray(Of Location) = If(constructor.IsImplicitlyDeclared, containingType.Locations, constructor.Locations) 1956containingType.Locations(0))) 1961constructor.Locations(0))) 1970containingType.Locations(0))) 1990containingType.Locations(0), 1996containingType.Locations(0), 2006constructor.Locations(0), 2012constructor.Locations(0),
Compilation\SyntaxTreeSemanticModel.vb (2)
867For Each location In symbol.Locations 1143For Each location In symbol.Locations
Compilation\VisualBasicCompilation.vb (1)
1593diagnostics.Add(ERRID.WRN_MainIgnored, main.Locations.First(), main)
Emit\PEModuleBuilder.vb (3)
300For Each loc In symbol.Locations 655If symbol.Locations.Length = 0 Then 687For Each loc In symbol.Locations
Errors\CustomDiagnostics.vb (2)
55Return _badSymbol.Locations 96For Each l In sym.Locations
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
112sourceMethod.ContainingType.Locations(0).PossiblyEmbeddedOrMySourceTree(), 121Dim syntaxTree = containingType.Locations.FirstOrDefault()?.SourceTree
Semantics\Operators.vb (12)
336diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresBoolReturnType1, SyntaxFacts.GetText(SyntaxKind.IsTrueKeyword)), method.Locations(0)) 343diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresBoolReturnType1, SyntaxFacts.GetText(SyntaxKind.IsFalseKeyword)), method.Locations(0)) 364SyntaxKind.GreaterThanGreaterThanToken))), method.Locations(0)) 391diagnosticsOpt.Add(ErrorFactory.ErrorInfo(targetMismatchError, method.ContainingSymbol), method.Locations(0)) 403diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionFromObject), method.Locations(0)) 410diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToObject), method.Locations(0)) 417diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionFromInterfaceType), method.Locations(0)) 424diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToInterfaceType), method.Locations(0)) 433diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToSameType), method.Locations(0)) 444ERRID.ERR_ConversionToDerivedType)), method.Locations(0)) 453ERRID.ERR_ConversionToBaseType)), method.Locations(0)) 463diagnosticsOpt.Add(method.Locations(0), useSiteInfo)
Symbols\MergedNamespaceSymbol.vb (1)
340Return ImmutableArray.CreateRange(Of Location)((From ns In _namespacesToMerge, loc In ns.Locations Select loc))
Symbols\Metadata\PE\PEParameterSymbol.vb (1)
456Return _containingSymbol.Locations
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
220Return _containingSymbol.Locations
Symbols\MethodSymbolExtensions.vb (1)
50For Each location In symbol.Locations
Symbols\NamedTypeSymbolExtensions.vb (3)
29For Each methodLoc In child.Locations 39For Each methodLoc In partialImpl.Locations 60For Each methodLoc In child.Locations
Symbols\ReducedExtensionMethodSymbol.vb (3)
591Return _curriedFromMethod.Locations 754Return _curriedFromTypeParameter.Locations 963Return m_CurriedFromParameter.Locations
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
162Return _underlyingEvent.Locations
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
211Return _underlyingField.Locations
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
258Return _underlyingMethod.Locations
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
433Return _underlyingType.Locations
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
128Return _underlyingNamespace.Locations
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
206Return _underlyingParameter.Locations
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
189Return _underlyingProperty.Locations
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
115Return _underlyingTypeParameter.Locations
Symbols\Source\MeParameterSymbol.vb (1)
44Return If(_container Is Nothing, ImmutableArray(Of Location).Empty, _container.Locations)
Symbols\Source\OverloadingHelper.vb (4)
116If firstOverrideName Is Nothing OrElse compilation.CompareSourceLocations(member.Locations(0), locationOfFirstOverride) < 0 Then 118locationOfFirstOverride = member.Locations(0) 134Dim memberLocation = member.Locations(0) 156container.Locations(0).PossiblyEmbeddedOrMySourceTree(),
Symbols\Source\OverrideHidingHelper.vb (20)
156diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NotOverridableRequiresOverrides), methodMember.Locations(0))) 164diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NotOverridableRequiresOverrides), propMember.Locations(0))) 187diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_MustOverridesInClass1, container.Name), container.Locations(0))) 253container.Locations(0))) 267container.Locations(0))) 414hidingMember.Locations(0))) 424hidingMember.Locations(0))) 431associatedhidingSymbol.Locations(0))) 447hidingMember.Locations(0))) 450Debug.Assert(hidingMember.Locations(0).IsInSource) 454hidingMember.Locations(0))) 469Debug.Assert(hidingMember.Locations(0).IsInSource) 479hidingMember.Locations(0))) 483hidingMember.Locations(0))) 853member.Locations(0))) 867member.Locations(0))) 909member.Locations(0))) 916If Not diagnostics.Add(useSiteInfo, member.Locations(0)) AndAlso 994diagnostics.Add(overriddenAccessor.GetUseSiteInfo(), overridingAccessor.Locations(0)) 1004overridingMember.Locations(0)))
Symbols\Source\SourceAssemblySymbol.vb (1)
805Return Me.Modules.SelectMany(Function(m) m.Locations).AsImmutable()
Symbols\Source\SourceClonedParameterSymbol.vb (1)
62Return _originalParam.Locations
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
33MyBase.New(delegateType, flags, binder.GetSyntaxReference(syntax), delegateType.Locations)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (31)
992location = method.Locations(0) 1029location = param.Locations(0) 1054Dim location As Location = param.Locations(0) 1100location = [property].Locations(0) 1136location = [event].Locations(0) 1930Debug.Assert(implParameter.Locations.Length = 1) 1932implParameter.Locations(0), 1951Debug.Assert(implParameter.Locations.Length = 1) 1953implParameter.Locations(0), 2160Debug.Assert(symbolToReportErrorOn.Locations.Length > 0) 2162symbolToReportErrorOn.Locations(0), 2237If typeToTest.Locations.IsEmpty Then 2242Dim typeToTestLocation = typeToTest.Locations(0) 2277CheckDefaultPropertyAgainstAllBases(Me, defaultPropertyName, propertySymbol.Locations(0), diagBag) 2281diagBag.Add(ERRID.ERR_DuplicateDefaultProps1, propertySymbol.Locations(0), GetKindText()) 2437Debug.Assert(symbol.Locations.Length > 0) 2438diagBag.Add(ERRID.ERR_MustShadow2, symbol.Locations(0), symbol.GetKindText(), symbol.Name) 2442Debug.Assert(symbol.Locations.Length > 0) 2443diagBag.Add(ERRID.ERR_MustBeOverloads2, symbol.Locations(0), symbol.GetKindText(), symbol.Name) 2942symImplicitlyDefinedBy.Locations(0), 2949Binder.ReportDiagnostic(diagBag, sym.Locations(0), ERRID.ERR_ShadowingGenericParamWithMember1, sym.Name) 3043firstAssociatedSymbol.Locations(0), 3063firstAssociatedSymbol.Locations(0), 3079secondSymbol.Locations(0), 3099firstSymbol.Locations(0), 3111firstSymbol.Locations(0), 3414diagnostics.Add(useSiteInfo, implementingSet.Single.Locations(0)) 3418diagnostics.Add(useSiteInfo, implementingSet.Single.Locations(0)) 3570ReportOverloadsErrors(comparisonResults, member, nextMember, member.Locations(0), diagnostics) 3709method), method.Locations(0)) 3751ReportOverloadsErrors(comparisonResults, method, nextMethod, method.Locations(0), diagnostics)
Symbols\Source\SourceMethodSymbol.vb (4)
1618diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOptionalFirstArg), firstParam.Locations(0)) 1621diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodParamArrayFirstArg), firstParam.Locations(0)) 2150If param.Locations.Length > 0 Then 2153param.Type.CheckAllConstraints(param.Locations(0), diagBag, template:=New CompoundUseSiteInfo(Of AssemblySymbol)(diagBag, sourceModule.ContainingAssembly))
Symbols\Source\SourceNamedTypeSymbol.vb (4)
539For Each location In s.Locations 557container.Locations.Length = 1 OrElse 962Binder.ReportDiagnostic(diagBag, s.Locations(0), ERRID.WRN_ShadowingGenericParamWithParam1, s.Name) 965Binder.ReportDiagnostic(diagBag, s.Locations(0), ERRID.ERR_DuplicateTypeParamName1, s.Name)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (5)
330Binder.ReportDiagnostic(diagnostics, member.Locations(0), ERRID.ERR_MemberConflictWithSynth4, 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\SourcePropertyAccessorSymbol.vb (3)
260If param.Locations.Length > 0 Then 263param.Type.CheckAllConstraints(param.Locations(0), diagBag, template:=New CompoundUseSiteInfo(Of AssemblySymbol)(diagBag, sourceModule.ContainingAssembly)) 432diagnostics.Add(ERRID.ERR_SetValueNotPropertyType, valueParameter.Locations(0))
Symbols\Source\SourceTypeParameterSymbol.vb (1)
198Dim locations = diagnostic.TypeParameter.Locations
Symbols\Source\SynthesizedFieldSymbol.vb (1)
132Return _implicitlyDefinedBy.Locations
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
101Return m_containingType.Locations()
Symbols\SubstitutedEventSymbol.vb (1)
111Return Me._originalDefinition.Locations
Symbols\SubstitutedFieldSymbol.vb (1)
152Return _originalDefinition.Locations
Symbols\SubstitutedMethodSymbol.vb (1)
269Return OriginalDefinition.Locations
Symbols\SubstitutedNamedType.vb (1)
220Return OriginalDefinition.Locations
Symbols\SubstitutedParameterSymbol.vb (1)
88Return _originalDefinition.Locations
Symbols\SubstitutedPropertySymbol.vb (1)
192Return _originalDefinition.Locations
Symbols\SubstitutedTypeParameterSymbol.vb (1)
137Return _originalDefinition.Locations
Symbols\Symbol.vb (2)
271Dim locations = Me.Locations 1236Return Me.Locations
Symbols\SymbolExtensions.vb (1)
427Return DirectCast(Symbol.GetDeclaringSyntaxNodeHelper(Of T)(this.Locations).FirstOrDefault, T)
Symbols\SynthesizedSymbols\SynthesizedAccessor.vb (1)
124Return m_propertyOrEvent.Locations
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (1)
85Return _propertyOrEvent.Locations
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (1)
105Return _correspondingMethodTypeParameter.Locations
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
181Return m_containingType.Locations
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
296Return _containingType.Locations
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
75origParameter.Locations.FirstOrDefault,
Symbols\SynthesizedSymbols\SynthesizedRegularMethodBase.vb (1)
131Return m_containingType.Locations
Symbols\UnboundGenericType.vb (1)
217Return OriginalDefinition.Locations
Symbols\Wrapped\WrappedEventSymbol.vb (1)
48Return Me._underlyingEvent.Locations
Symbols\Wrapped\WrappedFieldSymbol.vb (1)
114Return Me._underlyingField.Locations
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
68Return Me.UnderlyingMethod.Locations
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
92Return Me._underlyingType.Locations
Symbols\Wrapped\WrappedParameterSymbol.vb (1)
57Return Me._underlyingParameter.Locations
Symbols\Wrapped\WrappedPropertySymbol.vb (1)
67Return Me._underlyingProperty.Locations
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
72Return Me._underlyingTypeParameter.Locations
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (37)
CodeGen\CodeGenTuples.vb (32)
5774Assert.False(mFirst.Locations.IsEmpty) 5794Assert.True(mItem1.Locations.IsEmpty) 15098Assert.Equal(1, m1Tuple.Locations.Length) 15130Assert.False(m1Item1.Locations.IsEmpty) 15146Assert.False(m2Item1.Locations.IsEmpty) 15149Assert.NotEqual(m2Item1.Locations.Single(), m2Item1.TupleUnderlyingField.Locations.Single()) 15150Assert.Equal("MetadataFile(System.ValueTuple.dll)", m2Item1.TupleUnderlyingField.Locations.Single().ToString()) 15151Assert.Equal("SourceFile(a.vb[589..591))", m2Item1.Locations.Single().ToString()) 15165Assert.False(m2a2.Locations.IsEmpty) 15380Assert.False(m3Item8.Locations.IsEmpty) 15410Assert.True(m3TupleRestTuple.Locations.IsEmpty) 15414Assert.True(m.Locations.IsEmpty) 15543Assert.False(m4Item8.Locations.IsEmpty) 15563Assert.False(m4h4.Locations.IsEmpty) 15591Assert.True(m.Locations.IsEmpty) 15797Assert.False(m5Item8.Locations.IsEmpty) 15837Assert.True(m.Locations.IsEmpty) 15875Assert.True(m.Locations.IsEmpty) 16153Assert.False(m8Item8.Locations.IsEmpty) 16173Assert.False(m8Item1.Locations.IsEmpty) 16321Assert.Equal(1, m1Tuple.Locations.Length) 16349Assert.False(m1Item1.Locations.IsEmpty) 16369Assert.False(m2Item1.Locations.IsEmpty) 16372Assert.NotEqual(m2Item1.Locations.Single(), m2Item1.TupleUnderlyingField.Locations.Single()) 16373Assert.Equal("SourceFile(a.vb[760..765))", m2Item1.TupleUnderlyingField.Locations.Single().ToString()) 16374Assert.Equal("SourceFile(a.vb[175..177))", m2Item1.Locations.Single().ToString()) 16392Assert.False(m2a2.Locations.IsEmpty) 16418Assert.False(m1ToString.Locations.IsEmpty) 16420Assert.Equal(m1ToString.Locations.Single(), m1ToString.TupleUnderlyingMethod.Locations.Single())
CodeGen\CodeGenVBCore.vb (3)
272Assert.Equal(globalNamespace.Locations.Length, 4) 274Assert.Equal([namespace].Locations.Length, 1) 276Assert.Equal(type.Locations.Length, 1)
Emit\EditAndContinue\EditAndContinueTestBase.vb (2)
126Dim tree1 = method1.Locations(0).SourceTree 127Dim tree0 = method0.Locations(0).SourceTree
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Compilation\MyTemplateTests.vb (4)
252Assert.IsType(Of MyTemplateLocation)(sym.Locations(0)) 310Assert.IsType(Of SourceLocation)(sym.Locations(0)) 314Assert.Equal(1, parent.Locations.OfType(Of SourceLocation).Count) 315Assert.Equal(1, parent.Locations.OfType(Of MyTemplateLocation).Count)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (8)
1014methSymbol1.Locations.Single().GetLineSpan().StartLinePosition.Line) 1020methSymbol2.Locations.Single().GetLineSpan().StartLinePosition.Line) 1026methSymbol3.Locations.Single().GetLineSpan().StartLinePosition.Line) 1032methSymbol4.Locations.Single().GetLineSpan().StartLinePosition.Line) 1038methSymbol5.Locations.Single().GetLineSpan().StartLinePosition.Line) 1044methSymbol6.Locations.Single().GetLineSpan().StartLinePosition.Line) 1053methSymbol8.Locations.Single().GetLineSpan().StartLinePosition.Line) 2627Assert.Equal(nsSymbolA.Locations.Length, memSymbol.Locations.Length)
Semantics\BinaryOperators.vb (1)
1262Assert.Equal(0, symbol1.Locations.Length)
Semantics\PartialMethodsTest.vb (1)
326Assert.Equal(3, pTypeSym.Locations.Length)
Semantics\UnaryOperators.vb (1)
773Assert.Equal(0, symbol1.Locations.Length)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (78)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (16)
152Assert.Equal(1, localType.Locations.Length) 153Assert.Equal(localType.Locations(0), anonObjectCreation.NewKeyword.GetLocation()) 184Assert.Equal(1, member.Locations.Length) 185Assert.Equal(member.Locations(0), DirectCast(propertyInitializer, NamedFieldInitializerSyntax).Name.GetLocation()) 424Assert.Equal(1, localType.Locations.Length) 425Assert.Equal(location.SourceSpan, localType.Locations(0).SourceSpan) 458Assert.Equal(1, member.Locations.Length) 459Assert.Equal(locations(propIndex).SourceSpan, member.Locations(0).SourceSpan) 1869Assert.NotEqual(typeA3.Locations(0), typeA4.Locations(0)) 1873Assert.True(statement1.Span.Contains(typeA3.Locations(0).SourceSpan)) 1874Assert.True(statement2.Span.Contains(typeA4.Locations(0).SourceSpan)) 1919Assert.Equal(typeA3.Locations(0), typeA4.Locations(0)) 1942Assert.Equal(1, [property].Locations.Length) 1943Assert.Equal(span, [property].Locations(0).SourceSpan)
SymbolsTests\Metadata\PE\LoadingFields.vb (2)
53Assert.Equal(module2.Locations, f1.Locations)
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (1)
75Assert.Same(module0, C1_T.Locations.Single().MetadataModule)
SymbolsTests\Metadata\PE\LoadingMethods.vb (2)
55Assert.Same(module2, M1.Locations.Single().MetadataModule) 116Assert.Same(module4, VB_C1_M1.Parameters(0).Locations.Single().MetadataModule)
SymbolsTests\Metadata\PE\TypeAccessibility.vb (4)
96Assert.Same(module0, module0.GlobalNamespace.Locations.Single().MetadataModule) 97Assert.Same(module0, system.Locations.Single().MetadataModule) 98Assert.Same(module0, Runtime.Locations.Single().MetadataModule) 99Assert.Same(module0, obj.Locations.Single().MetadataModule)
SymbolsTests\MyBaseMyClassSemanticsTests.vb (2)
94Assert.Equal(1, [property].Locations.Length) 95Assert.Equal(span, [property].Locations(0).SourceSpan)
SymbolsTests\Source\DelegateTests.vb (10)
221Assert.Equal(subDel.Locations(0), subDel.DelegateInvokeMethod.Locations(0)) 222Assert.Equal(subDel.Locations(0), subDel.GetMembers(".ctor")(0).Locations(0)) 223Assert.Equal(subDel.Locations(0), subDel.GetMembers("Invoke")(0).Locations(0)) 224Assert.Equal(subDel.Locations(0), subDel.GetMembers("BeginInvoke")(0).Locations(0)) 225Assert.Equal(subDel.Locations(0), subDel.GetMembers("EndInvoke")(0).Locations(0))
SymbolsTests\Source\MethodTests.vb (1)
1698Dim span = Symbol.Locations.Single().SourceSpan
SymbolsTests\Source\NamespaceGlobalTests.vb (1)
152Assert.Equal(2, DirectCast(symbolClass, NamedTypeSymbol).Locations.Length)
SymbolsTests\Source\PropertyTests.vb (6)
1368Assert.False(p.Locations.IsEmpty) 6009Assert.Equal(1, p1.Locations.Length) 6013Assert.False(p11.Locations.IsEmpty, "Parameter Location NotEmpty") 6014Assert.True(p11.Locations(0).IsInSource, "Parameter Location(0) IsInSource") 6015Assert.Equal(p1.Locations(0), p11.Locations(0))
SymbolsTests\Source\SourceSymbolTests.vb (15)
336locs = (From l In classC.Locations.AsEnumerable() 345locs = (From l In classD.Locations.AsEnumerable() 354locs = (From l In tp1.Locations.AsEnumerable() 363locs = (From l In m1.Locations 369locs = (From l In p1.Locations 375locs = (From l In v1.Locations 381locs = (From l In n1.Locations.AsEnumerable() 390locs = (From l In n2.Locations.AsEnumerable() 399locs = (From l In n3.Locations.AsEnumerable() 408locs = (From l In globalNS.Locations.AsEnumerable() 653Dim locations = comp0.GlobalNamespace.Locations 657locations = comp0.GetMember(Of NamedTypeSymbol)("N.C").Locations 671locations = comp1.GetMember(Of NamedTypeSymbol)("N.C").Locations 676locations = comp2.GetMember(Of NamedTypeSymbol)("N.C").Locations 686locations = comp3.GetMember(Of NamedTypeSymbol)("N.C").Locations
SymbolsTests\Source\TypeTests.vb (18)
118Assert.Equal(2, classB.Locations.Length()) 137Assert.Equal(1, delegateB.Locations.Length()) 155Assert.Equal(1, enumE.Locations.Length()) 170Assert.Equal(1, structI.Locations.Length()) 185Assert.Equal(1, moduleM.Locations.Length()) 259Assert.Equal(3, i1Class.Locations.Length()) 269Assert.Equal(1, i3Interface.Locations.Length()) 279Assert.Equal(1, i4Enum.Locations.Length()) 297Assert.Equal(1, i2Arity1.Locations.Length()) 314Assert.Equal(2, i2Arity2.Locations.Length()) 459Assert.Equal(1, sym21.Locations.Length) 460Dim span = DirectCast(sym21.Locations(0), Location).GetLineSpan() 496span = DirectCast(sym61.Locations(0), Location).GetLineSpan() 510span = DirectCast(sym71.Locations(0), Location).GetLineSpan() 517span = DirectCast(sym72.Locations(0), Location).GetLineSpan() 524span = DirectCast(sym73.Locations(0), Location).GetLineSpan() 1553AssertEx.Equal(typeGoo.Locations, instanceConstructor.Locations)