1 write to syntaxReferenceOpt
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
36
this.
syntaxReferenceOpt
= syntaxReferenceOpt;
37 references to syntaxReferenceOpt
Microsoft.CodeAnalysis.CSharp (37)
Symbols\Source\LambdaSymbol.cs (2)
52
Debug.Assert(
syntaxReferenceOpt
is not null);
250
return ImmutableArray.Create<SyntaxReference>(
syntaxReferenceOpt
);
Symbols\Source\LocalFunctionSymbol.cs (2)
103
internal LocalFunctionStatementSyntax Syntax => (LocalFunctionStatementSyntax)
syntaxReferenceOpt
.GetSyntax();
398
var diagnosticInfo = MessageID.IDS_FeatureLocalFunctionAttributes.GetFeatureAvailabilityDiagnosticInfo((CSharpParseOptions)
syntaxReferenceOpt
.SyntaxTree.Options);
Symbols\Source\SourceConstructorSymbol.cs (2)
103
Debug.Assert(
syntaxReferenceOpt
!= null);
104
return (ConstructorDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceConstructorSymbolBase.cs (2)
35
var syntax = (CSharpSyntaxNode)
syntaxReferenceOpt
.GetSyntax();
175
var ctorSyntax = (CSharpSyntaxNode)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceCustomEventAccessorSymbol.cs (2)
63
Debug.Assert(
syntaxReferenceOpt
!= null);
64
return (AccessorDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
243
return new LexicalSortKey(this.
syntaxReferenceOpt
.GetLocation(), this.DeclaringCompilation);
306
return new LexicalSortKey(this.
syntaxReferenceOpt
.GetLocation(), this.DeclaringCompilation);
Symbols\Source\SourceDestructorSymbol.cs (3)
84
var bodyBinder = this.DeclaringCompilation.GetBinderFactory(
syntaxReferenceOpt
.SyntaxTree).GetBinder(syntax, syntax, this);
90
Debug.Assert(
syntaxReferenceOpt
!= null);
91
return (DestructorDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceMemberMethodSymbol.cs (1)
430
get { return this.
syntaxReferenceOpt
; }
Symbols\Source\SourceMethodSymbolWithAttributes.cs (9)
81
return this.
syntaxReferenceOpt
;
89
return (this.
syntaxReferenceOpt
== null) ? null : (CSharpSyntaxNode)this.
syntaxReferenceOpt
.GetSyntax();
97
return this.
syntaxReferenceOpt
== null ? null : this.
syntaxReferenceOpt
.SyntaxTree;
105
return (this.
syntaxReferenceOpt
== null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(this.
syntaxReferenceOpt
);
437
if (
syntaxReferenceOpt
is null)
450
if (
syntaxReferenceOpt
is null)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
270
Debug.Assert(
syntaxReferenceOpt
!= null);
271
return (MethodDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
589
Debug.Assert(
syntaxReferenceOpt
!= null);
590
return (CSharpSyntaxNode)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceUserDefinedConversionSymbol.cs (2)
95
Debug.Assert(
syntaxReferenceOpt
!= null);
96
return (ConversionOperatorDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (2)
95
Debug.Assert(
syntaxReferenceOpt
!= null);
96
return (OperatorDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
303
switch (
syntaxReferenceOpt
.GetSyntax())
794
switch (
syntaxReferenceOpt
.GetSyntax())
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
59
Debug.Assert(
syntaxReferenceOpt
!= null);
60
return (TypeDeclarationSyntax)
syntaxReferenceOpt
.GetSyntax();