NumberNode

interface NumberNode : TermNode

Parsed numeric literal with its lexical and normalized components.

Properties

Link copied to clipboard
abstract val characterCode: Int?

decoded character value, or null for ordinary numbers

Link copied to clipboard
abstract val children: List<SyntaxNode>

Immediate syntax children in source order.

Link copied to clipboard
abstract val digits: String

normalized digits without sign or radix prefix

Link copied to clipboard
abstract val kind: SyntaxKind

Stable structural category of this node.

Link copied to clipboard
abstract val numberKind: NumberKind

literal family

Link copied to clipboard
abstract val priority: Int

Root Prolog priority. Atomic and parenthesized terms have priority zero.

Link copied to clipboard
abstract val radix: Int?

integer radix, or null for real and character-code literals

Link copied to clipboard
abstract val sign: Int

numeric multiplier, either 1 or -1

Link copied to clipboard
abstract val signTokenId: Int?

absolute sign token ID, or null when no explicit sign was written

Link copied to clipboard
abstract val span: SourceSpan

End-exclusive range of source characters belonging to this node.

Link copied to clipboard
abstract val tokenRange: TokenRange

End-exclusive range of absolute token IDs belonging to this node.

Link copied to clipboard
abstract val valueTokenId: Int

absolute ID of the unsigned value token

Functions

Link copied to clipboard
open override fun <T> accept(visitor: SyntaxNodeVisitor<T>): T

Dispatches this number to SyntaxNodeVisitor.visitNumber.