Sha256: 3fb93fff60296389a2e6d22848069733633da95db328644f429a0a3177a1c22b
Contents?: true
Size: 895 Bytes
Versions: 29
Compression:
Stored size: 895 Bytes
Contents
const AbstractGeneratorHandler = require("./AbstractGeneratorHandler"); const SharedHandlerType = require("../internal/SharedHandlerType"); const CommonGenerator = require("../internal/CommonGenerator"); const OS = require("os"); class CreateInstanceGeneratorHandler extends AbstractGeneratorHandler { generate_code(existing_string_builder, common_command, used_object, handlers) { existing_string_builder.append("constructor(") CommonGenerator.process_method_arguments(existing_string_builder, common_command, used_object.payload[2], used_object.payload[3], handlers) existing_string_builder.append(")") handlers.SHARED_HANDLER[SharedHandlerType.METHOD_BODY].generate_code(existing_string_builder, common_command, used_object, handlers) existing_string_builder.append(OS.EOL) } } module.exports = CreateInstanceGeneratorHandler
Version data entries
29 entries across 29 versions & 1 rubygems