tokstyle
Safe HaskellNone
LanguageHaskell2010

Tokstyle.Cimple.Analysis.Destructors

Description

Inference of destructors: functions that free their arguments.

Synopsis

Documentation

destructors :: [(FilePath, [Node (Lexeme Text)])] -> Destructors Source #

Infer the destructors of a program: functions that destroy a parameter or some of its fields on every exit except failure returns.

destroyed :: Destructors -> Node (Lexeme Text) -> [Node (Lexeme Text)] Source #

Get the arguments a call destroys, wholly or partly.