28 references to GetReference
Microsoft.CodeAnalysis.CSharp (28)
Binder\AliasAndExternAliasDirective.cs (1)
23
this.ExternAliasDirectiveReference = externAliasDirective?.
GetReference
();
Binder\AliasAndUsingDirective.cs (1)
18
this.UsingDirectiveReference = usingDirective?.
GetReference
();
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
20
this.UsingDirectiveReference = usingDirective?.
GetReference
();
Symbols\AliasSymbol.cs (2)
290
_directive = syntax.
GetReference
();
296
_directive = syntax.
GetReference
();
Symbols\Attributes\SourceAttributeData.cs (1)
85
: this(compilation, attributeSyntax.
GetReference
(), attributeClass, attributeConstructor, constructorArguments, constructorArgumentsSourceIndices, namedArguments, hasErrors, isConditionallyOmitted)
Symbols\Source\CrefTypeParameterSymbol.cs (1)
75
_declaringSyntax = declaringSyntax.
GetReference
();
Symbols\Source\GlobalExpressionVariable.cs (1)
39
_typeSyntaxOpt = typeSyntax?.
GetReference
();
Symbols\Source\LambdaSymbol.cs (1)
369
var parameter = new LambdaParameterSymbol(owner: this, paramSyntax?.
GetReference
(), attributeLists, type, ordinal: p, refKind, scope, name, unboundLambda.ParameterIsDiscard(p), isParams, location);
Symbols\Source\LocalFunctionSymbol.cs (2)
42
: base(syntax.
GetReference
(), isIterator: SyntaxFacts.HasYieldOperations(syntax.Body))
465
ImmutableArray.Create(parameter.
GetReference
()));
Symbols\Source\SourceConstructorSymbolBase.cs (1)
29
: base(containingType, syntax.
GetReference
(), location, isIterator, modifiersAndFlags)
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
31
syntax.
GetReference
(),
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
30
: base(delegateType, syntax.
GetReference
(), location: syntax.Identifier.GetLocation(), isIterator: false,
Symbols\Source\SourceDestructorSymbol.cs (1)
24
base(containingType, syntax.
GetReference
(), GetSymbolLocation(syntax, out Location location), isIterator: SyntaxFacts.HasYieldOperations(syntax.Body),
Symbols\Source\SourceEnumConstantSymbol.cs (1)
51
: base(containingEnum, syntax.Identifier.ValueText, syntax.
GetReference
(), syntax.Identifier.Span)
Symbols\Source\SourceEventSymbol.cs (1)
56
_syntaxRef = syntax.
GetReference
();
Symbols\Source\SourceLabelSymbol.cs (1)
103
return node == null ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create<SyntaxReference>(node.
GetReference
());
Symbols\Source\SourceMemberFieldSymbol.cs (1)
359
: base(containingType, modifiers, declarator.Identifier.ValueText, declarator.
GetReference
(), declarator.Identifier.Span)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
1204
var syntaxRefs = ImmutableArray.Create(parameter.
GetReference
());
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
37
syntax.
GetReference
(),
Symbols\Source\SourceParameterSymbol.cs (2)
71
syntax.
GetReference
(),
95
syntax.
GetReference
(),
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
148
base(containingType, syntax.
GetReference
(), location, isIterator: false,
190
syntax.
GetReference
(),
Symbols\Source\SourcePropertySymbolBase.cs (1)
109
_syntaxRef = syntax.
GetReference
();
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
39
base(containingType, syntax.
GetReference
(), location, isIterator: isIterator,
Symbols\Symbol.cs (1)
518
builder.Add(node.
GetReference
());