MCPcopy Create free account
hub / github.com/defold/defold / to_script_api

Function to_script_api

engine/docs/script_doc.py:696–700  ·  view source on GitHub ↗
(s, output_file)

Source from the content-addressed store, hash-verified

694 json.dump(dct, f, indent = 2)
695
696def to_script_api(s, output_file):
697 msg = parse_document(s, output_file)
698 dct = message_to_yaml_dict(msg)
699 with open(output_file, "w") as f:
700 yaml.dump(dct, f, default_flow_style = False)
701
702
703def to_lua_annotation(s, output_file):

Callers 1

script_doc.pyFile · 0.85

Calls 3

parse_documentFunction · 0.85
message_to_yaml_dictFunction · 0.85
dumpMethod · 0.80

Tested by

no test coverage detected