tokstyle
Safe HaskellNone
LanguageHaskell2010

Tokstyle.Cimple.Analysis.Types

Description

Finds the declared types of variables and fields.

Synopsis

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.

typeIn :: Structs -> Function -> Node (Lexeme Text) -> Maybe (Node (Lexeme Text)) Source #

The declared type of an expression in a function, where it names a variable or a field.