MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / render_module

Function render_module

py/generate_bidi_protocol.py:1139–1148  ·  view source on GitHub ↗
(mod: ModuleIR)

Source from the content-addressed store, hash-verified

1137
1138
1139def render_module(mod: ModuleIR) -> str:
1140 blocks: list[str] = [_HEADER, "\n".join(_imports(mod))]
1141 for e in mod.enums:
1142 blocks.append(_emit_enum(e))
1143 for r in mod.records:
1144 blocks.append(_emit_record(r))
1145 for u in mod.unions:
1146 blocks.append(_emit_union(u))
1147 blocks.append(_emit_domain_class(mod))
1148 return "\n\n\n".join(blocks) + "\n"
1149
1150
1151def exception_class_name(code: str) -> str:

Callers 1

render_allFunction · 0.85

Calls 6

_importsFunction · 0.85
_emit_enumFunction · 0.85
_emit_recordFunction · 0.85
_emit_unionFunction · 0.85
_emit_domain_classFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected