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)
|
||||
|
||||
data Node grammar = Node
|
||||
{ nodeSymbol :: !grammar
|
||||
, nodeByteRange :: !Info.Range
|
||||
, nodeSpan :: !Info.Span
|
||||
{ nodeSymbol :: {-# UNPACK #-} !grammar
|
||||
, nodeByteRange :: {-# UNPACK #-} !Info.Range
|
||||
, nodeSpan :: {-# UNPACK #-} !Info.Span
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user