Click or drag to resize

SyntaxReference Class



A reference to a syntax node.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysisSyntaxReference

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class SyntaxReference

The SyntaxReference type exposes the following members.

Constructors
  NameDescription
Protected methodSyntaxReference
Initializes a new instance of the SyntaxReference class
Top
Properties
  NameDescription
Public propertySpan
The span of the node referenced.
Public propertySyntaxTree
The syntax tree that this references a node within.
Top
Methods
  NameDescription
Public methodGetSyntax
Retrieves the original referenced syntax node. This action may cause a parse to happen to recover the syntax node.
Public methodGetSyntaxAsync
Top
See Also