language-c-0.4.5: Analysis and generation of C code

Portabilityghc
Stabilityexperimental
Maintainerbenedikt.huber@gmail.com
Safe HaskellNone

Language.C.Data.Node

Description

source position and unqiue name

Synopsis

Documentation

undefNode :: NodeInfoSource

create a node with neither name nor positional information

isUndefNode :: NodeInfo -> BoolSource

return True if the node carries neither name nor positional information

mkNodeInfoOnlyPos :: Position -> NodeInfoSource

| Given only a source position, create a new node attribute

mkNodeInfoPosLen :: Position -> PosLength -> NodeInfoSource

Given a source position and the position and length of the last token, create a new node attribute

mkNodeInfo :: Position -> Name -> NodeInfoSource

Given a source position and a unique name, create a new attribute identifier

mkNodeInfo' :: Position -> PosLength -> Name -> NodeInfoSource

Given a source position, the position and length of the last token and a unique name, create a new attribute identifier. Strict in

internalNode :: NodeInfoSource

Deprecated: use undefNode instead

getLastTokenPos :: NodeInfo -> PosLengthSource

get the position and length of the last token

lengthOfNode :: NodeInfo -> Maybe IntSource

get the number of characters an AST node spans

eqByName :: CNode a => a -> a -> BoolSource

equality by name