mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
Cleanup
This commit is contained in:
parent
c8dfe57a48
commit
d6302cd687
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user