language-c-0.3.1.1: Analysis and generation of C codeSource 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 Source
Parsed entity attribute
Constructors
OnlyPos Position
NodeInfo Position Name
show/hide Instances
internalNode :: NodeInfoSource
mkNodeInfoOnlyPos :: Position -> NodeInfoSource
Given only a source position, create a new attribute identifier
mkNodeInfo :: Position -> Name -> NodeInfoSource
Given a source position and a unique name, create a new attribute identifier
class CNode a whereSource
a class for convenient access to the attributes of an attributed object
Methods
nodeInfo :: a -> NodeInfoSource
show/hide Instances
fileOfNode :: CNode a => a -> FilePathSource
posOfNode :: NodeInfo -> PositionSource
nameOfNode :: NodeInfo -> Maybe NameSource
eqByName :: CNode a => a -> a -> BoolSource
equality by name
Produced by Haddock version 2.4.2