fontlab_echopy.tooling.generate · declarations 001
Back to fontlab_echopy.tooling.generate
function
function(info: dict[str, Any], module: str, method: bool = False, builtins_name: str = '') -> str
generate
generate(data: dict[str, Any], output: Path, capture_identity: dict[str, str] | None = None, keep: tuple[str, ...] = ()) -> dict[str, Any]
Write source plus a name-coverage manifest; never modify overlay files.
capture_identity (the capture's SHA-256) travels with the raw output so
merge can record which capture the merged package documents. keep names
top-level modules whose existing raw files stay untouched (retained scopes).
module_source
module_source(name: str, scope: dict[str, Any], available: bool) -> str
remove_stale
remove_stale(output: Path, written: set[Path]) -> None
Remove only previously generated modules, never handwritten support code.
scopes
scopes(data: dict[str, Any]) -> Iterator[tuple[str, dict[str, Any], bool, bool]]
Normalize fresh captures and legacy introspector JSON without rewriting it.
source_name
source_name(name: str) -> str
Expose C++ nested/template names as readable source identifiers.
valid
valid(name: str) -> bool