language-c-0.3.2.1: Analysis and generation of C codeContentsIndex
Language.C.Data.Node
Portabilityghc
Stabilityexperimental
Maintainerbenedikt.huber@gmail.com
Description
source position and unqiue name
Synopsis
data NodeInfo
= OnlyPos Position
| NodeInfo Position Name
internalNode :: NodeInfo
mkNodeInfoOnlyPos :: Position -> NodeInfo
mkNodeInfo :: Position -> Name -> NodeInfo
class CNode a where
nodeInfo :: a -> NodeInfo
fileOfNode :: CNode a => a -> FilePath
posOfNode :: NodeInfo -> Position
nameOfNode :: NodeInfo -> Maybe Name
eqByName :: CNode a => a -> a -> Bool
Documentation
data NodeInfo
Parsed entity attribute
Constructors
OnlyPos Position
NodeInfo Position Name
show/hide Instances
internalNode :: NodeInfo
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
Methods
nodeInfo :: a -> NodeInfo
show/hide Instances
fileOfNode :: CNode a => a -> FilePath
posOfNode :: NodeInfo -> Position
nameOfNode :: NodeInfo -> Maybe Name
eqByName :: CNode a => a -> a -> Bool
equality by name
Produced by Haddock version 2.7.2