View Source Styler.AliasEnv (Styler v1.2.1)

A datastructure for maintaining something like compiler alias state when traversing AST.

Not anywhere as correct as what the compiler gives us, but close enough for open source work.

A alias env is a map from an alias's as to its resolution in a context.

Given the ast for

alias Foo.Bar

we'd create the env:

%{:Bar => [:Foo, :Bar]}

Summary

Functions