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