Skip to main content

Module ast

Module ast 

Source
Expand description

Minimal typed Starlark AST. Covers the subset BUILD files actually use: atoms, lists, dicts, function calls, named keyword args, load() statements, assignments. Full Starlark eval is out of scope — this is an emission AST only.

Enums§

KwArg
Argument to a Starlark call. Either positional or keyword. The positional_named variant attaches a name for renderer-side pretty-printing (name = ... form), used for the canonical kwarg-style every BUILD file actually authors.
StarlarkStmt
One BUILD file statement.
StarlarkValue