MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / PhaseContext

Class PhaseContext

Scripts/codegen/generate_ue_components.py:2769–2779  ·  view source on GitHub ↗

All state a codegen emission phase needs. Phases mutate ``writes`` and surface diagnostics through ``_diag_add``.

Source from the content-addressed store, hash-verified

2767 for a in iter_category_attrs(attrs, global_excl=global_excl,
2768 elem_excl=elem_excl,
2769 canon_absorbed=canon_absorbed):
2770 if a in xml_enum_attrs:
2771 kept.append(xml_enum_attrs[a]["ue_property"])
2772 continue
2773 kept.append(renames.get(a, a))
2774 return kept
2775
2776
2777def emit_schema_for_tests(schema: Dict[str, Any], rules: Dict[str, Any]) -> FileWrite:
2778 """Generate a C++ header that exposes schema attribute lists per
2779 category to URLab automation tests. Every category emits a
2780 ``CatProps()`` accessor returning a static ``TArray<FString>`` of
2781 the codegen-owned UPROPERTY names."""
2782 lines: List[str] = [

Callers 1

collect_all_writesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected