84 overrides of DeclaringSyntaxReferences
Microsoft.CodeAnalysis.CSharp (84)
CodeGen\Optimizer.cs (1)
2401public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
50public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AliasSymbol.cs (1)
126public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
176public abstract override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
123public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
94public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
215public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
49public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\ArrayTypeSymbol.cs (1)
318public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AssemblySymbol.cs (1)
281public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\DiscardSymbol.cs (1)
23public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\DynamicTypeSymbol.cs (1)
78public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\ErrorMethodSymbol.cs (1)
96public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\ErrorPropertySymbol.cs (1)
64public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { return ImmutableArray<SyntaxReference>.Empty; } }
Symbols\ErrorTypeSymbol.cs (1)
262public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
134public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
827public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
71public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
81public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\FunctionTypeSymbol.cs (1)
114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => throw ExceptionUtilities.Unreachable();
Symbols\MergedNamespaceSymbol.cs (1)
287public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PEEventSymbol.cs (1)
352public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
522public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
989public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1613public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
178public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1041public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
722public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
439public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\MissingNamespaceSymbol.cs (1)
102public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\ModuleSymbol.cs (1)
188public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\PointerTypeSymbol.cs (1)
189public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\RangeVariableSymbol.cs (1)
54public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\ReducedExtensionMethodSymbol.cs (1)
366public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
161public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\SignatureOnlyMethodSymbol.cs (1)
139public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
97public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
76public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\CrefTypeParameterSymbol.cs (1)
185public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
200public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceClonedParameterSymbol.cs (1)
37public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceEventSymbol.cs (1)
125public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceFieldSymbol.cs (1)
225public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceLabelSymbol.cs (1)
87public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceLocalSymbol.cs (1)
424public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1002public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceNamespaceSymbol.cs (1)
124public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceParameterSymbol.cs (1)
274public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourcePropertySymbolBase.cs (1)
534public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceTypeParameterSymbol.cs (1)
52public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\ThisParameterSymbol.cs (1)
18public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\GeneratedLabelSymbol.cs (1)
47public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
53public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
49public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
829public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
63public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedContainer.cs (1)
88public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
86public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
107public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
163public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
196public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
96public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => [];
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
77public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 241public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (1)
21public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
336public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedLocal.cs (1)
148public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
140public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
66public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
119public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
62public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\SynthesizedNamespaceSymbol.cs (1)
64public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\UpdatedContainingSymbolLocal.cs (1)
81public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _underlyingLocal.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedEventSymbol.cs (1)
78public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
192public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
140public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
64public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
100public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
27 references to DeclaringSyntaxReferences
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Statements.cs (1)
3876containerNode = containingType.DeclaringSyntaxReferences.Select(r => r.GetSyntax()).OfType<TypeDeclarationSyntax>().First();
CodeGen\EmitStatement.cs (2)
752var declaringReferences = local.DeclaringSyntaxReferences; 1116var declaringReferences = local.DeclaringSyntaxReferences;
Compiler\DocumentationCommentCompiler.cs (1)
695foreach (SyntaxReference reference in symbol.DeclaringSyntaxReferences)
FlowAnalysis\NullableWalker.cs (1)
643var exitLocation = method is SynthesizedPrimaryConstructor || method.DeclaringSyntaxReferences.IsEmpty ? null : method.TryGetFirstLocation();
Lowering\ClosureConversion\ClosureConversion.cs (1)
410var syntax = originalMethod.DeclaringSyntaxReferences[0].GetSyntax();
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
38originalMethod.DeclaringSyntaxReferences[0].GetLocation(),
Symbols\MergedNamespaceSymbol.cs (1)
291return _namespacesToMerge.SelectMany(namespaceSymbol => namespaceSymbol.DeclaringSyntaxReferences).AsImmutable();
Symbols\MethodSymbolExtensions.cs (1)
200foreach (var reference in method.DeclaringSyntaxReferences)
Symbols\PublicModel\Symbol.cs (1)
116return UnderlyingSymbol.DeclaringSyntaxReferences;
Symbols\ReducedExtensionMethodSymbol.cs (1)
368get { return _reducedFrom.DeclaringSyntaxReferences; }
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
165return _underlyingNamespace.DeclaringSyntaxReferences;
Symbols\Symbol.cs (2)
491/// Helper for implementing <see cref="DeclaringSyntaxReferences"/> for derived classes that store a location but not a 934var declaringReferences = this.DeclaringSyntaxReferences;
Symbols\SymbolDistinguisher.cs (1)
165ImmutableArray<SyntaxReference> syntaxReferences = unwrappedSymbol.DeclaringSyntaxReferences;
Symbols\SymbolExtensions.cs (2)
363SyntaxReference? reference = symbol.DeclaringSyntaxReferences.FirstOrDefault(); 370reference = containingSymbol.DeclaringSyntaxReferences.FirstOrDefault();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
53public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
64get { return _originalVariable.DeclaringSyntaxReferences; }
Symbols\VarianceSafety.cs (1)
485var syntaxRefs = symbol.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedEventSymbol.cs (1)
82return _underlyingEvent.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
196return _underlyingField.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
105return UnderlyingMethod.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
149return _underlyingType.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
66get { return _underlyingParameter.DeclaringSyntaxReferences; }
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
104return _underlyingProperty.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
156return _underlyingTypeParameter.DeclaringSyntaxReferences;