99 overrides of Locations
Microsoft.CodeAnalysis.CSharp (99)
Binder\Binder.ValueChecks.cs (1)
3022public override ImmutableArray<Location> Locations
CodeGen\Optimizer.cs (1)
2396public override ImmutableArray<Location> Locations
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
51public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
204public override ImmutableArray<Location> Locations
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
109public override ImmutableArray<Location> Locations
Symbols\AliasSymbol.cs (1)
118public override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
171public sealed override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
118public override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
89public override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
54public override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
210public sealed override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
44public override ImmutableArray<Location> Locations
Symbols\ArrayTypeSymbol.cs (1)
310public override ImmutableArray<Location> Locations
Symbols\DiscardSymbol.cs (1)
32public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\DynamicTypeSymbol.cs (1)
70public override ImmutableArray<Location> Locations
Symbols\ErrorMethodSymbol.cs (1)
91public override ImmutableArray<Location> Locations
Symbols\ErrorPropertySymbol.cs (1)
62public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } }
Symbols\ErrorTypeSymbol.cs (1)
254public override ImmutableArray<Location> Locations
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
126public override ImmutableArray<Location> Locations
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
826public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
70public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
80public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\FunctionTypeSymbol.cs (1)
112public override ImmutableArray<Location> Locations => throw ExceptionUtilities.Unreachable();
Symbols\LabelSymbol.cs (1)
109public override ImmutableArray<Location> Locations
Symbols\MergedNamespaceSymbol.cs (1)
277public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
118public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PEEventSymbol.cs (1)
344public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
514public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
987public override ImmutableArray<Location> Locations => _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>();
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
234public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1604public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
170public sealed override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1033public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
714public override ImmutableArray<Location> Locations
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
430public override ImmutableArray<Location> Locations
Symbols\MissingAssemblySymbol.cs (1)
116public override ImmutableArray<Location> Locations
Symbols\MissingModuleSymbol.cs (1)
122public override ImmutableArray<Location> Locations
Symbols\MissingNamespaceSymbol.cs (1)
94public override ImmutableArray<Location> Locations
Symbols\PointerTypeSymbol.cs (1)
181public override ImmutableArray<Location> Locations
Symbols\RangeVariableSymbol.cs (1)
48public override ImmutableArray<Location> Locations
Symbols\ReducedExtensionMethodSymbol.cs (1)
361public override ImmutableArray<Location> Locations
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
183public override ImmutableArray<Location> Locations
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
176public override ImmutableArray<Location> Locations
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
153public override ImmutableArray<Location> Locations
Symbols\SignatureOnlyMethodSymbol.cs (1)
137public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
95public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
74public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\CrefTypeParameterSymbol.cs (1)
177public override ImmutableArray<Location> Locations
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
192public override ImmutableArray<Location> Locations
Symbols\Source\LambdaSymbol.cs (1)
219public override ImmutableArray<Location> Locations
Symbols\Source\LocalFunctionSymbol.cs (1)
336public override ImmutableArray<Location> Locations => ImmutableArray.Create(Syntax.Identifier.GetLocation());
Symbols\Source\SourceAssemblySymbol.cs (1)
573public override ImmutableArray<Location> Locations
Symbols\Source\SourceClonedParameterSymbol.cs (1)
108public override ImmutableArray<Location> Locations
Symbols\Source\SourceEventSymbol.cs (1)
114public sealed override ImmutableArray<Location> Locations
Symbols\Source\SourceFieldSymbol.cs (1)
219public sealed override ImmutableArray<Location> Locations
Symbols\Source\SourceLocalSymbol.cs (1)
414public override ImmutableArray<Location> Locations
Symbols\Source\SourceMemberContainerSymbol.cs (1)
988public sealed override ImmutableArray<Location> Locations
Symbols\Source\SourceMemberMethodSymbol.cs (1)
776public override ImmutableArray<Location> Locations
Symbols\Source\SourceModuleSymbol.cs (1)
403public override ImmutableArray<Location> Locations
Symbols\Source\SourceNamespaceSymbol.cs (1)
88public override ImmutableArray<Location> Locations
Symbols\Source\SourceParameterSymbol.cs (1)
264public sealed override ImmutableArray<Location> Locations
Symbols\Source\SourcePropertySymbolBase.cs (1)
526public override ImmutableArray<Location> Locations
Symbols\Source\SourceTypeParameterSymbol.cs (1)
44public override ImmutableArray<Location> Locations
Symbols\Source\ThisParameterSymbol.cs (1)
166public override ImmutableArray<Location> Locations
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
150public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
51public override ImmutableArray<Location> Locations => _containingType.Locations;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
47public override ImmutableArray<Location> Locations => _containingType.Locations;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
827public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
42public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
115public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedContainer.cs (1)
86public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
218public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
84public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
102public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
158public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
191public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
95public override ImmutableArray<Location> Locations => [];
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
161public sealed override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
75public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 239public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
144public sealed override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
124public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
328public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedLocal.cs (1)
143public sealed override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
135public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
64public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
56public override ImmutableArray<Location> Locations
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
111public override ImmutableArray<Location> Locations
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
75public override ImmutableArray<Location> Locations
Symbols\SynthesizedNamespaceSymbol.cs (1)
61public override ImmutableArray<Location> Locations
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
96public override ImmutableArray<Location> Locations
Symbols\UpdatedContainingSymbolLocal.cs (1)
80public override ImmutableArray<Location> Locations => _underlyingLocal.Locations;
Symbols\Wrapped\WrappedEventSymbol.cs (1)
70public override ImmutableArray<Location> Locations
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
184public override ImmutableArray<Location> Locations
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
93public override ImmutableArray<Location> Locations
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
127public override ImmutableArray<Location> Locations
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
59public sealed override ImmutableArray<Location> Locations
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
92public override ImmutableArray<Location> Locations
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
144public override ImmutableArray<Location> Locations
43 references to Locations
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder.ValueChecks.cs (1)
3024get { return _underlyingParameter.Locations; }
Binder\Binder_Symbols.cs (3)
1869int aLocationsCount = !snd.Locations.IsDefault ? snd.Locations.Length : 0; 1870int bLocationsCount = fst.Locations.Length;
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
628else if (InSpan(sym.Locations, this.syntaxTree, memberSpan))
Binder\InMethodBinder.cs (1)
245var locations = parameter.Locations;
Compilation\CSharpSemanticModel.cs (1)
3232foreach (var location in symbol.Locations)
Compilation\SyntaxTreeSemanticModel.cs (1)
2178foreach (var location in symbol.Locations)
Compiler\DocumentationCommentCompiler.cs (1)
601foreach (Location location in symbol.Locations)
Emitter\Model\PEModuleBuilder.cs (1)
474foreach (var loc in symbol.Locations)
FlowAnalysis\AbstractFlowPass.cs (1)
497if ((object)method == null || method.Locations.Length != 1)
FlowAnalysis\FlowAnalysisPass.cs (1)
101else if (method.Locations.Length == 1)
FlowAnalysis\NullableWalker.cs (1)
789var info = new CSDiagnosticInfo(errorCode, new object[] { symbol.Kind.Localize(), symbol.Name }, ImmutableArray<Symbol>.Empty, additionalLocations: symbol.Locations);
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
206get { return ContainingType.Locations; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
91return this.ContainingSymbol.Locations;
Symbols\MergedNamespaceSymbol.cs (1)
283return _namespacesToMerge.SelectMany(namespaceSymbol => namespaceSymbol.Locations).AsImmutable();
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1037return _containingSymbol.Locations;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
434return _containingSymbol.Locations;
Symbols\PublicModel\Symbol.cs (1)
108return UnderlyingSymbol.Locations;
Symbols\ReducedExtensionMethodSymbol.cs (1)
363get { return _reducedFrom.Locations; }
Symbols\Source\SourceAssemblySymbol.cs (1)
577return this.Modules.SelectMany(m => m.Locations).AsImmutable();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
461if (ContainingType!.Locations.Length == 1 || ContainingType.IsPartial())
Symbols\Source\ThisParameterSymbol.cs (1)
168get { return _containingMethod is not null ? _containingMethod.Locations : ImmutableArray<Location>.Empty; }
Symbols\Symbol.cs (5)
317ImmutableArray<Location> ISymbolInternal.Locations => this.Locations; 424var locations = this.Locations; 435/// Determines if there is a location (see <see cref="Locations"/>) for this symbol whose span is in <paramref 437/// be more efficient if desired (especially if avoiding allocations of the <see cref="Locations"/> array is 442foreach (var loc in this.Locations)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
51public override ImmutableArray<Location> Locations => _containingType.Locations;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
43=> ParameterSymbol.Locations;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
146get { return ContainingType.Locations; }
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
115return ContainingType.Locations;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
77get { return _originalVariable.Locations; }
Symbols\Tuples\TupleTypeSymbol.cs (3)
118return WithElementNames(original.TupleElementNames, original.TupleElementLocations, original.TupleErrorPositions, original.Locations); 153elementNames: TupleElementNames, elementLocations: TupleElementLocations, errorPositions: TupleErrorPositions, locations: Locations); 878: CreateTuple(mergedType, mergedNames, this.TupleErrorPositions, this.TupleElementLocations, this.Locations);
Symbols\Wrapped\WrappedEventSymbol.cs (1)
74return _underlyingEvent.Locations;
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
188return _underlyingField.Locations;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
97return UnderlyingMethod.Locations;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
136return _underlyingType.Locations;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
61get { return _underlyingParameter.Locations; }
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
96return _underlyingProperty.Locations;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
148return _underlyingTypeParameter.Locations;