Extra

Common interface for extra nodes.

Inheritors

Types

Link copied to clipboard
data class Comment(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Extra

AST node that represents a comment. The node corresponds to PsiComment.

Link copied to clipboard
data class Semicolon(val supplement: NodeSupplement = NodeSupplement()) : Node.Extra

AST node that represents a semicolon. The node corresponds to PsiElement whose elementType is SEMICOLON.

Link copied to clipboard
data class TrailingComma(val supplement: NodeSupplement = NodeSupplement()) : Node.Extra

AST node that represents a trailing comma of a list.

Link copied to clipboard
data class Whitespace(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Extra

AST node that represents a whitespace. The node corresponds to PsiWhiteSpace.

Properties

Link copied to clipboard

Supplemental data for the node.

Link copied to clipboard
abstract val text: String

text representation of the node.