classLayouts
final class Layouts
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Reads the written spelling of a region of a parse tree.
Methods§
Answers the layout of the tokens a node covers: their spellings and the trivia between them.
Parameters
$node | Node | The region |
$trail | string | The trivia written after the region: the leading trivia of the next token, or the trailing trivia at the end of the input |
Returns
Throws
InvariantViolation When the node covers no tokenCalls 4
- method-call Node::tokens() line 30
- new Spelled line 32
- static-call Check::invariant() line 35
- new Layout line 37