1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
This commit is contained in:
Timothy Clem 2018-09-26 14:25:00 -05:00
parent c8dfe57a48
commit d6302cd687

View File

@ -4,8 +4,6 @@ module Data.AST
, nodeSpan
, nodeByteRange
, AST
-- , Location
-- , nodeLocation
) where
import Data.Location
@ -20,8 +18,6 @@ type AST syntax grammar = Term syntax (Node grammar)
data Node grammar = Node
{ nodeSymbol :: !grammar
, nodeLocation :: {-# UNPACK #-} !Location
-- , nodeByteRange :: {-# UNPACK #-} !Range
-- , nodeSpan :: {-# UNPACK #-} !Span
}
deriving (Eq, Ord, Show)
@ -37,6 +33,3 @@ nodeSpan = locationSpan . nodeLocation
nodeByteRange :: Node grammar -> Range
nodeByteRange = locationByteRange . nodeLocation
-- nodeLocation :: Node grammar -> Record Location
-- nodeLocation Node{..} = nodeByteRange :. nodeSpan :. Nil