Metalama//API Documentation/Aspect API/Metalama.​Framework.​Code/Syntax­Reference
Open sandboxFocus

Class SyntaxReference

Represents a syntax node or a syntax token.

Inheritance
SyntaxReference
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class SyntaxReference : ValueType

Properties

Name Description
DiagnosticLocation

Gets the location of the node.

Kind

Gets the SyntaxKind of the node or token.

NodeOrToken

Gets the Roslyn SyntaxNode or SyntaxToken.

Methods

Name Description
ToString()

Gets the content of the node or token (without trivia).