MCPcopy Index your code
hub / github.com/nodejs/node / generate_lib_file

Function generate_lib_file

deps/inspector_protocol/code_generator.py:717–724  ·  view source on GitHub ↗
(file_name, template_files)

Source from the content-addressed store, hash-verified

715 ]
716
717 def generate_lib_file(file_name, template_files):
718 parts = []
719 for template_file in template_files:
720 inputs.append(os.path.join(lib_templates_dir, template_file))
721 template = jinja_env.get_template("lib/" + template_file)
722 parts.append(template.render(template_context))
723 source_set.add(template.filename)
724 outputs[file_name] = "\n\n".join(parts)
725
726 generate_lib_file(os.path.join(config.lib.output, to_file_name(
727 config, "Forward.h")), forward_h_templates)

Callers 1

mainFunction · 0.70

Calls 5

addMethod · 0.65
appendMethod · 0.45
joinMethod · 0.45
get_templateMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…