Sha256: 56c90460df770f809d0188322627938b3ae9a3548e4bc5ffd7164f30fa252a23

Contents?: true

Size: 1019 Bytes

Versions: 67

Compression:

Stored size: 1019 Bytes

Contents

const SharedHandlerType = require("./SharedHandlerType");

class CommonGenerator {

    static process_method_arguments(existing_string_builder, common_command, type_array, name_array, handlers) {

        for (let i = 0; i < name_array.length; i++) {
            handlers.SHARED_HANDLER[SharedHandlerType.ARGUMENT_NAME].generate_code(existing_string_builder, common_command, name_array[i], handlers)
            if (i < name_array.length - 1) {
                existing_string_builder.append(", ")
            }
        }
    }

    static process_method_arguments_names(existing_string_builder, common_command, name_array, handlers) {
        for (let i = 0; i < name_array.length; i++) {
            handlers.SHARED_HANDLER[SharedHandlerType.ARGUMENT_NAME].generate_code(existing_string_builder,
                common_command, name_array[i], handlers)
            if (i < name_array.length - 1) {
                existing_string_builder.append(", ")
            }
        }
    }
}

module.exports = CommonGenerator

Version data entries

67 entries across 38 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.5.7 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.6 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.5 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.4 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.3 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.2 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.1 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.5.0 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.11 lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.6 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.6 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/internal/CommonGenerator.js
javonet-ruby-sdk-2.4.5 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/internal/CommonGenerator.js