@flock/wirespec
Advanced tools
Comparing version 0.9.15 to 0.9.16
{ | ||
"name": "@flock/wirespec", | ||
"version": "0.9.15", | ||
"version": "0.9.16", | ||
"main": "wirespec-src-plugin-npm.js", | ||
@@ -5,0 +5,0 @@ "types": "wirespec-src-plugin-npm.d.ts", |
@@ -459,2 +459,3 @@ type Nullable<T> = T | null | undefined | ||
function cli(args: Array<string>): void; | ||
function tokenize(source: string): Array<community.flock.wirespec.compiler.lib.WsToken>; | ||
function parse(source: string): community.flock.wirespec.compiler.lib.WsParseResult; | ||
@@ -461,0 +462,0 @@ function generate(source: string, type: string): community.flock.wirespec.compiler.lib.WsStringResult; |
@@ -49,5 +49,10 @@ (function (root, factory) { | ||
var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.c1; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e; | ||
var collectionSizeOrDefault = kotlin_kotlin.$_$.h5; | ||
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k; | ||
var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.e; | ||
var copyToArray = kotlin_kotlin.$_$.v5; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.h1; | ||
var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.w; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.b; | ||
var produce_0 = kotlin_community_flock_wirespec_compiler_lib.$_$.b; | ||
var noWhenBranchMatchedException = kotlin_kotlin.$_$.tf; | ||
@@ -58,4 +63,3 @@ var Left = kotlin_io_arrow_kt_arrow_core.$_$.c; | ||
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d; | ||
var produce_0 = kotlin_community_flock_wirespec_compiler_lib.$_$.c; | ||
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k; | ||
var produce_1 = kotlin_community_flock_wirespec_compiler_lib.$_$.c; | ||
var consume = kotlin_community_flock_wirespec_compiler_lib.$_$.a; | ||
@@ -67,3 +71,2 @@ var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f; | ||
var listOf = kotlin_kotlin.$_$.e7; | ||
var collectionSizeOrDefault = kotlin_kotlin.$_$.h5; | ||
var OpenApiV2Emitter = kotlin_community_flock_wirespec_converter_openapi.$_$.a; | ||
@@ -75,4 +78,3 @@ var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a; | ||
var Companion_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t2; | ||
var produce_1 = kotlin_community_flock_wirespec_compiler_lib.$_$.e; | ||
var copyToArray = kotlin_kotlin.$_$.v5; | ||
var produce_2 = kotlin_community_flock_wirespec_compiler_lib.$_$.f; | ||
//endregion | ||
@@ -129,2 +131,23 @@ //region block: pre-declaration | ||
} | ||
function tokenize_0(source) { | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
// Inline function 'arrow.core.NonEmptyList.map' call | ||
var this_0 = tokenize(WirespecSpec_getInstance(), source); | ||
// Inline function 'community.flock.wirespec.plugin.npm.tokenize.<anonymous>' call | ||
var it = this_0.rj_1; | ||
var tmp = produce(it); | ||
// Inline function 'kotlin.collections.map' call | ||
var this_1 = this_0.sj_1; | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10)); | ||
var tmp0_iterator = this_1.v(); | ||
while (tmp0_iterator.w()) { | ||
var item = tmp0_iterator.y(); | ||
// Inline function 'community.flock.wirespec.plugin.npm.tokenize.<anonymous>' call | ||
var tmp$ret$1 = produce(item); | ||
destination.s(tmp$ret$1); | ||
} | ||
var this_2 = new NonEmptyList(tmp, destination); | ||
return copyToArray(this_2); | ||
} | ||
function parse(source) { | ||
@@ -135,3 +158,3 @@ // Inline function 'kotlin.let' call | ||
var it = tokenize(WirespecSpec_getInstance(), source); | ||
return produce((new Parser(get_noLogger())).u20(it)); | ||
return produce_0((new Parser(get_noLogger())).u20(it)); | ||
} | ||
@@ -163,3 +186,3 @@ function generate(source, type) { | ||
var tmp$ret$5 = tmp; | ||
return produce_0(tmp$ret$5); | ||
return produce_1(tmp$ret$5); | ||
} | ||
@@ -295,3 +318,3 @@ function emit(ast, emitter, packageName) { | ||
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call | ||
var tmp$ret$23 = produce_1(item_6); | ||
var tmp$ret$23 = produce_2(item_6); | ||
destination_6.s(tmp$ret$23); | ||
@@ -346,2 +369,3 @@ } | ||
$community$flock$wirespec$plugin$npm.cli = cli; | ||
$community$flock$wirespec$plugin$npm.tokenize = tokenize_0; | ||
$community$flock$wirespec$plugin$npm.parse = parse; | ||
@@ -348,0 +372,0 @@ $community$flock$wirespec$plugin$npm.generate = generate; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5709600
88356