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