| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Tokstyle.Cimple.Analysis.Types
Description
Finds the declared types of variables and fields.
Synopsis
- type Structs = Map Text (Map Text (Node (Lexeme Text)))
- structs :: [(FilePath, [Node (Lexeme Text)])] -> Structs
- structName :: Node (Lexeme Text) -> Maybe Text
- callbackType :: Node (Lexeme Text) -> Maybe Text
- typeIn :: Structs -> Function -> Node (Lexeme Text) -> Maybe (Node (Lexeme Text))
- bare :: Node (Lexeme Text) -> Node (Lexeme Text)
Documentation
type Structs = Map Text (Map Text (Node (Lexeme Text))) Source #
The declared type of each field of each struct.
structName :: Node (Lexeme Text) -> Maybe Text Source #
Looks through pointers and const, so `const Foo *` gives Foo.