29 references to GetReference
Microsoft.CodeAnalysis.CSharp (29)
Binder\AliasAndExternAliasDirective.cs (1)
23this.ExternAliasDirectiveReference = externAliasDirective?.GetReference();
Binder\AliasAndUsingDirective.cs (1)
18this.UsingDirectiveReference = usingDirective?.GetReference();
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
20this.UsingDirectiveReference = usingDirective?.GetReference();
Symbols\AliasSymbol.cs (2)
295_directive = syntax.GetReference(); 301_directive = syntax.GetReference();
Symbols\RangeVariableSymbol.cs (1)
68return ImmutableArray.Create<SyntaxReference>(node.GetReference());
Symbols\Source\CrefTypeParameterSymbol.cs (1)
75_declaringSyntax = declaringSyntax.GetReference();
Symbols\Source\GlobalExpressionVariable.cs (1)
37_typeSyntaxOpt = typeSyntax?.GetReference();
Symbols\Source\LambdaSymbol.cs (1)
362var parameter = new LambdaParameterSymbol(owner: this, paramSyntax?.GetReference(), attributeLists, type, ordinal: p, refKind, scope, name, unboundLambda.ParameterIsDiscard(p), isParams, locations);
Symbols\Source\LocalFunctionSymbol.cs (2)
39: base(syntax.GetReference(), isIterator: SyntaxFacts.HasYieldOperations(syntax.Body)) 425ImmutableArray.Create(parameter.GetReference()));
Symbols\Source\SourceConstructorSymbolBase.cs (1)
28: base(containingType, syntax.GetReference(), ImmutableArray.Create(location), isIterator)
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
31syntax.GetReference(),
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
28: base(delegateType, syntax.GetReference(), location: syntax.Identifier.GetLocation(), isIterator: false)
Symbols\Source\SourceDestructorSymbol.cs (1)
24base(containingType, syntax.GetReference(), syntax.Identifier.GetLocation(), isIterator: SyntaxFacts.HasYieldOperations(syntax.Body))
Symbols\Source\SourceEnumConstantSymbol.cs (2)
51: base(containingEnum, syntax.Identifier.ValueText, syntax.GetReference(), syntax.Identifier.GetLocation()) 169_equalsValueNodeRef = initializer.GetReference();
Symbols\Source\SourceEventSymbol.cs (1)
55_syntaxRef = syntax.GetReference();
Symbols\Source\SourceLabelSymbol.cs (1)
103return node == null ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create<SyntaxReference>(node.GetReference());
Symbols\Source\SourceMemberFieldSymbol.cs (1)
341: base(containingType, modifiers, declarator.Identifier.ValueText, declarator.GetReference(), declarator.Identifier.GetLocation())
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
582var syntaxRefs = ImmutableArray.Create(parameter.GetReference());
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
42syntax.GetReference(),
Symbols\Source\SourceParameterSymbol.cs (2)
71syntax.GetReference(), 93syntax.GetReference(),
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
151base(containingType, syntax.GetReference(), location, isIterator: false) 192syntax.GetReference(),
Symbols\Source\SourcePropertySymbolBase.cs (1)
94_syntaxRef = syntax.GetReference();
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
38base(containingType, syntax.GetReference(), location, isIterator: isIterator)
Symbols\Symbol.cs (1)
387builder.Add(node.GetReference());