@flock/wirespec
Advanced tools
Comparing version 0.10.22 to 0.10.23
@@ -210,2 +210,8 @@ (function (factory) { | ||
}; | ||
function right(_this__u8e3s4) { | ||
return new Right(_this__u8e3s4); | ||
} | ||
function left(_this__u8e3s4) { | ||
return new Left(_this__u8e3s4); | ||
} | ||
function NonEmptyList_init_$Init$(list, $this) { | ||
@@ -397,5 +403,7 @@ NonEmptyList.call($this, list.k(0), drop(list, 1)); | ||
_.$_$.g = curried; | ||
_.$_$.h = nonEmptyListOf; | ||
_.$_$.i = nonFatalOrThrow; | ||
_.$_$.j = toNonEmptyListOrNull; | ||
_.$_$.h = left; | ||
_.$_$.i = nonEmptyListOf; | ||
_.$_$.j = nonFatalOrThrow; | ||
_.$_$.k = right; | ||
_.$_$.l = toNonEmptyListOrNull; | ||
//endregion | ||
@@ -402,0 +410,0 @@ return _; |
{ | ||
"name": "@flock/wirespec", | ||
"version": "0.10.22", | ||
"version": "0.10.23", | ||
"main": "wirespec-src-plugin-npm.js", | ||
@@ -5,0 +5,0 @@ "types": "wirespec-src-plugin-npm.d.ts", |
@@ -64,34 +64,34 @@ (function (factory) { | ||
function CompilerArguments(operation, input, output, languages, packageName, logLevel, shared, strict) { | ||
this.b2b_1 = operation; | ||
this.c2b_1 = input; | ||
this.d2b_1 = output; | ||
this.e2b_1 = languages; | ||
this.f2b_1 = packageName; | ||
this.g2b_1 = logLevel; | ||
this.h2b_1 = shared; | ||
this.i2b_1 = strict; | ||
this.i2b_1 = operation; | ||
this.j2b_1 = input; | ||
this.k2b_1 = output; | ||
this.l2b_1 = languages; | ||
this.m2b_1 = packageName; | ||
this.n2b_1 = logLevel; | ||
this.o2b_1 = shared; | ||
this.p2b_1 = strict; | ||
} | ||
protoOf(CompilerArguments).toString = function () { | ||
var tmp = toString(this.b2b_1); | ||
var tmp_0 = toString(this.c2b_1); | ||
var tmp_1 = this.d2b_1; | ||
return 'CompilerArguments(operation=' + tmp + ', input=' + tmp_0 + ', output=' + toString_0(tmp_1 == null ? null : new Output(tmp_1)) + ', languages=' + toString(this.e2b_1) + ', packageName=' + PackageName__toString_impl_pes5ww(this.f2b_1) + ', logLevel=' + this.g2b_1.toString() + ', shared=' + this.h2b_1 + ', strict=' + this.i2b_1 + ')'; | ||
var tmp = toString(this.i2b_1); | ||
var tmp_0 = toString(this.j2b_1); | ||
var tmp_1 = this.k2b_1; | ||
return 'CompilerArguments(operation=' + tmp + ', input=' + tmp_0 + ', output=' + toString_0(tmp_1 == null ? null : new Output(tmp_1)) + ', languages=' + toString(this.l2b_1) + ', packageName=' + PackageName__toString_impl_pes5ww(this.m2b_1) + ', logLevel=' + this.n2b_1.toString() + ', shared=' + this.o2b_1 + ', strict=' + this.p2b_1 + ')'; | ||
}; | ||
protoOf(CompilerArguments).hashCode = function () { | ||
var result = hashCode(this.b2b_1); | ||
result = imul(result, 31) + hashCode(this.c2b_1) | 0; | ||
var result = hashCode(this.i2b_1); | ||
result = imul(result, 31) + hashCode(this.j2b_1) | 0; | ||
var tmp = imul(result, 31); | ||
var tmp_0; | ||
var tmp_1 = this.d2b_1; | ||
var tmp_1 = this.k2b_1; | ||
if ((tmp_1 == null ? null : new Output(tmp_1)) == null) { | ||
tmp_0 = 0; | ||
} else { | ||
tmp_0 = Output__hashCode_impl_m9q6pd(this.d2b_1); | ||
tmp_0 = Output__hashCode_impl_m9q6pd(this.k2b_1); | ||
} | ||
result = tmp + tmp_0 | 0; | ||
result = imul(result, 31) + hashCode(this.e2b_1) | 0; | ||
result = imul(result, 31) + PackageName__hashCode_impl_nv5z9d(this.f2b_1) | 0; | ||
result = imul(result, 31) + this.g2b_1.hashCode() | 0; | ||
result = imul(result, 31) + getBooleanHashCode(this.h2b_1) | 0; | ||
result = imul(result, 31) + getBooleanHashCode(this.i2b_1) | 0; | ||
result = imul(result, 31) + hashCode(this.l2b_1) | 0; | ||
result = imul(result, 31) + PackageName__hashCode_impl_nv5z9d(this.m2b_1) | 0; | ||
result = imul(result, 31) + this.n2b_1.hashCode() | 0; | ||
result = imul(result, 31) + getBooleanHashCode(this.o2b_1) | 0; | ||
result = imul(result, 31) + getBooleanHashCode(this.p2b_1) | 0; | ||
return result; | ||
@@ -105,20 +105,20 @@ }; | ||
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE(); | ||
if (!equals(this.b2b_1, tmp0_other_with_cast.b2b_1)) | ||
if (!equals(this.i2b_1, tmp0_other_with_cast.i2b_1)) | ||
return false; | ||
if (!equals(this.c2b_1, tmp0_other_with_cast.c2b_1)) | ||
if (!equals(this.j2b_1, tmp0_other_with_cast.j2b_1)) | ||
return false; | ||
var tmp = this.d2b_1; | ||
var tmp = this.k2b_1; | ||
var tmp_0 = tmp == null ? null : new Output(tmp); | ||
var tmp_1 = tmp0_other_with_cast.d2b_1; | ||
var tmp_1 = tmp0_other_with_cast.k2b_1; | ||
if (!equals(tmp_0, tmp_1 == null ? null : new Output(tmp_1))) | ||
return false; | ||
if (!equals(this.e2b_1, tmp0_other_with_cast.e2b_1)) | ||
if (!equals(this.l2b_1, tmp0_other_with_cast.l2b_1)) | ||
return false; | ||
if (!(this.f2b_1 === tmp0_other_with_cast.f2b_1)) | ||
if (!(this.m2b_1 === tmp0_other_with_cast.m2b_1)) | ||
return false; | ||
if (!this.g2b_1.equals(tmp0_other_with_cast.g2b_1)) | ||
if (!this.n2b_1.equals(tmp0_other_with_cast.n2b_1)) | ||
return false; | ||
if (!(this.h2b_1 === tmp0_other_with_cast.h2b_1)) | ||
if (!(this.o2b_1 === tmp0_other_with_cast.o2b_1)) | ||
return false; | ||
if (!(this.i2b_1 === tmp0_other_with_cast.i2b_1)) | ||
if (!(this.p2b_1 === tmp0_other_with_cast.p2b_1)) | ||
return false; | ||
@@ -142,3 +142,3 @@ return true; | ||
return false; | ||
if (!($this === (other instanceof PackageName ? other.j2b_1 : THROW_CCE()))) | ||
if (!($this === (other instanceof PackageName ? other.q2b_1 : THROW_CCE()))) | ||
return false; | ||
@@ -148,15 +148,15 @@ return true; | ||
function PackageName(value) { | ||
this.j2b_1 = value; | ||
this.q2b_1 = value; | ||
} | ||
protoOf(PackageName).b1 = function () { | ||
return _PackageName___get_value__impl__2zr98c(this.j2b_1); | ||
return _PackageName___get_value__impl__2zr98c(this.q2b_1); | ||
}; | ||
protoOf(PackageName).toString = function () { | ||
return PackageName__toString_impl_pes5ww(this.j2b_1); | ||
return PackageName__toString_impl_pes5ww(this.q2b_1); | ||
}; | ||
protoOf(PackageName).hashCode = function () { | ||
return PackageName__hashCode_impl_nv5z9d(this.j2b_1); | ||
return PackageName__hashCode_impl_nv5z9d(this.q2b_1); | ||
}; | ||
protoOf(PackageName).equals = function (other) { | ||
return PackageName__equals_impl_eo1xnn(this.j2b_1, other); | ||
return PackageName__equals_impl_eo1xnn(this.q2b_1, other); | ||
}; | ||
@@ -184,9 +184,9 @@ function Compile() { | ||
function Convert(format) { | ||
this.k2b_1 = format; | ||
this.r2b_1 = format; | ||
} | ||
protoOf(Convert).toString = function () { | ||
return 'Convert(format=' + this.k2b_1.toString() + ')'; | ||
return 'Convert(format=' + this.r2b_1.toString() + ')'; | ||
}; | ||
protoOf(Convert).hashCode = function () { | ||
return this.k2b_1.hashCode(); | ||
return this.r2b_1.hashCode(); | ||
}; | ||
@@ -199,3 +199,3 @@ protoOf(Convert).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof Convert ? other : THROW_CCE(); | ||
if (!this.k2b_1.equals(tmp0_other_with_cast.k2b_1)) | ||
if (!this.r2b_1.equals(tmp0_other_with_cast.r2b_1)) | ||
return false; | ||
@@ -245,3 +245,3 @@ return true; | ||
} | ||
protoOf(Companion_0).l2b = function (input) { | ||
protoOf(Companion_0).s2b = function (input) { | ||
// Inline function 'kotlin.let' call | ||
@@ -267,3 +267,3 @@ // Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'community.flock.wirespec.plugin.Companion.parse.<anonymous>.<anonymous>' call | ||
if (element.o2b_1 === ext) { | ||
if (element.v2b_1 === ext) { | ||
tmp$ret$5 = element; | ||
@@ -294,22 +294,22 @@ break $l$block; | ||
extension = extension === VOID ? FileExtension_Wirespec_getInstance() : extension; | ||
this.p2b_1 = directory; | ||
this.q2b_1 = fileName; | ||
this.r2b_1 = extension; | ||
this.w2b_1 = directory; | ||
this.x2b_1 = fileName; | ||
this.y2b_1 = extension; | ||
} | ||
protoOf(FullFilePath).toString = function () { | ||
return this.p2b_1 + '/' + _FileName___get_value__impl__3u4cz6(this.q2b_1) + '.' + this.r2b_1.o2b_1; | ||
return this.w2b_1 + '/' + _FileName___get_value__impl__3u4cz6(this.x2b_1) + '.' + this.y2b_1.v2b_1; | ||
}; | ||
protoOf(FullFilePath).s2b = function (directory, fileName, extension) { | ||
protoOf(FullFilePath).z2b = function (directory, fileName, extension) { | ||
return new FullFilePath(directory, fileName, extension); | ||
}; | ||
protoOf(FullFilePath).t2b = function (directory, fileName, extension, $super) { | ||
directory = directory === VOID ? this.p2b_1 : directory; | ||
fileName = fileName === VOID ? this.q2b_1 : fileName; | ||
extension = extension === VOID ? this.r2b_1 : extension; | ||
return $super === VOID ? this.s2b(directory, fileName, extension) : $super.s2b.call(this, directory, new FileName(fileName), extension); | ||
protoOf(FullFilePath).a2c = function (directory, fileName, extension, $super) { | ||
directory = directory === VOID ? this.w2b_1 : directory; | ||
fileName = fileName === VOID ? this.x2b_1 : fileName; | ||
extension = extension === VOID ? this.y2b_1 : extension; | ||
return $super === VOID ? this.z2b(directory, fileName, extension) : $super.z2b.call(this, directory, new FileName(fileName), extension); | ||
}; | ||
protoOf(FullFilePath).hashCode = function () { | ||
var result = getStringHashCode(this.p2b_1); | ||
result = imul(result, 31) + FileName__hashCode_impl_43wak5(this.q2b_1) | 0; | ||
result = imul(result, 31) + this.r2b_1.hashCode() | 0; | ||
var result = getStringHashCode(this.w2b_1); | ||
result = imul(result, 31) + FileName__hashCode_impl_43wak5(this.x2b_1) | 0; | ||
result = imul(result, 31) + this.y2b_1.hashCode() | 0; | ||
return result; | ||
@@ -323,7 +323,7 @@ }; | ||
var tmp0_other_with_cast = other instanceof FullFilePath ? other : THROW_CCE(); | ||
if (!(this.p2b_1 === tmp0_other_with_cast.p2b_1)) | ||
if (!(this.w2b_1 === tmp0_other_with_cast.w2b_1)) | ||
return false; | ||
if (!(this.q2b_1 === tmp0_other_with_cast.q2b_1)) | ||
if (!(this.x2b_1 === tmp0_other_with_cast.x2b_1)) | ||
return false; | ||
if (!this.r2b_1.equals(tmp0_other_with_cast.r2b_1)) | ||
if (!this.y2b_1.equals(tmp0_other_with_cast.y2b_1)) | ||
return false; | ||
@@ -347,3 +347,3 @@ return true; | ||
return false; | ||
if (!($this === (other instanceof FileName ? other.u2b_1 : THROW_CCE()))) | ||
if (!($this === (other instanceof FileName ? other.b2c_1 : THROW_CCE()))) | ||
return false; | ||
@@ -353,15 +353,15 @@ return true; | ||
function FileName(value) { | ||
this.u2b_1 = value; | ||
this.b2c_1 = value; | ||
} | ||
protoOf(FileName).b1 = function () { | ||
return _FileName___get_value__impl__3u4cz6(this.u2b_1); | ||
return _FileName___get_value__impl__3u4cz6(this.b2c_1); | ||
}; | ||
protoOf(FileName).toString = function () { | ||
return FileName__toString_impl_hn9m8q(this.u2b_1); | ||
return FileName__toString_impl_hn9m8q(this.b2c_1); | ||
}; | ||
protoOf(FileName).hashCode = function () { | ||
return FileName__hashCode_impl_43wak5(this.u2b_1); | ||
return FileName__hashCode_impl_43wak5(this.b2c_1); | ||
}; | ||
protoOf(FileName).equals = function (other) { | ||
return FileName__equals_impl_o96ox3(this.u2b_1, other); | ||
return FileName__equals_impl_o96ox3(this.b2c_1, other); | ||
}; | ||
@@ -395,9 +395,9 @@ function Console$read$lambda() { | ||
function FullDirPath(path) { | ||
this.v2b_1 = path; | ||
this.c2c_1 = path; | ||
} | ||
protoOf(FullDirPath).toString = function () { | ||
return 'FullDirPath(path=' + this.v2b_1 + ')'; | ||
return 'FullDirPath(path=' + this.c2c_1 + ')'; | ||
}; | ||
protoOf(FullDirPath).hashCode = function () { | ||
return getStringHashCode(this.v2b_1); | ||
return getStringHashCode(this.c2c_1); | ||
}; | ||
@@ -410,3 +410,3 @@ protoOf(FullDirPath).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof FullDirPath ? other : THROW_CCE(); | ||
if (!(this.v2b_1 === tmp0_other_with_cast.v2b_1)) | ||
if (!(this.c2c_1 === tmp0_other_with_cast.c2c_1)) | ||
return false; | ||
@@ -424,3 +424,3 @@ return true; | ||
} | ||
protoOf(Companion_1).w2b = function () { | ||
protoOf(Companion_1).d2c = function () { | ||
// Inline function 'kotlin.collections.associateBy' call | ||
@@ -501,6 +501,6 @@ var this_0 = get_entries_0(); | ||
Enum.call(this, name, ordinal); | ||
this.o2b_1 = value; | ||
this.v2b_1 = value; | ||
} | ||
protoOf(FileExtension).b1 = function () { | ||
return this.o2b_1; | ||
return this.v2b_1; | ||
}; | ||
@@ -570,3 +570,3 @@ function Language_Java_getInstance() { | ||
} | ||
protoOf(Companion_2).x2b = function (s) { | ||
protoOf(Companion_2).e2c = function (s) { | ||
var tmp; | ||
@@ -592,3 +592,3 @@ if (s == null) { | ||
return false; | ||
if (!($this === (other instanceof Output ? other.y2b_1 : THROW_CCE()))) | ||
if (!($this === (other instanceof Output ? other.f2c_1 : THROW_CCE()))) | ||
return false; | ||
@@ -598,15 +598,15 @@ return true; | ||
function Output(value) { | ||
this.y2b_1 = value; | ||
this.f2c_1 = value; | ||
} | ||
protoOf(Output).b1 = function () { | ||
return _Output___get_value__impl__a8kw1g(this.y2b_1); | ||
return _Output___get_value__impl__a8kw1g(this.f2c_1); | ||
}; | ||
protoOf(Output).toString = function () { | ||
return Output__toString_impl_r07ygw(this.y2b_1); | ||
return Output__toString_impl_r07ygw(this.f2c_1); | ||
}; | ||
protoOf(Output).hashCode = function () { | ||
return Output__hashCode_impl_m9q6pd(this.y2b_1); | ||
return Output__hashCode_impl_m9q6pd(this.f2c_1); | ||
}; | ||
protoOf(Output).equals = function (other) { | ||
return Output__equals_impl_7y48wd(this.y2b_1, other); | ||
return Output__equals_impl_7y48wd(this.f2c_1, other); | ||
}; | ||
@@ -613,0 +613,0 @@ //region block: init |
(function (factory) { | ||
if (typeof define === 'function' && define.amd) | ||
define(['exports', './kotlin-kotlin-stdlib.js', './clikt-clikt.js', './wirespec-src-plugin-arguments.js', './wirespec-src-compiler-core.js', './wirespec-src-converter-openapi.js', './arrow-arrow-core.js', './wirespec-src-compiler-lib.js'], factory); | ||
define(['exports', './kotlin-kotlin-stdlib.js', './clikt-clikt.js', './wirespec-src-plugin-arguments.js', './arrow-arrow-core.js', './wirespec-src-compiler-core.js', './wirespec-src-converter-openapi.js', './wirespec-src-compiler-lib.js'], factory); | ||
else if (typeof exports === 'object') | ||
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./clikt-clikt.js'), require('./wirespec-src-plugin-arguments.js'), require('./wirespec-src-compiler-core.js'), require('./wirespec-src-converter-openapi.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-lib.js')); | ||
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./clikt-clikt.js'), require('./wirespec-src-plugin-arguments.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-core.js'), require('./wirespec-src-converter-openapi.js'), require('./wirespec-src-compiler-lib.js')); | ||
else { | ||
@@ -16,2 +16,5 @@ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') { | ||
} | ||
if (typeof globalThis['arrow-arrow-core'] === 'undefined') { | ||
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'arrow-arrow-core' was not found. Please, check whether 'arrow-arrow-core' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') { | ||
@@ -23,24 +26,21 @@ throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
if (typeof globalThis['arrow-arrow-core'] === 'undefined') { | ||
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'arrow-arrow-core' was not found. Please, check whether 'arrow-arrow-core' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
if (typeof globalThis['wirespec-src-compiler-lib'] === 'undefined') { | ||
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-compiler-lib' was not found. Please, check whether 'wirespec-src-compiler-lib' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
globalThis['wirespec-src-plugin-cli'] = factory(typeof globalThis['wirespec-src-plugin-cli'] === 'undefined' ? {} : globalThis['wirespec-src-plugin-cli'], globalThis['kotlin-kotlin-stdlib'], globalThis['clikt-clikt'], globalThis['wirespec-src-plugin-arguments'], globalThis['wirespec-src-compiler-core'], globalThis['wirespec-src-converter-openapi'], globalThis['arrow-arrow-core'], globalThis['wirespec-src-compiler-lib']); | ||
globalThis['wirespec-src-plugin-cli'] = factory(typeof globalThis['wirespec-src-plugin-cli'] === 'undefined' ? {} : globalThis['wirespec-src-plugin-cli'], globalThis['kotlin-kotlin-stdlib'], globalThis['clikt-clikt'], globalThis['wirespec-src-plugin-arguments'], globalThis['arrow-arrow-core'], globalThis['wirespec-src-compiler-core'], globalThis['wirespec-src-converter-openapi'], globalThis['wirespec-src-compiler-lib']); | ||
} | ||
}(function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_lib) { | ||
}(function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_community_flock_wirespec_compiler_lib) { | ||
'use strict'; | ||
//region block: imports | ||
var Unit_instance = kotlin_kotlin.$_$.g4; | ||
var subcommands = kotlin_clikt_clikt.$_$.c; | ||
var subcommands = kotlin_clikt_clikt.$_$.d; | ||
var protoOf = kotlin_kotlin.$_$.xa; | ||
var initMetadataForCompanion = kotlin_kotlin.$_$.y9; | ||
var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b; | ||
var NoOpCliktCommand = kotlin_clikt_clikt.$_$.c; | ||
var VOID = kotlin_kotlin.$_$.g; | ||
var initMetadataForClass = kotlin_kotlin.$_$.x9; | ||
var option = kotlin_clikt_clikt.$_$.h; | ||
var option = kotlin_clikt_clikt.$_$.i; | ||
var Companion_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.x; | ||
var choice = kotlin_clikt_clikt.$_$.j; | ||
var multiple = kotlin_clikt_clikt.$_$.g; | ||
var choice = kotlin_clikt_clikt.$_$.k; | ||
var multiple = kotlin_clikt_clikt.$_$.h; | ||
var Compile_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.y; | ||
@@ -51,3 +51,8 @@ var Companion_instance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.z; | ||
var CompilerArguments = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.a; | ||
var argument = kotlin_clikt_clikt.$_$.d; | ||
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg; | ||
var joinToString = kotlin_kotlin.$_$.s6; | ||
var CliktError = kotlin_clikt_clikt.$_$.b; | ||
var Left = kotlin_io_arrow_kt_arrow_core.$_$.d; | ||
var Right = kotlin_io_arrow_kt_arrow_core.$_$.e; | ||
var argument = kotlin_clikt_clikt.$_$.e; | ||
var values = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.c; | ||
@@ -57,3 +62,3 @@ var mapCapacity = kotlin_kotlin.$_$.i7; | ||
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t; | ||
var choice_0 = kotlin_clikt_clikt.$_$.i; | ||
var choice_0 = kotlin_clikt_clikt.$_$.j; | ||
var Language_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.p; | ||
@@ -64,17 +69,16 @@ var listOf = kotlin_kotlin.$_$.g7; | ||
var CliktCommand = kotlin_clikt_clikt.$_$.a; | ||
var default_0 = kotlin_clikt_clikt.$_$.e; | ||
var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.g2; | ||
var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z1; | ||
var flag = kotlin_clikt_clikt.$_$.f; | ||
var default_0 = kotlin_clikt_clikt.$_$.f; | ||
var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.n2; | ||
var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2; | ||
var flag = kotlin_clikt_clikt.$_$.g; | ||
var Companion_instance_2 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.w; | ||
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d; | ||
var Console_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v; | ||
var toString = kotlin_kotlin.$_$.bb; | ||
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1; | ||
var THROW_CCE = kotlin_kotlin.$_$.if; | ||
var isCharSequence = kotlin_kotlin.$_$.ha; | ||
var trim = kotlin_kotlin.$_$.pe; | ||
var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1; | ||
var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2; | ||
var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2; | ||
var toString = kotlin_kotlin.$_$.bb; | ||
var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c2; | ||
var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2; | ||
var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f2; | ||
var Enum = kotlin_kotlin.$_$.ye; | ||
@@ -86,6 +90,9 @@ var KProperty1 = kotlin_kotlin.$_$.sb; | ||
var copyToArray = kotlin_kotlin.$_$.x5; | ||
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.k1; | ||
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg; | ||
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.q1; | ||
var FileReadException = kotlin_community_flock_wirespec_compiler_core.$_$.h; | ||
var nonEmptyListOf = kotlin_io_arrow_kt_arrow_core.$_$.i; | ||
var left = kotlin_io_arrow_kt_arrow_core.$_$.h; | ||
var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o; | ||
var FullFilePath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.e; | ||
var addAll = kotlin_kotlin.$_$.y4; | ||
var Console = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.b; | ||
@@ -104,6 +111,7 @@ var Compile = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.f; | ||
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a; | ||
var right = kotlin_io_arrow_kt_arrow_core.$_$.k; | ||
var _FileName___init__impl__nzn12e = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q; | ||
var print = kotlin_kotlin.$_$.d9; | ||
var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i; | ||
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.i1; | ||
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.o1; | ||
var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c; | ||
@@ -121,8 +129,5 @@ var FileExtension_Java_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.j; | ||
var OpenApiV3Emitter_getInstance = kotlin_community_flock_wirespec_converter_openapi.$_$.c; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f2; | ||
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.h1; | ||
var Left = kotlin_io_arrow_kt_arrow_core.$_$.d; | ||
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2; | ||
var Right = kotlin_io_arrow_kt_arrow_core.$_$.e; | ||
var println = kotlin_kotlin.$_$.b9; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m2; | ||
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.n1; | ||
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h2; | ||
var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h; | ||
@@ -135,8 +140,8 @@ var ensureNotNull = kotlin_kotlin.$_$.yf; | ||
var split = kotlin_kotlin.$_$.nd; | ||
var joinToString = kotlin_kotlin.$_$.s6; | ||
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.j1; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.l1; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.k; | ||
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.p1; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.r1; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.l; | ||
var isInterface = kotlin_kotlin.$_$.la; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e; | ||
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1; | ||
var endsWith = kotlin_kotlin.$_$.nc; | ||
@@ -175,3 +180,3 @@ var dropLast = kotlin_kotlin.$_$.kc; | ||
var l = function (p0) { | ||
$boundThis.k3q(p0); | ||
$boundThis.r3q(p0); | ||
return Unit_instance; | ||
@@ -184,4 +189,4 @@ }; | ||
} | ||
protoOf(Companion).p42 = function (compile, convert) { | ||
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)])); | ||
protoOf(Companion).w42 = function (compile, convert, write) { | ||
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile, write), new Convert_0(convert, write)])); | ||
}; | ||
@@ -196,24 +201,49 @@ var Companion_instance_4; | ||
function _get_languages__ojonze($this) { | ||
return $this.p43_1.w3z($this, languages$factory_0()); | ||
return $this.x43_1.d40($this, languages$factory_0()); | ||
} | ||
function Compile_0(block) { | ||
function Compile$run$lambda(e) { | ||
var tmp0_elvis_lhs = e.message; | ||
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; | ||
} | ||
function Compile_0(block, write) { | ||
CommonOptions.call(this); | ||
this.o43_1 = block; | ||
this.p43_1 = multiple(choice(option(this, Options_Language_getInstance().s43_1.slice(), 'Language'), Companion_instance.w2b()), VOID, true).h40(this, languages$factory()); | ||
this.v43_1 = block; | ||
this.w43_1 = write; | ||
this.x43_1 = multiple(choice(option(this, Options_Language_getInstance().a44_1.slice(), 'Language'), Companion_instance.d2c()), VOID, true).o40(this, languages$factory()); | ||
} | ||
protoOf(Compile_0).l3q = function () { | ||
protoOf(Compile_0).s3q = function () { | ||
// Inline function 'kotlin.collections.forEach' call | ||
// Inline function 'kotlin.let' call | ||
var this_0 = new CompilerArguments(Compile_instance, this.s44(this.r44()), Companion_instance_0.x2b(this.t44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.u44()), this.w44(this.v44()), this.x44(), this.y44()); | ||
var this_0 = new CompilerArguments(Compile_instance, this.a45(this.z44()), Companion_instance_0.e2c(this.b45()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.c45()), this.e45(this.d45()), this.f45(), this.g45()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.o43_1(this_0); | ||
var tmp0_iterator = this.v43_1(this_0).g(); | ||
while (tmp0_iterator.h()) { | ||
var element = tmp0_iterator.i(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call | ||
if (element instanceof Right) { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var destruct = element.ak_1; | ||
var result = destruct.qd(); | ||
var file = destruct.rd(); | ||
this.w43_1(result, file); | ||
} else { | ||
if (element instanceof Left) { | ||
throw new CliktError(joinToString(element.uj_1, VOID, VOID, VOID, VOID, VOID, Compile$run$lambda)); | ||
} else { | ||
noWhenBranchMatchedException(); | ||
} | ||
} | ||
} | ||
}; | ||
function _get_format__qlarck($this) { | ||
return $this.y45_1.w3z($this, format$factory_0()); | ||
return $this.h46_1.d40($this, format$factory_0()); | ||
} | ||
function _get_languages__ojonze_0($this) { | ||
return $this.z45_1.w3z($this, languages$factory_2()); | ||
return $this.i46_1.d40($this, languages$factory_2()); | ||
} | ||
function Convert_0(block) { | ||
function Convert_0(block, write) { | ||
CommonOptions.call(this); | ||
this.x45_1 = block; | ||
this.f46_1 = block; | ||
this.g46_1 = write; | ||
var tmp = this; | ||
@@ -238,7 +268,7 @@ // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call | ||
} | ||
tmp.y45_1 = choice_0(this_0, destination, true).c3z(this, format$factory()); | ||
this.z45_1 = multiple(choice(option(this, Options_Language_getInstance().s43_1.slice(), 'Language'), Companion_instance.w2b(), VOID, true), listOf(Language_Wirespec_getInstance())).h40(this, languages$factory_1()); | ||
tmp.h46_1 = choice_0(this_0, destination, true).j3z(this, format$factory()); | ||
this.i46_1 = multiple(choice(option(this, Options_Language_getInstance().a44_1.slice(), 'Language'), Companion_instance.d2c(), VOID, true), listOf(Language_Wirespec_getInstance())).o40(this, languages$factory_1()); | ||
} | ||
protoOf(Convert_0).l3q = function () { | ||
if (this.r44() == null) | ||
protoOf(Convert_0).s3q = function () { | ||
if (this.z44() == null) | ||
null; | ||
@@ -248,8 +278,9 @@ else { | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.e3q('To convert, please specify a file', VOID, true); | ||
this.l3q('To convert, please specify a file', VOID, true); | ||
} | ||
// Inline function 'kotlin.collections.forEach' call | ||
// Inline function 'kotlin.let' call | ||
var tmp = new Convert(_get_format__qlarck(this)); | ||
var tmp_0 = this.s44(null); | ||
var tmp_1 = Companion_instance_0.x2b(this.t44()); | ||
var tmp_0 = this.a45(null); | ||
var tmp_1 = Companion_instance_0.e2c(this.b45()); | ||
// Inline function 'kotlin.collections.ifEmpty' call | ||
@@ -266,42 +297,59 @@ var this_0 = toSet(_get_languages__ojonze_0(this)); | ||
var tmp$ret$2 = tmp_2; | ||
var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.u44()), this.w44(this.v44()), this.x44(), this.y44()); | ||
var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.c45()), this.e45(this.d45()), this.f45(), this.g45()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.x45_1(this_1); | ||
var tmp0_iterator = this.f46_1(this_1).g(); | ||
while (tmp0_iterator.h()) { | ||
var element = tmp0_iterator.i(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call | ||
if (element instanceof Right) { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var destruct = element.ak_1; | ||
var result = destruct.qd(); | ||
var file = destruct.rd(); | ||
this.g46_1(result, file); | ||
} else { | ||
if (element instanceof Left) { | ||
this.l3q(element.uj_1, VOID, true); | ||
} else { | ||
noWhenBranchMatchedException(); | ||
} | ||
} | ||
} | ||
}; | ||
function _get_inputFile__x1bqj($this) { | ||
return $this.k44_1.w3z($this, inputFile$factory_0()); | ||
return $this.s44_1.d40($this, inputFile$factory_0()); | ||
} | ||
function CommonOptions() { | ||
CliktCommand.call(this); | ||
this.k44_1 = option(this, Options_InputFile_getInstance().s43_1.slice(), 'Input file').h40(this, inputFile$factory()); | ||
this.l44_1 = option(this, Options_InputDir_getInstance().s43_1.slice(), 'Input directory').h40(this, inputDir$factory()); | ||
this.m44_1 = option(this, Options_OutputDir_getInstance().s43_1.slice(), 'Output directory').h40(this, outputDir$factory()); | ||
this.n44_1 = default_0(option(this, Options_PackageName_getInstance().s43_1.slice(), 'Package name'), 'community.flock.wirespec.generated').h40(this, packageName$factory()); | ||
this.o44_1 = default_0(option(this, Options_LogLevel_getInstance().s43_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).h40(this, logLevel$factory()); | ||
this.p44_1 = flag(option(this, Options_Shared_getInstance().s43_1.slice(), 'Generate shared wirespec code'), [], false).h40(this, shared$factory()); | ||
this.q44_1 = flag(option(this, Options_Strict_getInstance().s43_1.slice(), 'Strict mode'), []).h40(this, strict$factory()); | ||
this.s44_1 = option(this, Options_InputFile_getInstance().a44_1.slice(), 'Input file').o40(this, inputFile$factory()); | ||
this.t44_1 = option(this, Options_InputDir_getInstance().a44_1.slice(), 'Input directory').o40(this, inputDir$factory()); | ||
this.u44_1 = option(this, Options_OutputDir_getInstance().a44_1.slice(), 'Output directory').o40(this, outputDir$factory()); | ||
this.v44_1 = default_0(option(this, Options_PackageName_getInstance().a44_1.slice(), 'Package name'), 'community.flock.wirespec.generated').o40(this, packageName$factory()); | ||
this.w44_1 = default_0(option(this, Options_LogLevel_getInstance().a44_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).o40(this, logLevel$factory()); | ||
this.x44_1 = flag(option(this, Options_Shared_getInstance().a44_1.slice(), 'Generate shared wirespec code'), [], false).o40(this, shared$factory()); | ||
this.y44_1 = flag(option(this, Options_Strict_getInstance().a44_1.slice(), 'Strict mode'), []).o40(this, strict$factory()); | ||
} | ||
protoOf(CommonOptions).r44 = function () { | ||
return this.l44_1.w3z(this, inputDir$factory_0()); | ||
protoOf(CommonOptions).z44 = function () { | ||
return this.t44_1.d40(this, inputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).t44 = function () { | ||
return this.m44_1.w3z(this, outputDir$factory_0()); | ||
protoOf(CommonOptions).b45 = function () { | ||
return this.u44_1.d40(this, outputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).u44 = function () { | ||
return this.n44_1.w3z(this, packageName$factory_0()); | ||
protoOf(CommonOptions).c45 = function () { | ||
return this.v44_1.d40(this, packageName$factory_0()); | ||
}; | ||
protoOf(CommonOptions).v44 = function () { | ||
return this.o44_1.w3z(this, logLevel$factory_0()); | ||
protoOf(CommonOptions).d45 = function () { | ||
return this.w44_1.d40(this, logLevel$factory_0()); | ||
}; | ||
protoOf(CommonOptions).x44 = function () { | ||
return this.p44_1.w3z(this, shared$factory_0()); | ||
protoOf(CommonOptions).f45 = function () { | ||
return this.x44_1.d40(this, shared$factory_0()); | ||
}; | ||
protoOf(CommonOptions).y44 = function () { | ||
return this.q44_1.w3z(this, strict$factory_0()); | ||
protoOf(CommonOptions).g45 = function () { | ||
return this.y44_1.d40(this, strict$factory_0()); | ||
}; | ||
protoOf(CommonOptions).s44 = function (inputDir) { | ||
protoOf(CommonOptions).a45 = function (inputDir) { | ||
var tmp; | ||
if (!(inputDir == null) && !(_get_inputFile__x1bqj(this) == null)) { | ||
var message = 'Choose either a file or a directory. Not Both.'; | ||
throw IllegalStateException_init_$Create$(toString(message)); | ||
throw new CliktError('Choose either a file or a directory. Not Both.'); | ||
} else { | ||
@@ -315,3 +363,3 @@ var tmp0_safe_receiver = _get_inputFile__x1bqj(this); | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp_0 = Companion_instance_2.l2b(tmp0_safe_receiver); | ||
tmp_0 = Companion_instance_2.s2b(tmp0_safe_receiver); | ||
} | ||
@@ -338,3 +386,3 @@ var tmp1_elvis_lhs = tmp_0; | ||
}; | ||
protoOf(CommonOptions).w44 = function (_this__u8e3s4) { | ||
protoOf(CommonOptions).e45 = function (_this__u8e3s4) { | ||
// Inline function 'kotlin.text.uppercase' call | ||
@@ -358,4 +406,3 @@ // Inline function 'kotlin.text.trim' call | ||
default: | ||
var message = 'Choose one of these log levels: ' + Companion_instance_1.toString(); | ||
throw IllegalStateException_init_$Create$(toString(message)); | ||
throw new CliktError('Choose one of these log levels: ' + Companion_instance_1.toString()); | ||
} | ||
@@ -388,3 +435,3 @@ return tmp; | ||
Enum.call(this, name, ordinal); | ||
this.s43_1 = flags; | ||
this.a44_1 = flags; | ||
} | ||
@@ -460,3 +507,3 @@ function Options_InputDir_getInstance() { | ||
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) { | ||
return receiver.r44(); | ||
return receiver.z44(); | ||
}, null); | ||
@@ -466,3 +513,3 @@ } | ||
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) { | ||
return receiver.t44(); | ||
return receiver.b45(); | ||
}, null); | ||
@@ -472,3 +519,3 @@ } | ||
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) { | ||
return receiver.u44(); | ||
return receiver.c45(); | ||
}, null); | ||
@@ -478,3 +525,3 @@ } | ||
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) { | ||
return receiver.v44(); | ||
return receiver.d45(); | ||
}, null); | ||
@@ -484,3 +531,3 @@ } | ||
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) { | ||
return receiver.x44(); | ||
return receiver.f45(); | ||
}, null); | ||
@@ -490,3 +537,3 @@ } | ||
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) { | ||
return receiver.y44(); | ||
return receiver.g45(); | ||
}, null); | ||
@@ -501,3 +548,3 @@ } | ||
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) { | ||
return receiver.r44(); | ||
return receiver.z44(); | ||
}, null); | ||
@@ -507,3 +554,3 @@ } | ||
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) { | ||
return receiver.t44(); | ||
return receiver.b45(); | ||
}, null); | ||
@@ -513,3 +560,3 @@ } | ||
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) { | ||
return receiver.u44(); | ||
return receiver.c45(); | ||
}, null); | ||
@@ -519,3 +566,3 @@ } | ||
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) { | ||
return receiver.v44(); | ||
return receiver.d45(); | ||
}, null); | ||
@@ -525,3 +572,3 @@ } | ||
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) { | ||
return receiver.x44(); | ||
return receiver.f45(); | ||
}, null); | ||
@@ -531,3 +578,3 @@ } | ||
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) { | ||
return receiver.y44(); | ||
return receiver.g45(); | ||
}, null); | ||
@@ -564,24 +611,26 @@ } | ||
var tmp_0 = compile$ref(); | ||
var tmp_1 = convert$ref(); | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp.p42(tmp_0, convert$ref())(this_1); | ||
tmp.w42(tmp_0, tmp_1, write$ref())(this_1); | ||
} | ||
function compile_0(arguments_0) { | ||
var input = arguments_0.c2b_1; | ||
var output = arguments_0.d2b_1; | ||
var languages = arguments_0.e2b_1; | ||
var packageName = arguments_0.f2b_1; | ||
var logger = new Logger(arguments_0.g2b_1); | ||
var operation = arguments_0.b2b_1; | ||
var input = arguments_0.j2b_1; | ||
var output = arguments_0.k2b_1; | ||
var languages = arguments_0.l2b_1; | ||
var packageName = arguments_0.m2b_1; | ||
var logger = new Logger(arguments_0.n2b_1); | ||
var operation = arguments_0.i2b_1; | ||
var tmp; | ||
if (operation instanceof Convert) { | ||
var fullPath = input instanceof FullFilePath ? input : THROW_CCE(); | ||
var file = new JsonFile(fullPath); | ||
var strict = arguments_0.i2b_1; | ||
var format = operation.k2b_1; | ||
var tmp; | ||
var strict = arguments_0.p2b_1; | ||
var format = operation.r2b_1; | ||
var tmp_0; | ||
switch (format.q2_1) { | ||
case 0: | ||
tmp = OpenApiV2Parser_instance.g2a(file.z1a(), !strict); | ||
tmp_0 = OpenApiV2Parser_instance.n2a(file.z1a(), !strict); | ||
break; | ||
case 1: | ||
tmp = OpenApiV3Parser_instance.g2a(file.z1a(), !strict); | ||
tmp_0 = OpenApiV3Parser_instance.n2a(file.z1a(), !strict); | ||
break; | ||
@@ -592,3 +641,3 @@ default: | ||
} | ||
var ast = tmp; | ||
var ast = tmp_0; | ||
var path = out(fullPath, packageName, output); | ||
@@ -607,7 +656,7 @@ // Inline function 'kotlin.collections.map' call | ||
var results = emitter.p22(ast); | ||
var tmp_0; | ||
var tmp_1; | ||
if (!emitter.o22_1) { | ||
// Inline function 'kotlin.text.replaceFirstChar' call | ||
var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.q2b_1); | ||
var tmp_1; | ||
var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.x2b_1); | ||
var tmp_2; | ||
// Inline function 'kotlin.text.isNotEmpty' call | ||
@@ -621,15 +670,15 @@ if (charSequenceLength(this_1) > 0) { | ||
var tmp$ret$4 = toString_0(this_2).toUpperCase(); | ||
var tmp_2 = toString(tmp$ret$4); | ||
var tmp_3 = toString(tmp$ret$4); | ||
// Inline function 'kotlin.text.substring' call | ||
// Inline function 'kotlin.js.asDynamic' call | ||
tmp_1 = tmp_2 + this_1.substring(1); | ||
tmp_2 = tmp_3 + this_1.substring(1); | ||
} else { | ||
tmp_1 = this_1; | ||
tmp_2 = this_1; | ||
} | ||
var tmp$ret$7 = tmp_1; | ||
tmp_0 = to(listOf(new Emitted(tmp$ret$7, first(results).l25_1)), file_0); | ||
var tmp$ret$7 = tmp_2; | ||
tmp_1 = to(listOf(new Emitted(tmp$ret$7, first(results).p25_1)), file_0); | ||
} else { | ||
tmp_0 = to(results, file_0); | ||
tmp_1 = to(results, file_0); | ||
} | ||
var tmp$ret$8 = tmp_0; | ||
var tmp$ret$8 = tmp_1; | ||
destination.e(tmp$ret$8); | ||
@@ -642,33 +691,45 @@ } | ||
var item_0 = tmp0_iterator_0.i(); | ||
var results_0 = item_0.qd(); | ||
var file_1 = item_0.rd(); | ||
write(results_0, file_1); | ||
destination_0.e(Unit_instance); | ||
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call | ||
var tmp$ret$11 = right(item_0); | ||
destination_0.e(tmp$ret$11); | ||
} | ||
tmp = destination_0; | ||
} else { | ||
if (operation instanceof Compile) { | ||
var tmp_4; | ||
if (input instanceof Console) { | ||
wirespec(input, languages, packageName, compile$lambda(output), logger); | ||
tmp_4 = wirespec(input, languages, packageName, compile$lambda(output), logger); | ||
} else { | ||
if (input instanceof FullDirPath) { | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp0_iterator_1 = (new Directory(input.v2b_1)).c46().g(); | ||
// Inline function 'kotlin.collections.flatMap' call | ||
// Inline function 'kotlin.collections.flatMapTo' call | ||
var this_3 = (new Directory(input.c2c_1)).l46(); | ||
var destination_1 = ArrayList_init_$Create$(); | ||
var tmp0_iterator_1 = this_3.g(); | ||
while (tmp0_iterator_1.h()) { | ||
var element = tmp0_iterator_1.i(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call | ||
wirespec(element, languages, packageName, out(element.a46_1, packageName, output), logger); | ||
var list = wirespec(element, languages, packageName, out(element.j46_1, packageName, output), logger); | ||
addAll(destination_1, list); | ||
} | ||
tmp_4 = destination_1; | ||
} else { | ||
if (input instanceof FullFilePath) | ||
if (input.r2b_1.equals(FileExtension_Wirespec_getInstance())) { | ||
if (input instanceof FullFilePath) { | ||
var tmp_5; | ||
if (input.y2b_1.equals(FileExtension_Wirespec_getInstance())) { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call | ||
var it = new WirespecFile(input); | ||
wirespec(it, languages, packageName, out(it.a46_1, packageName, output), logger); | ||
tmp_5 = wirespec(it, languages, packageName, out(it.j46_1, packageName, output), logger); | ||
} else { | ||
// Inline function 'kotlin.error' call | ||
var message = 'Path ' + input.toString() + ' is not a Wirespec file'; | ||
throw IllegalStateException_init_$Create$(toString(message)); | ||
// Inline function 'arrow.core.nel' call | ||
// Inline function 'arrow.core.nel' call | ||
var this_4 = new FileReadException('Path ' + input.toString() + ' is not a Wirespec file'); | ||
var tmp$ret$19 = nonEmptyListOf(this_4, []); | ||
var this_5 = left(tmp$ret$19); | ||
tmp_5 = nonEmptyListOf(this_5, []); | ||
} | ||
else { | ||
tmp_4 = tmp_5; | ||
} else { | ||
noWhenBranchMatchedException(); | ||
@@ -678,2 +739,3 @@ } | ||
} | ||
tmp = tmp_4; | ||
} else { | ||
@@ -683,2 +745,3 @@ noWhenBranchMatchedException(); | ||
} | ||
return tmp; | ||
} | ||
@@ -688,5 +751,2 @@ function convert(arguments_0) { | ||
} | ||
function out(_this__u8e3s4, packageName, output) { | ||
return out$lambda(output, _this__u8e3s4, packageName); | ||
} | ||
function write(output, file) { | ||
@@ -700,3 +760,3 @@ // Inline function 'kotlin.collections.forEach' call | ||
var result = element.rd(); | ||
var tmp1_safe_receiver = file == null ? null : file.d46(_FileName___init__impl__nzn12e(name)); | ||
var tmp1_safe_receiver = file == null ? null : file.m46(_FileName___init__impl__nzn12e(name)); | ||
var tmp; | ||
@@ -714,2 +774,5 @@ if (tmp1_safe_receiver == null) { | ||
} | ||
function out(_this__u8e3s4, packageName, output) { | ||
return out$lambda(output, _this__u8e3s4, packageName); | ||
} | ||
function emitters(_this__u8e3s4, packageName, path, logger) { | ||
@@ -865,3 +928,3 @@ // Inline function 'kotlin.collections.map' call | ||
var it = results.ak_1; | ||
var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().i24(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).q2b_1)), first(it).l25_1)); | ||
var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().m24(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).x2b_1)), first(it).p25_1)); | ||
tmp_0 = new Right(tmp$ret$2); | ||
@@ -888,9 +951,19 @@ } else { | ||
var item_0 = tmp0_iterator_0.i(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call | ||
var results_0 = item_0.qd(); | ||
var file_0 = item_0.rd(); | ||
// Inline function 'arrow.core.Either.map' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'arrow.core.flatMap' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp_1; | ||
if (results_0 instanceof Right) { | ||
write(results_0.ak_1, file_0); | ||
// Inline function 'arrow.core.Either.map.<anonymous>' call | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>' call | ||
var it_0 = results_0.ak_1; | ||
var tmp$ret$11 = to(it_0, file_0); | ||
tmp_1 = new Right(tmp$ret$11); | ||
} else { | ||
if (results_0 instanceof Left) { | ||
println(results_0.uj_1); | ||
tmp_1 = results_0; | ||
} else { | ||
@@ -900,9 +973,10 @@ noWhenBranchMatchedException(); | ||
} | ||
destination_0.e(Unit_instance); | ||
var tmp$ret$15 = tmp_1; | ||
destination_0.e(tmp$ret$15); | ||
} | ||
return destination_0; | ||
} | ||
function compile$ref() { | ||
var l = function (p0) { | ||
compile_0(p0); | ||
return Unit_instance; | ||
return compile_0(p0); | ||
}; | ||
@@ -914,4 +988,3 @@ l.callableName = 'compile'; | ||
var l = function (p0) { | ||
convert(p0); | ||
return Unit_instance; | ||
return convert(p0); | ||
}; | ||
@@ -921,6 +994,14 @@ l.callableName = 'convert'; | ||
} | ||
function write$ref() { | ||
var l = function (p0, p1) { | ||
write(p0, p1); | ||
return Unit_instance; | ||
}; | ||
l.callableName = 'write'; | ||
return l; | ||
} | ||
function compile$lambda($output) { | ||
return function (it) { | ||
var tmp = $output; | ||
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).y2b_1), _FileName___init__impl__nzn12e('console'), it); | ||
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).f2c_1), _FileName___init__impl__nzn12e('console'), it); | ||
}; | ||
@@ -937,3 +1018,3 @@ } | ||
var tmp$ret$1 = extension.p2_1.toLowerCase(); | ||
tmp = $this_out.p2b_1 + '/out/' + tmp$ret$1; | ||
tmp = $this_out.w2b_1 + '/out/' + tmp$ret$1; | ||
} else { | ||
@@ -943,40 +1024,40 @@ tmp = new Output(tmp0_elvis_lhs); | ||
var dir = tmp; | ||
return $this_out.t2b(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension); | ||
return $this_out.a2c(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension); | ||
}; | ||
} | ||
function JavaFile(path) { | ||
File.call(this, path.t2b(VOID, VOID, FileExtension_Java_getInstance())); | ||
File.call(this, path.a2c(VOID, VOID, FileExtension_Java_getInstance())); | ||
} | ||
protoOf(JavaFile).d46 = function (fileName) { | ||
return new JavaFile(this.a46_1.t2b(VOID, fileName)); | ||
protoOf(JavaFile).m46 = function (fileName) { | ||
return new JavaFile(this.j46_1.a2c(VOID, fileName)); | ||
}; | ||
function JsonFile(path) { | ||
File.call(this, path.t2b(VOID, VOID, FileExtension_Json_getInstance())); | ||
File.call(this, path.a2c(VOID, VOID, FileExtension_Json_getInstance())); | ||
} | ||
protoOf(JsonFile).d46 = function (fileName) { | ||
return new JsonFile(this.a46_1.t2b(VOID, fileName)); | ||
protoOf(JsonFile).m46 = function (fileName) { | ||
return new JsonFile(this.j46_1.a2c(VOID, fileName)); | ||
}; | ||
function KotlinFile(path) { | ||
File.call(this, path.t2b(VOID, VOID, FileExtension_Kotlin_getInstance())); | ||
File.call(this, path.a2c(VOID, VOID, FileExtension_Kotlin_getInstance())); | ||
} | ||
protoOf(KotlinFile).d46 = function (fileName) { | ||
return new KotlinFile(this.a46_1.t2b(VOID, fileName)); | ||
protoOf(KotlinFile).m46 = function (fileName) { | ||
return new KotlinFile(this.j46_1.a2c(VOID, fileName)); | ||
}; | ||
function ScalaFile(path) { | ||
File.call(this, path.t2b(VOID, VOID, FileExtension_Scala_getInstance())); | ||
File.call(this, path.a2c(VOID, VOID, FileExtension_Scala_getInstance())); | ||
} | ||
protoOf(ScalaFile).d46 = function (fileName) { | ||
return new ScalaFile(this.a46_1.t2b(VOID, fileName)); | ||
protoOf(ScalaFile).m46 = function (fileName) { | ||
return new ScalaFile(this.j46_1.a2c(VOID, fileName)); | ||
}; | ||
function TypeScriptFile(path) { | ||
File.call(this, path.t2b(VOID, VOID, FileExtension_TypeScript_getInstance())); | ||
File.call(this, path.a2c(VOID, VOID, FileExtension_TypeScript_getInstance())); | ||
} | ||
protoOf(TypeScriptFile).d46 = function (fileName) { | ||
return new TypeScriptFile(this.a46_1.t2b(VOID, fileName)); | ||
protoOf(TypeScriptFile).m46 = function (fileName) { | ||
return new TypeScriptFile(this.j46_1.a2c(VOID, fileName)); | ||
}; | ||
function WirespecFile(path) { | ||
File.call(this, path.t2b(VOID, VOID, FileExtension_Wirespec_getInstance())); | ||
File.call(this, path.a2c(VOID, VOID, FileExtension_Wirespec_getInstance())); | ||
} | ||
protoOf(WirespecFile).d46 = function (fileName) { | ||
return new WirespecFile(this.a46_1.t2b(VOID, fileName)); | ||
protoOf(WirespecFile).m46 = function (fileName) { | ||
return new WirespecFile(this.j46_1.a2c(VOID, fileName)); | ||
}; | ||
@@ -1044,10 +1125,10 @@ function cli(args) { | ||
function Directory$wirespecFiles$lambda_0(it) { | ||
return endsWith(it, FileExtension_Wirespec_getInstance().o2b_1); | ||
return endsWith(it, FileExtension_Wirespec_getInstance().v2b_1); | ||
} | ||
function Directory$wirespecFiles$lambda_1(it) { | ||
return dropLast(it, FileExtension_Wirespec_getInstance().o2b_1.length + 1 | 0); | ||
return dropLast(it, FileExtension_Wirespec_getInstance().v2b_1.length + 1 | 0); | ||
} | ||
function Directory$wirespecFiles$lambda_2(this$0) { | ||
return function (it) { | ||
return new FullFilePath(this$0.b46_1, _FileName___init__impl__nzn12e(it)); | ||
return new FullFilePath(this$0.k46_1, _FileName___init__impl__nzn12e(it)); | ||
}; | ||
@@ -1063,6 +1144,6 @@ } | ||
function Directory(path) { | ||
this.b46_1 = path; | ||
this.k46_1 = path; | ||
} | ||
protoOf(Directory).c46 = function () { | ||
var tmp = asSequence(iterator(get_fs().readdirSync(this.b46_1, 'utf-8'))); | ||
protoOf(Directory).l46 = function () { | ||
var tmp = asSequence(iterator(get_fs().readdirSync(this.k46_1, 'utf-8'))); | ||
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda); | ||
@@ -1075,18 +1156,18 @@ var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0); | ||
function File(path) { | ||
this.a46_1 = path; | ||
this.j46_1 = path; | ||
} | ||
protoOf(File).z1a = function () { | ||
// Inline function 'kotlin.js.unsafeCast' call | ||
return get_fs().readFileSync(this.a46_1.toString(), 'utf-8'); | ||
return get_fs().readFileSync(this.j46_1.toString(), 'utf-8'); | ||
}; | ||
protoOf(File).t18 = function (text) { | ||
protoOf(File).t18 = function (string) { | ||
// Inline function 'kotlin.run' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call | ||
var $this$run = this.a46_1.t2b(joinToString(split_0(this.a46_1.p2b_1, ['out']), 'out/node')); | ||
var $this$run = this.j46_1.a2c(joinToString(split_0(this.j46_1.w2b_1, ['out']), 'out/node')); | ||
// Inline function 'kotlin.js.unsafeCast' call | ||
if (!get_fs().existsSync($this$run.p2b_1)) { | ||
get_fs().mkdirSync($this$run.p2b_1, {recursive: true}); | ||
if (!get_fs().existsSync($this$run.w2b_1)) { | ||
get_fs().mkdirSync($this$run.w2b_1, {recursive: true}); | ||
} | ||
get_fs().writeFileSync($this$run.toString(), text); | ||
get_fs().writeFileSync($this$run.toString(), string); | ||
}; | ||
@@ -1093,0 +1174,0 @@ function get_fs() { |
@@ -261,4 +261,8 @@ type Nullable<T> = T | null | undefined | ||
}; | ||
get name(): "String" | "Integer" | "Number" | "Boolean"; | ||
get ordinal(): 0 | 1 | 2 | 3; | ||
static get Bytes(): community.flock.wirespec.compiler.lib.WsPrimitiveType & { | ||
get name(): "Bytes"; | ||
get ordinal(): 4; | ||
}; | ||
get name(): "String" | "Integer" | "Number" | "Boolean" | "Bytes"; | ||
get ordinal(): 0 | 1 | 2 | 3 | 4; | ||
static values(): Array<community.flock.wirespec.compiler.lib.WsPrimitiveType>; | ||
@@ -265,0 +269,0 @@ static valueOf(value: string): community.flock.wirespec.compiler.lib.WsPrimitiveType; |
@@ -47,4 +47,4 @@ (function (factory) { | ||
var main = kotlin_community_flock_wirespec_plugin_cli_cli.$_$.a; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f2; | ||
var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.g1; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m2; | ||
var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.m1; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.f; | ||
@@ -55,4 +55,4 @@ var collectionSizeOrDefault = kotlin_kotlin.$_$.i5; | ||
var copyToArray = kotlin_kotlin.$_$.x5; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.l1; | ||
var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.v; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.r1; | ||
var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.w; | ||
var produce_0 = kotlin_community_flock_wirespec_compiler_lib.$_$.b; | ||
@@ -199,6 +199,6 @@ var OpenApiV2Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.b; | ||
case 0: | ||
tmp = produce_1(OpenApiV2Parser_instance.i2a(source)); | ||
tmp = produce_1(OpenApiV2Parser_instance.p2a(source)); | ||
break; | ||
case 1: | ||
tmp = produce_1(OpenApiV3Parser_instance.a2b(source)); | ||
tmp = produce_1(OpenApiV3Parser_instance.h2b(source)); | ||
break; | ||
@@ -287,3 +287,3 @@ default: | ||
var item_0 = tmp0_iterator.i(); | ||
var tmp$ret$3 = tmp1_map_$receiver.t29(item_0); | ||
var tmp$ret$3 = tmp1_map_$receiver.a2a(item_0); | ||
destination_0.e(tmp$ret$3); | ||
@@ -330,3 +330,3 @@ } | ||
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call | ||
var tmp$ret$11 = OpenApiV3Emitter_getInstance().m2a(item_3, null); | ||
var tmp$ret$11 = OpenApiV3Emitter_getInstance().t2a(item_3, null); | ||
destination_3.e(tmp$ret$11); | ||
@@ -333,0 +333,0 @@ } |
@@ -28,13 +28,16 @@ (function (factory) { | ||
var endsWith = kotlin_kotlin.$_$.nc; | ||
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.x; | ||
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.y; | ||
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg; | ||
var NotImplementedError = kotlin_kotlin.$_$.df; | ||
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.w; | ||
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.x; | ||
var JsonNull_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c; | ||
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.z; | ||
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.f1; | ||
var Companion_instance = kotlin_community_flock_kotlinx_rgxgen_kotlin_rgxgen.$_$.a; | ||
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h; | ||
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i; | ||
var JsonPrimitive_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j; | ||
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.y; | ||
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j; | ||
var Boolean_0 = kotlin_community_flock_wirespec_compiler_core.$_$.z; | ||
var JsonPrimitive_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i; | ||
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.c1; | ||
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.b1; | ||
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.e1; | ||
var numberRangeToNumber = kotlin_kotlin.$_$.ra; | ||
@@ -45,10 +48,10 @@ var collectionSizeOrDefault = kotlin_kotlin.$_$.i5; | ||
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e; | ||
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.h; | ||
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.r; | ||
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.e1; | ||
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.s; | ||
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.b1; | ||
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.d1; | ||
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i; | ||
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.s; | ||
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.k1; | ||
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t; | ||
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.h1; | ||
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.j1; | ||
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.k; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.l; | ||
var isInterface = kotlin_kotlin.$_$.la; | ||
@@ -84,39 +87,28 @@ var toString = kotlin_kotlin.$_$.bb; | ||
if (ref instanceof Primitive) { | ||
var tmp1_subject = ref.j23_1; | ||
var tmp_0; | ||
switch (ref.j23_1.q2_1) { | ||
case 0: | ||
if (tmp1_subject instanceof Integer) { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0 = random.ee(); | ||
tmp_0 = JsonPrimitive_1(p0); | ||
} else { | ||
if (tmp1_subject instanceof Number_0) { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0 = Companion_instance.k46('\\w{1,50}').t46(random); | ||
tmp_0 = JsonPrimitive(p0); | ||
break; | ||
case 1: | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0_0 = random.ee(); | ||
tmp_0 = JsonPrimitive_0(p0_0); | ||
break; | ||
case 2: | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0_1 = random.vf(); | ||
tmp_0 = JsonPrimitive_0(p0_1); | ||
break; | ||
case 3: | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0_2 = random.uf(); | ||
tmp_0 = JsonPrimitive_1(p0_2); | ||
break; | ||
default: | ||
noWhenBranchMatchedException(); | ||
break; | ||
var p0_0 = random.vf(); | ||
tmp_0 = JsonPrimitive_1(p0_0); | ||
} else { | ||
if (tmp1_subject instanceof Boolean_0) { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0_1 = random.uf(); | ||
tmp_0 = JsonPrimitive_0(p0_1); | ||
} else { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0_2 = Companion_instance.t46('\\w{1,50}').c47(random); | ||
tmp_0 = JsonPrimitive(p0_2); | ||
} | ||
} | ||
} | ||
@@ -213,3 +205,3 @@ tmp = tmp_0; | ||
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call | ||
if (element_0.i28().b1() === type.b1()) { | ||
if (element_0.m28().b1() === type.b1()) { | ||
tmp$ret$3 = element_0; | ||
@@ -238,3 +230,3 @@ break $l$block; | ||
// Inline function 'kotlin.collections.fold' call | ||
var this_0 = def.a23_1.p25_1; | ||
var this_0 = def.a23_1.t25_1; | ||
var accumulator = emptyMap(); | ||
@@ -249,3 +241,3 @@ var tmp0_iterator = this_0.g(); | ||
// Inline function 'community.flock.wirespec.generator.generateType.<anonymous>.<anonymous>.<anonymous>' call | ||
var value = element.j24_1.b1(); | ||
var value = element.n24_1.b1(); | ||
// Inline function 'kotlin.text.sumOf' call | ||
@@ -264,3 +256,3 @@ var sum = 0; | ||
var fieldRandom = Random(fieldSeed); | ||
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.k24_1, fieldRandom))); | ||
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.o24_1, fieldRandom))); | ||
} | ||
@@ -274,3 +266,3 @@ // Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0 = randomRegex(def.b25_1.s25_1, random); | ||
var p0 = randomRegex(def.f25_1.w25_1, random); | ||
return JsonPrimitive(p0); | ||
@@ -281,6 +273,6 @@ } | ||
// Inline function 'kotlin.let' call | ||
var this_0 = random.sf(def.e25_1.j()); | ||
var this_0 = random.sf(def.i25_1.j()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var p0 = toList(def.e25_1).k(this_0); | ||
var p0 = toList(def.i25_1).k(this_0); | ||
return JsonPrimitive(p0); | ||
@@ -304,3 +296,3 @@ } | ||
var tmp$ret$1 = regex.substring(1, endIndex); | ||
return tmp.k46(tmp$ret$1).t46(random); | ||
return tmp.t46(tmp$ret$1).c47(random); | ||
} | ||
@@ -307,0 +299,0 @@ //region block: exports |
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 too big to display
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 too big to display
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5848984
90634