mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Unpack Node fields.
This commit is contained in:
parent
76d57fc192
commit
ed93b6e1fa
@ -174,9 +174,9 @@ type Location = '[Info.Range, Info.Span]
|
|||||||
type AST grammar = Cofree [] (Node grammar)
|
type AST grammar = Cofree [] (Node grammar)
|
||||||
|
|
||||||
data Node grammar = Node
|
data Node grammar = Node
|
||||||
{ nodeSymbol :: !grammar
|
{ nodeSymbol :: {-# UNPACK #-} !grammar
|
||||||
, nodeByteRange :: !Info.Range
|
, nodeByteRange :: {-# UNPACK #-} !Info.Range
|
||||||
, nodeSpan :: !Info.Span
|
, nodeSpan :: {-# UNPACK #-} !Info.Span
|
||||||
}
|
}
|
||||||
deriving (Eq, Show)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user