mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
📝 Node.
This commit is contained in:
parent
ec65a199dc
commit
7868979cee
@ -96,6 +96,8 @@ data Rose a = Rose { roseValue :: !a, roseChildren :: ![Rose a] }
|
||||
|
||||
-- | A location specified as possibly-empty intervals of bytes and line/column positions.
|
||||
type Location = Record '[Info.Range, Info.SourceSpan]
|
||||
|
||||
-- | The label annotating a node in the AST, specified as the pairing of its symbol and location information.
|
||||
type Node grammar = Record '[grammar, Info.Range, Info.SourceSpan]
|
||||
|
||||
type AST grammar = Rose (Node grammar)
|
||||
|
Loading…
Reference in New Issue
Block a user