git-semver-tagger
Version:
 
357 lines (355 loc) • 17.2 kB
JavaScript
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_com_zegreatrob_tools_tagger_core) {
'use strict';
//region block: imports
var imul = Math.imul;
var protoOf = kotlin_kotlin.$_$.q9;
var initMetadataForCompanion = kotlin_kotlin.$_$.r8;
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
var Unit_instance = kotlin_kotlin.$_$.y3;
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
var THROW_CCE = kotlin_kotlin.$_$.md;
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1;
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
var initMetadataForObject = kotlin_kotlin.$_$.v8;
var VOID = kotlin_kotlin.$_$.f;
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
var objectCreate = kotlin_kotlin.$_$.p9;
var getStringHashCode = kotlin_kotlin.$_$.o8;
var getBooleanHashCode = kotlin_kotlin.$_$.l8;
var initMetadataForClass = kotlin_kotlin.$_$.q8;
var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.j;
//endregion
//region block: pre-declaration
initMetadataForCompanion(Companion);
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
initMetadataForClass(TaggerConfig, 'TaggerConfig', TaggerConfig, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
//endregion
function get_runtimeDefaultConfig() {
_init_properties_TaggerConfig_kt__fn8iyk();
return runtimeDefaultConfig;
}
var runtimeDefaultConfig;
function Companion() {
}
var Companion_instance;
function Companion_getInstance() {
return Companion_instance;
}
function $serializer() {
$serializer_instance = this;
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.json.TaggerConfig', this, 11);
tmp0_serialDesc.ow('releaseBranch', true);
tmp0_serialDesc.ow('implicitPatch', true);
tmp0_serialDesc.ow('disableDetached', true);
tmp0_serialDesc.ow('majorRegex', true);
tmp0_serialDesc.ow('minorRegex', true);
tmp0_serialDesc.ow('patchRegex', true);
tmp0_serialDesc.ow('noneRegex', true);
tmp0_serialDesc.ow('versionRegex', true);
tmp0_serialDesc.ow('userName', true);
tmp0_serialDesc.ow('userEmail', true);
tmp0_serialDesc.ow('warningsAsErrors', true);
this.d1n_1 = tmp0_serialDesc;
}
protoOf($serializer).e1n = function (encoder, value) {
var tmp0_desc = this.d1n_1;
var tmp1_output = encoder.fp(tmp0_desc);
if (tmp1_output.br(tmp0_desc, 0) ? true : !(value.f1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 0, StringSerializer_getInstance(), value.f1n_1);
}
if (tmp1_output.br(tmp0_desc, 1) ? true : !(value.g1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 1, BooleanSerializer_getInstance(), value.g1n_1);
}
if (tmp1_output.br(tmp0_desc, 2) ? true : !(value.h1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 2, BooleanSerializer_getInstance(), value.h1n_1);
}
if (tmp1_output.br(tmp0_desc, 3) ? true : !(value.i1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 3, StringSerializer_getInstance(), value.i1n_1);
}
if (tmp1_output.br(tmp0_desc, 4) ? true : !(value.j1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 4, StringSerializer_getInstance(), value.j1n_1);
}
if (tmp1_output.br(tmp0_desc, 5) ? true : !(value.k1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 5, StringSerializer_getInstance(), value.k1n_1);
}
if (tmp1_output.br(tmp0_desc, 6) ? true : !(value.l1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 6, StringSerializer_getInstance(), value.l1n_1);
}
if (tmp1_output.br(tmp0_desc, 7) ? true : !(value.m1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 7, StringSerializer_getInstance(), value.m1n_1);
}
if (tmp1_output.br(tmp0_desc, 8) ? true : !(value.n1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 8, StringSerializer_getInstance(), value.n1n_1);
}
if (tmp1_output.br(tmp0_desc, 9) ? true : !(value.o1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 9, StringSerializer_getInstance(), value.o1n_1);
}
if (tmp1_output.br(tmp0_desc, 10) ? true : !(value.p1n_1 == null)) {
tmp1_output.xq(tmp0_desc, 10, BooleanSerializer_getInstance(), value.p1n_1);
}
tmp1_output.gp(tmp0_desc);
};
protoOf($serializer).jm = function (encoder, value) {
return this.e1n(encoder, value instanceof TaggerConfig ? value : THROW_CCE());
};
protoOf($serializer).km = function (decoder) {
var tmp0_desc = this.d1n_1;
var tmp1_flag = true;
var tmp2_index = 0;
var tmp3_bitMask0 = 0;
var tmp4_local0 = null;
var tmp5_local1 = null;
var tmp6_local2 = null;
var tmp7_local3 = null;
var tmp8_local4 = null;
var tmp9_local5 = null;
var tmp10_local6 = null;
var tmp11_local7 = null;
var tmp12_local8 = null;
var tmp13_local9 = null;
var tmp14_local10 = null;
var tmp15_input = decoder.fp(tmp0_desc);
if (tmp15_input.vp()) {
tmp4_local0 = tmp15_input.tp(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
tmp3_bitMask0 = tmp3_bitMask0 | 1;
tmp5_local1 = tmp15_input.tp(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1);
tmp3_bitMask0 = tmp3_bitMask0 | 2;
tmp6_local2 = tmp15_input.tp(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2);
tmp3_bitMask0 = tmp3_bitMask0 | 4;
tmp7_local3 = tmp15_input.tp(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
tmp3_bitMask0 = tmp3_bitMask0 | 8;
tmp8_local4 = tmp15_input.tp(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
tmp3_bitMask0 = tmp3_bitMask0 | 16;
tmp9_local5 = tmp15_input.tp(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
tmp3_bitMask0 = tmp3_bitMask0 | 32;
tmp10_local6 = tmp15_input.tp(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
tmp3_bitMask0 = tmp3_bitMask0 | 64;
tmp11_local7 = tmp15_input.tp(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
tmp3_bitMask0 = tmp3_bitMask0 | 128;
tmp12_local8 = tmp15_input.tp(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
tmp3_bitMask0 = tmp3_bitMask0 | 256;
tmp13_local9 = tmp15_input.tp(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
tmp3_bitMask0 = tmp3_bitMask0 | 512;
tmp14_local10 = tmp15_input.tp(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp14_local10);
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
} else
while (tmp1_flag) {
tmp2_index = tmp15_input.wp(tmp0_desc);
switch (tmp2_index) {
case -1:
tmp1_flag = false;
break;
case 0:
tmp4_local0 = tmp15_input.tp(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
tmp3_bitMask0 = tmp3_bitMask0 | 1;
break;
case 1:
tmp5_local1 = tmp15_input.tp(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1);
tmp3_bitMask0 = tmp3_bitMask0 | 2;
break;
case 2:
tmp6_local2 = tmp15_input.tp(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2);
tmp3_bitMask0 = tmp3_bitMask0 | 4;
break;
case 3:
tmp7_local3 = tmp15_input.tp(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
tmp3_bitMask0 = tmp3_bitMask0 | 8;
break;
case 4:
tmp8_local4 = tmp15_input.tp(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
tmp3_bitMask0 = tmp3_bitMask0 | 16;
break;
case 5:
tmp9_local5 = tmp15_input.tp(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
tmp3_bitMask0 = tmp3_bitMask0 | 32;
break;
case 6:
tmp10_local6 = tmp15_input.tp(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
tmp3_bitMask0 = tmp3_bitMask0 | 64;
break;
case 7:
tmp11_local7 = tmp15_input.tp(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
tmp3_bitMask0 = tmp3_bitMask0 | 128;
break;
case 8:
tmp12_local8 = tmp15_input.tp(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
tmp3_bitMask0 = tmp3_bitMask0 | 256;
break;
case 9:
tmp13_local9 = tmp15_input.tp(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
tmp3_bitMask0 = tmp3_bitMask0 | 512;
break;
case 10:
tmp14_local10 = tmp15_input.tp(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp14_local10);
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
break;
default:
throw UnknownFieldException_init_$Create$(tmp2_index);
}
}
tmp15_input.gp(tmp0_desc);
return TaggerConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
};
protoOf($serializer).im = function () {
return this.d1n_1;
};
protoOf($serializer).qw = function () {
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
return [get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance())];
};
var $serializer_instance;
function $serializer_getInstance() {
if ($serializer_instance == null)
new $serializer();
return $serializer_instance;
}
function TaggerConfig_init_$Init$(seen0, releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker, $this) {
if (!(0 === (0 & seen0))) {
throwMissingFieldException(seen0, 0, $serializer_getInstance().d1n_1);
}
if (0 === (seen0 & 1))
$this.f1n_1 = null;
else
$this.f1n_1 = releaseBranch;
if (0 === (seen0 & 2))
$this.g1n_1 = null;
else
$this.g1n_1 = implicitPatch;
if (0 === (seen0 & 4))
$this.h1n_1 = null;
else
$this.h1n_1 = disableDetached;
if (0 === (seen0 & 8))
$this.i1n_1 = null;
else
$this.i1n_1 = majorRegex;
if (0 === (seen0 & 16))
$this.j1n_1 = null;
else
$this.j1n_1 = minorRegex;
if (0 === (seen0 & 32))
$this.k1n_1 = null;
else
$this.k1n_1 = patchRegex;
if (0 === (seen0 & 64))
$this.l1n_1 = null;
else
$this.l1n_1 = noneRegex;
if (0 === (seen0 & 128))
$this.m1n_1 = null;
else
$this.m1n_1 = versionRegex;
if (0 === (seen0 & 256))
$this.n1n_1 = null;
else
$this.n1n_1 = userName;
if (0 === (seen0 & 512))
$this.o1n_1 = null;
else
$this.o1n_1 = userEmail;
if (0 === (seen0 & 1024))
$this.p1n_1 = null;
else
$this.p1n_1 = warningsAsErrors;
return $this;
}
function TaggerConfig_init_$Create$(seen0, releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker) {
return TaggerConfig_init_$Init$(seen0, releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker, objectCreate(protoOf(TaggerConfig)));
}
function TaggerConfig(releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors) {
releaseBranch = releaseBranch === VOID ? null : releaseBranch;
implicitPatch = implicitPatch === VOID ? null : implicitPatch;
disableDetached = disableDetached === VOID ? null : disableDetached;
majorRegex = majorRegex === VOID ? null : majorRegex;
minorRegex = minorRegex === VOID ? null : minorRegex;
patchRegex = patchRegex === VOID ? null : patchRegex;
noneRegex = noneRegex === VOID ? null : noneRegex;
versionRegex = versionRegex === VOID ? null : versionRegex;
userName = userName === VOID ? null : userName;
userEmail = userEmail === VOID ? null : userEmail;
warningsAsErrors = warningsAsErrors === VOID ? null : warningsAsErrors;
this.f1n_1 = releaseBranch;
this.g1n_1 = implicitPatch;
this.h1n_1 = disableDetached;
this.i1n_1 = majorRegex;
this.j1n_1 = minorRegex;
this.k1n_1 = patchRegex;
this.l1n_1 = noneRegex;
this.m1n_1 = versionRegex;
this.n1n_1 = userName;
this.o1n_1 = userEmail;
this.p1n_1 = warningsAsErrors;
}
protoOf(TaggerConfig).toString = function () {
return 'TaggerConfig(releaseBranch=' + this.f1n_1 + ', implicitPatch=' + this.g1n_1 + ', disableDetached=' + this.h1n_1 + ', majorRegex=' + this.i1n_1 + ', minorRegex=' + this.j1n_1 + ', patchRegex=' + this.k1n_1 + ', noneRegex=' + this.l1n_1 + ', versionRegex=' + this.m1n_1 + ', userName=' + this.n1n_1 + ', userEmail=' + this.o1n_1 + ', warningsAsErrors=' + this.p1n_1 + ')';
};
protoOf(TaggerConfig).hashCode = function () {
var result = this.f1n_1 == null ? 0 : getStringHashCode(this.f1n_1);
result = imul(result, 31) + (this.g1n_1 == null ? 0 : getBooleanHashCode(this.g1n_1)) | 0;
result = imul(result, 31) + (this.h1n_1 == null ? 0 : getBooleanHashCode(this.h1n_1)) | 0;
result = imul(result, 31) + (this.i1n_1 == null ? 0 : getStringHashCode(this.i1n_1)) | 0;
result = imul(result, 31) + (this.j1n_1 == null ? 0 : getStringHashCode(this.j1n_1)) | 0;
result = imul(result, 31) + (this.k1n_1 == null ? 0 : getStringHashCode(this.k1n_1)) | 0;
result = imul(result, 31) + (this.l1n_1 == null ? 0 : getStringHashCode(this.l1n_1)) | 0;
result = imul(result, 31) + (this.m1n_1 == null ? 0 : getStringHashCode(this.m1n_1)) | 0;
result = imul(result, 31) + (this.n1n_1 == null ? 0 : getStringHashCode(this.n1n_1)) | 0;
result = imul(result, 31) + (this.o1n_1 == null ? 0 : getStringHashCode(this.o1n_1)) | 0;
result = imul(result, 31) + (this.p1n_1 == null ? 0 : getBooleanHashCode(this.p1n_1)) | 0;
return result;
};
protoOf(TaggerConfig).equals = function (other) {
if (this === other)
return true;
if (!(other instanceof TaggerConfig))
return false;
var tmp0_other_with_cast = other instanceof TaggerConfig ? other : THROW_CCE();
if (!(this.f1n_1 == tmp0_other_with_cast.f1n_1))
return false;
if (!(this.g1n_1 == tmp0_other_with_cast.g1n_1))
return false;
if (!(this.h1n_1 == tmp0_other_with_cast.h1n_1))
return false;
if (!(this.i1n_1 == tmp0_other_with_cast.i1n_1))
return false;
if (!(this.j1n_1 == tmp0_other_with_cast.j1n_1))
return false;
if (!(this.k1n_1 == tmp0_other_with_cast.k1n_1))
return false;
if (!(this.l1n_1 == tmp0_other_with_cast.l1n_1))
return false;
if (!(this.m1n_1 == tmp0_other_with_cast.m1n_1))
return false;
if (!(this.n1n_1 == tmp0_other_with_cast.n1n_1))
return false;
if (!(this.o1n_1 == tmp0_other_with_cast.o1n_1))
return false;
if (!(this.p1n_1 == tmp0_other_with_cast.p1n_1))
return false;
return true;
};
var properties_initialized_TaggerConfig_kt_islkm6;
function _init_properties_TaggerConfig_kt__fn8iyk() {
if (!properties_initialized_TaggerConfig_kt_islkm6) {
properties_initialized_TaggerConfig_kt_islkm6 = true;
runtimeDefaultConfig = new TaggerConfig(VOID, true, true, Defaults_getInstance().h19_1.pc_1, Defaults_getInstance().g19_1.pc_1, Defaults_getInstance().f19_1.pc_1, Defaults_getInstance().e19_1.pc_1, VOID, VOID, VOID, false);
}
}
//region block: post-declaration
protoOf($serializer).rw = typeParametersSerializers;
//endregion
//region block: init
Companion_instance = new Companion();
//endregion
//region block: exports
_.$_$ = _.$_$ || {};
_.$_$.a = TaggerConfig;
_.$_$.b = get_runtimeDefaultConfig;
//endregion
return _;
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./tools-tagger-core.js')));
//# sourceMappingURL=tools-tagger-json.js.map