1
1
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:
Rob Rix 2017-08-04 10:11:19 -04:00
parent 76d57fc192
commit ed93b6e1fa

View File

@ -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)