Membrane Core v0.1.0 Membrane.Helper.Macro View Source

Link to this section Summary

Functions

Imitates import functionality by finding and replacing bare function calls (like foo()) in AST with fully-qualified call (like Some.Module.foo())

Imitates import functionality by finding and replacing bare function calls (like foo()) in AST with fully-qualified call (like Some.Module.foo())

Link to this section Functions

Link to this function inject_call(ast, arg) View Source
inject_call(Macro.t(), {module(), atom()}) :: Macro.t()

Imitates import functionality by finding and replacing bare function calls (like foo()) in AST with fully-qualified call (like Some.Module.foo())

Receives AST fragment as first parameter and a pair {Some.Module, :foo} as second

Link to this function inject_calls(ast, functions) View Source
inject_calls(Macro.t(), [{module(), atom()}]) :: Macro.t()

Imitates import functionality by finding and replacing bare function calls (like foo()) in AST with fully-qualified call (like Some.Module.foo())

Receives AST fragment as first parameter and list of pairs {Some.Module, :foo} as second