Portability | ghc |
---|---|
Stability | experimental |
Maintainer | benedikt.huber@gmail.com |
Language.C.Data.Node
Description
source position and unqiue name
- data NodeInfo
- internalNode :: NodeInfo
- mkNodeInfoOnlyPos :: Position -> NodeInfo
- mkNodeInfo :: Position -> Name -> NodeInfo
- class CNode a where
- fileOfNode :: CNode a => a -> FilePath
- posOfNode :: NodeInfo -> Position
- nameOfNode :: NodeInfo -> Maybe Name
- eqByName :: CNode a => a -> a -> Bool
Documentation
data NodeInfo
Parsed entity attribute
mkNodeInfoOnlyPos :: Position -> NodeInfo
Given only a source position, create a new attribute identifier
mkNodeInfo :: Position -> Name -> NodeInfo
Given a source position and a unique name, create a new attribute identifier
class CNode a where
a class for convenient access to the attributes of an attributed object
Instances
fileOfNode :: CNode a => a -> FilePath
nameOfNode :: NodeInfo -> Maybe Name