| |||||||||||||||||||||||
| |||||||||||||||||||||||
Description | |||||||||||||||||||||||
This module provides the notion of identifiers in C, speed up using hashing. Identifiers are associated optionally associated with a NodeInfo, i.e. with a unique Name and a source location (Position). The ordering relation on identifiers is based on the hash and does not follow the lexical order. | |||||||||||||||||||||||
Synopsis | |||||||||||||||||||||||
| |||||||||||||||||||||||
Documentation | |||||||||||||||||||||||
data Ident | |||||||||||||||||||||||
| |||||||||||||||||||||||
data SUERef | |||||||||||||||||||||||
| |||||||||||||||||||||||
isAnonymousRef :: SUERef -> Bool | |||||||||||||||||||||||
Return true if the struct/union/enum reference is anonymous. | |||||||||||||||||||||||
mkIdent :: Position -> String -> Name -> Ident | |||||||||||||||||||||||
build an identifier from a string.
| |||||||||||||||||||||||
builtinIdent :: String -> Ident | |||||||||||||||||||||||
returns a builtin identifier (has builtin position and no unique name) | |||||||||||||||||||||||
internalIdent :: String -> Ident | |||||||||||||||||||||||
returns an internal identifier (has internal position and no unique name) | |||||||||||||||||||||||
internalIdentAt :: Position -> String -> Ident | |||||||||||||||||||||||
return an internal identifier with position info | |||||||||||||||||||||||
isInternalIdent :: Ident -> Bool | |||||||||||||||||||||||
return True if the given identifier is internal | |||||||||||||||||||||||
identToString :: Ident -> String | |||||||||||||||||||||||
string of an identifier | |||||||||||||||||||||||
dumpIdent :: Ident -> String | |||||||||||||||||||||||
dump the identifier string and its positions for debugging purposes | |||||||||||||||||||||||
Produced by Haddock version 2.1.0 |