mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Cleanup
This commit is contained in:
parent
c8dfe57a48
commit
d6302cd687
@ -4,8 +4,6 @@ module Data.AST
|
|||||||
, nodeSpan
|
, nodeSpan
|
||||||
, nodeByteRange
|
, nodeByteRange
|
||||||
, AST
|
, AST
|
||||||
-- , Location
|
|
||||||
-- , nodeLocation
|
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Data.Location
|
import Data.Location
|
||||||
@ -20,8 +18,6 @@ type AST syntax grammar = Term syntax (Node grammar)
|
|||||||
data Node grammar = Node
|
data Node grammar = Node
|
||||||
{ nodeSymbol :: !grammar
|
{ nodeSymbol :: !grammar
|
||||||
, nodeLocation :: {-# UNPACK #-} !Location
|
, nodeLocation :: {-# UNPACK #-} !Location
|
||||||
-- , nodeByteRange :: {-# UNPACK #-} !Range
|
|
||||||
-- , nodeSpan :: {-# UNPACK #-} !Span
|
|
||||||
}
|
}
|
||||||
deriving (Eq, Ord, Show)
|
deriving (Eq, Ord, Show)
|
||||||
|
|
||||||
@ -37,6 +33,3 @@ nodeSpan = locationSpan . nodeLocation
|
|||||||
|
|
||||||
nodeByteRange :: Node grammar -> Range
|
nodeByteRange :: Node grammar -> Range
|
||||||
nodeByteRange = locationByteRange . nodeLocation
|
nodeByteRange = locationByteRange . nodeLocation
|
||||||
|
|
||||||
-- nodeLocation :: Node grammar -> Record Location
|
|
||||||
-- nodeLocation Node{..} = nodeByteRange :. nodeSpan :. Nil
|
|
||||||
|
Loading…
Reference in New Issue
Block a user