caos-language-server 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/server.js +113 -39
- package/dist/web/server.js +113 -39
- package/package.json +2 -2
package/dist/node/server.js
CHANGED
|
@@ -62151,7 +62151,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62151
62151
|
}
|
|
62152
62152
|
return destination;
|
|
62153
62153
|
}
|
|
62154
|
+
function get_TypeTokens() {
|
|
62155
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62156
|
+
return typeTokens;
|
|
62157
|
+
}
|
|
62158
|
+
var typeTokens;
|
|
62159
|
+
function get_ErrorTypes() {
|
|
62160
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62161
|
+
return errorTypes;
|
|
62162
|
+
}
|
|
62163
|
+
var errorTypes;
|
|
62164
|
+
function get_ValueType() {
|
|
62165
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62166
|
+
return valueTypes;
|
|
62167
|
+
}
|
|
62168
|
+
var valueTypes;
|
|
62154
62169
|
function getCaos2PrayComments_0(text) {
|
|
62170
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62155
62171
|
var comments = getCaos2PrayComments(text);
|
|
62156
62172
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62157
62173
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62163,6 +62179,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62163
62179
|
return encodeToDynamic(this_0, tmp$ret$1, comments);
|
|
62164
62180
|
}
|
|
62165
62181
|
function getScriptsFromParseResult_0(parseResult) {
|
|
62182
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62166
62183
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
62167
62184
|
var this_0 = get_caosJsonSerializer();
|
|
62168
62185
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62182,6 +62199,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62182
62199
|
return encodeToDynamic(this_3, tmp$ret$4, result);
|
|
62183
62200
|
}
|
|
62184
62201
|
function getWhitespace_0(text) {
|
|
62202
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62185
62203
|
var result = getWhitespace(text);
|
|
62186
62204
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62187
62205
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62193,9 +62211,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62193
62211
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
62194
62212
|
}
|
|
62195
62213
|
function getStops_0(variant, text) {
|
|
62214
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62196
62215
|
return getStops(variant, text);
|
|
62197
62216
|
}
|
|
62198
62217
|
function scriptOffsets_0(text) {
|
|
62218
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62199
62219
|
var result = scriptOffsets(text);
|
|
62200
62220
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62201
62221
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62207,6 +62227,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62207
62227
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
62208
62228
|
}
|
|
62209
62229
|
function scopeOffsets(text) {
|
|
62230
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62210
62231
|
var result = getScopeOffsets(text);
|
|
62211
62232
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62212
62233
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62229,6 +62250,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62229
62250
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
62230
62251
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
62231
62252
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
62253
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62232
62254
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
62233
62255
|
var this_0 = get_caosJsonSerializer();
|
|
62234
62256
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62251,6 +62273,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62251
62273
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
62252
62274
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
62253
62275
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
62276
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62254
62277
|
var result = parseCaosNear(variant, text, line, character, checkErrors, checkDelay, keepGoing);
|
|
62255
62278
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62256
62279
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62265,6 +62288,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62265
62288
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
62266
62289
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
62267
62290
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
62291
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62268
62292
|
var result = parseCaosWithin(variant, text, startLine, startCharacter, endLine, endCharacter, checkErrors, checkDelay, keepGoing);
|
|
62269
62293
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62270
62294
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62277,6 +62301,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62277
62301
|
}
|
|
62278
62302
|
function parseCaos_1(variant, text, keepGoing) {
|
|
62279
62303
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
62304
|
+
_init_properties_collectors_kt__pubhyy();
|
|
62280
62305
|
var result = parseCaos(variant, text, keepGoing);
|
|
62281
62306
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
62282
62307
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -62287,6 +62312,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
62287
62312
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
62288
62313
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
62289
62314
|
}
|
|
62315
|
+
var properties_initialized_collectors_kt_n7uvh4;
|
|
62316
|
+
function _init_properties_collectors_kt__pubhyy() {
|
|
62317
|
+
if (!properties_initialized_collectors_kt_n7uvh4) {
|
|
62318
|
+
properties_initialized_collectors_kt_n7uvh4 = true;
|
|
62319
|
+
typeTokens = TypeTokens_getInstance();
|
|
62320
|
+
errorTypes = ErrorTypes_getInstance();
|
|
62321
|
+
valueTypes = Companion_getInstance_58();
|
|
62322
|
+
}
|
|
62323
|
+
}
|
|
62290
62324
|
function get_mRequire() {
|
|
62291
62325
|
_init_properties_caos_libs_js_kt__j24y2r();
|
|
62292
62326
|
// Inline function 'kotlin.getValue' call
|
|
@@ -63031,6 +63065,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
63031
63065
|
$com$bedalton$creatures$caos$libs.getValuesList = getValuesList;
|
|
63032
63066
|
$com$bedalton$creatures$caos$libs.getValueTypeName = getValueTypeName;
|
|
63033
63067
|
var $collectors = _.collectors || (_.collectors = {});
|
|
63068
|
+
defineProp($collectors, 'TypeTokens', get_TypeTokens);
|
|
63069
|
+
defineProp($collectors, 'ErrorTypes', get_ErrorTypes);
|
|
63070
|
+
defineProp($collectors, 'ValueType', get_ValueType);
|
|
63034
63071
|
$collectors.getCaos2PrayComments = getCaos2PrayComments_0;
|
|
63035
63072
|
$collectors.getScriptsFromParseResult = getScriptsFromParseResult_0;
|
|
63036
63073
|
$collectors.getWhitespace = getWhitespace_0;
|
|
@@ -94312,15 +94349,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
94312
94349
|
}});
|
|
94313
94350
|
}
|
|
94314
94351
|
});
|
|
94315
|
-
if (typeof Math.sign === 'undefined') {
|
|
94316
|
-
Math.sign = function (x) {
|
|
94317
|
-
x = +x; // convert to a number
|
|
94318
|
-
if (x === 0 || isNaN(x)) {
|
|
94319
|
-
return Number(x);
|
|
94320
|
-
}
|
|
94321
|
-
return x > 0 ? 1 : -1;
|
|
94322
|
-
};
|
|
94323
|
-
}
|
|
94324
94352
|
if (typeof Math.log10 === 'undefined') {
|
|
94325
94353
|
Math.log10 = function (x) {
|
|
94326
94354
|
return Math.log(x) * Math.LOG10E;
|
|
@@ -94337,11 +94365,14 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
94337
94365
|
};
|
|
94338
94366
|
}(Math.log, Math.LN2);
|
|
94339
94367
|
}
|
|
94340
|
-
if (typeof
|
|
94341
|
-
|
|
94342
|
-
|
|
94343
|
-
|
|
94344
|
-
|
|
94368
|
+
if (typeof Math.sign === 'undefined') {
|
|
94369
|
+
Math.sign = function (x) {
|
|
94370
|
+
x = +x; // convert to a number
|
|
94371
|
+
if (x === 0 || isNaN(x)) {
|
|
94372
|
+
return Number(x);
|
|
94373
|
+
}
|
|
94374
|
+
return x > 0 ? 1 : -1;
|
|
94375
|
+
};
|
|
94345
94376
|
}
|
|
94346
94377
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
94347
94378
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -94354,6 +94385,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
94354
94385
|
return lastIndex !== -1 && lastIndex === position;
|
|
94355
94386
|
}});
|
|
94356
94387
|
}
|
|
94388
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
94389
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
94390
|
+
position = position || 0;
|
|
94391
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
94392
|
+
}});
|
|
94393
|
+
}
|
|
94357
94394
|
//endregion
|
|
94358
94395
|
(function (root, factory) {
|
|
94359
94396
|
if (true)
|
|
@@ -179556,7 +179593,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179556
179593
|
}
|
|
179557
179594
|
return destination;
|
|
179558
179595
|
}
|
|
179596
|
+
function get_TypeTokens() {
|
|
179597
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179598
|
+
return typeTokens;
|
|
179599
|
+
}
|
|
179600
|
+
var typeTokens;
|
|
179601
|
+
function get_ErrorTypes() {
|
|
179602
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179603
|
+
return errorTypes;
|
|
179604
|
+
}
|
|
179605
|
+
var errorTypes;
|
|
179606
|
+
function get_ValueType() {
|
|
179607
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179608
|
+
return valueTypes;
|
|
179609
|
+
}
|
|
179610
|
+
var valueTypes;
|
|
179559
179611
|
function getCaos2PrayComments_0(text) {
|
|
179612
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179560
179613
|
var comments = getCaos2PrayComments(text);
|
|
179561
179614
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179562
179615
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179568,6 +179621,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179568
179621
|
return encodeToDynamic(this_0, tmp$ret$1, comments);
|
|
179569
179622
|
}
|
|
179570
179623
|
function getScriptsFromParseResult_0(parseResult) {
|
|
179624
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179571
179625
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
179572
179626
|
var this_0 = get_caosJsonSerializer();
|
|
179573
179627
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -179587,6 +179641,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179587
179641
|
return encodeToDynamic(this_3, tmp$ret$4, result);
|
|
179588
179642
|
}
|
|
179589
179643
|
function getWhitespace_0(text) {
|
|
179644
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179590
179645
|
var result = getWhitespace(text);
|
|
179591
179646
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179592
179647
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179598,9 +179653,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179598
179653
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
179599
179654
|
}
|
|
179600
179655
|
function getStops_0(variant, text) {
|
|
179656
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179601
179657
|
return getStops(variant, text);
|
|
179602
179658
|
}
|
|
179603
179659
|
function scriptOffsets_0(text) {
|
|
179660
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179604
179661
|
var result = scriptOffsets(text);
|
|
179605
179662
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179606
179663
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179612,6 +179669,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179612
179669
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
179613
179670
|
}
|
|
179614
179671
|
function scopeOffsets(text) {
|
|
179672
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179615
179673
|
var result = getScopeOffsets(text);
|
|
179616
179674
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179617
179675
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179634,6 +179692,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179634
179692
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
179635
179693
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
179636
179694
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
179695
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179637
179696
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
179638
179697
|
var this_0 = get_caosJsonSerializer();
|
|
179639
179698
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -179656,6 +179715,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179656
179715
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
179657
179716
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
179658
179717
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
179718
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179659
179719
|
var result = parseCaosNear(variant, text, line, character, checkErrors, checkDelay, keepGoing);
|
|
179660
179720
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179661
179721
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179670,6 +179730,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179670
179730
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
179671
179731
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
179672
179732
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
179733
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179673
179734
|
var result = parseCaosWithin(variant, text, startLine, startCharacter, endLine, endCharacter, checkErrors, checkDelay, keepGoing);
|
|
179674
179735
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179675
179736
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179682,6 +179743,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179682
179743
|
}
|
|
179683
179744
|
function parseCaos_1(variant, text, keepGoing) {
|
|
179684
179745
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
179746
|
+
_init_properties_collectors_kt__pubhyy();
|
|
179685
179747
|
var result = parseCaos(variant, text, keepGoing);
|
|
179686
179748
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
179687
179749
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -179692,6 +179754,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
179692
179754
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
179693
179755
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
179694
179756
|
}
|
|
179757
|
+
var properties_initialized_collectors_kt_n7uvh4;
|
|
179758
|
+
function _init_properties_collectors_kt__pubhyy() {
|
|
179759
|
+
if (!properties_initialized_collectors_kt_n7uvh4) {
|
|
179760
|
+
properties_initialized_collectors_kt_n7uvh4 = true;
|
|
179761
|
+
typeTokens = TypeTokens_getInstance();
|
|
179762
|
+
errorTypes = ErrorTypes_getInstance();
|
|
179763
|
+
valueTypes = Companion_getInstance_58();
|
|
179764
|
+
}
|
|
179765
|
+
}
|
|
179695
179766
|
function get_mRequire() {
|
|
179696
179767
|
_init_properties_caos_libs_js_kt__j24y2r();
|
|
179697
179768
|
// Inline function 'kotlin.getValue' call
|
|
@@ -180436,6 +180507,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
180436
180507
|
$com$bedalton$creatures$caos$libs.getValuesList = getValuesList;
|
|
180437
180508
|
$com$bedalton$creatures$caos$libs.getValueTypeName = getValueTypeName;
|
|
180438
180509
|
var $collectors = _.collectors || (_.collectors = {});
|
|
180510
|
+
defineProp($collectors, 'TypeTokens', get_TypeTokens);
|
|
180511
|
+
defineProp($collectors, 'ErrorTypes', get_ErrorTypes);
|
|
180512
|
+
defineProp($collectors, 'ValueType', get_ValueType);
|
|
180439
180513
|
$collectors.getCaos2PrayComments = getCaos2PrayComments_0;
|
|
180440
180514
|
$collectors.getScriptsFromParseResult = getScriptsFromParseResult_0;
|
|
180441
180515
|
$collectors.getWhitespace = getWhitespace_0;
|
|
@@ -189851,15 +189925,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
189851
189925
|
}});
|
|
189852
189926
|
}
|
|
189853
189927
|
});
|
|
189854
|
-
if (typeof Math.sign === 'undefined') {
|
|
189855
|
-
Math.sign = function (x) {
|
|
189856
|
-
x = +x; // convert to a number
|
|
189857
|
-
if (x === 0 || isNaN(x)) {
|
|
189858
|
-
return Number(x);
|
|
189859
|
-
}
|
|
189860
|
-
return x > 0 ? 1 : -1;
|
|
189861
|
-
};
|
|
189862
|
-
}
|
|
189863
189928
|
if (typeof Math.log10 === 'undefined') {
|
|
189864
189929
|
Math.log10 = function (x) {
|
|
189865
189930
|
return Math.log(x) * Math.LOG10E;
|
|
@@ -189876,11 +189941,14 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
189876
189941
|
};
|
|
189877
189942
|
}(Math.log, Math.LN2);
|
|
189878
189943
|
}
|
|
189879
|
-
if (typeof
|
|
189880
|
-
|
|
189881
|
-
|
|
189882
|
-
|
|
189883
|
-
|
|
189944
|
+
if (typeof Math.sign === 'undefined') {
|
|
189945
|
+
Math.sign = function (x) {
|
|
189946
|
+
x = +x; // convert to a number
|
|
189947
|
+
if (x === 0 || isNaN(x)) {
|
|
189948
|
+
return Number(x);
|
|
189949
|
+
}
|
|
189950
|
+
return x > 0 ? 1 : -1;
|
|
189951
|
+
};
|
|
189884
189952
|
}
|
|
189885
189953
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
189886
189954
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -189893,6 +189961,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
189893
189961
|
return lastIndex !== -1 && lastIndex === position;
|
|
189894
189962
|
}});
|
|
189895
189963
|
}
|
|
189964
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
189965
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
189966
|
+
position = position || 0;
|
|
189967
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
189968
|
+
}});
|
|
189969
|
+
}
|
|
189896
189970
|
//endregion
|
|
189897
189971
|
(function (root, factory) {
|
|
189898
189972
|
if (true)
|
|
@@ -230000,7 +230074,7 @@ var Caos2ValueType;
|
|
|
230000
230074
|
Caos2ValueType[Caos2ValueType["DATE"] = 7] = "DATE";
|
|
230001
230075
|
Caos2ValueType[Caos2ValueType["EMAIL"] = 8] = "EMAIL";
|
|
230002
230076
|
Caos2ValueType[Caos2ValueType["URL"] = 9] = "URL";
|
|
230003
|
-
})(Caos2ValueType
|
|
230077
|
+
})(Caos2ValueType = exports.Caos2ValueType || (exports.Caos2ValueType = {}));
|
|
230004
230078
|
function validateCaos2Value(type, value) {
|
|
230005
230079
|
var _a, _b, _c, _d;
|
|
230006
230080
|
switch (type) {
|
|
@@ -230617,8 +230691,8 @@ const completions_caos2_command_1 = __webpack_require__(/*! ./completions.caos2.
|
|
|
230617
230691
|
* @param options
|
|
230618
230692
|
*/
|
|
230619
230693
|
function getCaos2PrayCompletions(thisFileName, variant, allComments, item, line, character, options) {
|
|
230694
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
230620
230695
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230621
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
230622
230696
|
let out = [];
|
|
230623
230697
|
// Get type of comment
|
|
230624
230698
|
const isCommand = item.command != null && item.tag == null;
|
|
@@ -230728,8 +230802,8 @@ const completions_caos2cob_1 = __webpack_require__(/*! ./completions.caos2cob */
|
|
|
230728
230802
|
const completions_caos2pray_values_1 = __webpack_require__(/*! ./completions.caos2pray.values */ "../caos-util/lib/completion/caos2/completions.caos2pray.values.js");
|
|
230729
230803
|
const completions_create_1 = __webpack_require__(/*! ../completions.create */ "../caos-util/lib/completion/completions.create.js");
|
|
230730
230804
|
function getCaos2TagValueCompletions(thisFileName, variant, comment, allComments, line, character, options) {
|
|
230805
|
+
var _a, _b, _c, _d;
|
|
230731
230806
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230732
|
-
var _a, _b, _c, _d;
|
|
230733
230807
|
let range = (_b = (_a = comment
|
|
230734
230808
|
.values
|
|
230735
230809
|
.find((v) => (0, extension_util_1.inRange)(v.textRange, line, character, false, true))) === null || _a === void 0 ? void 0 : _a.textRange) !== null && _b !== void 0 ? _b : {
|
|
@@ -231053,8 +231127,8 @@ function getSpriteTagValueCompletions(tag, inlinedOrDepended, getFiles) {
|
|
|
231053
231127
|
});
|
|
231054
231128
|
}
|
|
231055
231129
|
function getAllFileNames(extensions, inlinedOrDepended, getFiles) {
|
|
231130
|
+
var _a;
|
|
231056
231131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231057
|
-
var _a;
|
|
231058
231132
|
const allFileNames = inlinedOrDepended.map(file => (0, extension_util_1.getFileName)(file));
|
|
231059
231133
|
for (let file of (yield getFiles(extensions))) {
|
|
231060
231134
|
file = (_a = (0, extension_util_1.getFileName)(file)) !== null && _a !== void 0 ? _a : file;
|
|
@@ -232156,9 +232230,9 @@ exports.createEmptyCompletionList = createEmptyCompletionList;
|
|
|
232156
232230
|
* @param opts
|
|
232157
232231
|
* @param cursorPointer passes back cursor to calling method
|
|
232158
232232
|
*/
|
|
232159
|
-
function getCompletionItems(
|
|
232160
|
-
|
|
232161
|
-
|
|
232233
|
+
function getCompletionItems(thisFileName, variant, text, position, opts, completionSettings = null, cursorPointer) {
|
|
232234
|
+
var _a, _b, _c, _d, _e;
|
|
232235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232162
232236
|
const emptyCompletionList = createEmptyCompletionList();
|
|
232163
232237
|
let cursor;
|
|
232164
232238
|
const parseResult = typeof text === "string" ? caos_kt_1.collectors.parseCaosNear(variant, text, position.line, Math.max(position.character - 1, 0), (_a = opts === null || opts === void 0 ? void 0 : opts.incomplete) !== null && _a !== void 0 ? _a : true) : text;
|
|
@@ -232250,9 +232324,9 @@ exports.getCompletionItems = getCompletionItems;
|
|
|
232250
232324
|
* @param settings
|
|
232251
232325
|
* @param caos2Comments
|
|
232252
232326
|
*/
|
|
232253
|
-
function getCompletionItemsWithCaosCursorData(
|
|
232254
|
-
|
|
232255
|
-
|
|
232327
|
+
function getCompletionItemsWithCaosCursorData(thisFileName, variant, commands, positionData, options, settings = null, caos2Comments = []) {
|
|
232328
|
+
var _a;
|
|
232329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232256
232330
|
if (positionData.previousTokens.length === 0 && ((_a = positionData.beforeText) !== null && _a !== void 0 ? _a : '').trim().length === 0) {
|
|
232257
232331
|
return [];
|
|
232258
232332
|
}
|
|
@@ -233370,7 +233444,7 @@ var Is;
|
|
|
233370
233444
|
return item.typeToken == TypeTokens.QUOTE_STRING;
|
|
233371
233445
|
}
|
|
233372
233446
|
Is.c2eStringVal = c2eStringVal;
|
|
233373
|
-
})(Is
|
|
233447
|
+
})(Is = exports.Is || (exports.Is = {}));
|
|
233374
233448
|
__exportStar(__webpack_require__(/*! ./is-similar-variant */ "../caos-util/lib/is-similar-variant.js"), exports);
|
|
233375
233449
|
|
|
233376
233450
|
|
package/dist/web/server.js
CHANGED
|
@@ -59564,7 +59564,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59564
59564
|
}
|
|
59565
59565
|
return destination;
|
|
59566
59566
|
}
|
|
59567
|
+
function get_TypeTokens() {
|
|
59568
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59569
|
+
return typeTokens;
|
|
59570
|
+
}
|
|
59571
|
+
var typeTokens;
|
|
59572
|
+
function get_ErrorTypes() {
|
|
59573
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59574
|
+
return errorTypes;
|
|
59575
|
+
}
|
|
59576
|
+
var errorTypes;
|
|
59577
|
+
function get_ValueType() {
|
|
59578
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59579
|
+
return valueTypes;
|
|
59580
|
+
}
|
|
59581
|
+
var valueTypes;
|
|
59567
59582
|
function getCaos2PrayComments_0(text) {
|
|
59583
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59568
59584
|
var comments = getCaos2PrayComments(text);
|
|
59569
59585
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59570
59586
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59576,6 +59592,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59576
59592
|
return encodeToDynamic(this_0, tmp$ret$1, comments);
|
|
59577
59593
|
}
|
|
59578
59594
|
function getScriptsFromParseResult_0(parseResult) {
|
|
59595
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59579
59596
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
59580
59597
|
var this_0 = get_caosJsonSerializer();
|
|
59581
59598
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -59595,6 +59612,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59595
59612
|
return encodeToDynamic(this_3, tmp$ret$4, result);
|
|
59596
59613
|
}
|
|
59597
59614
|
function getWhitespace_0(text) {
|
|
59615
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59598
59616
|
var result = getWhitespace(text);
|
|
59599
59617
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59600
59618
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59606,9 +59624,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59606
59624
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
59607
59625
|
}
|
|
59608
59626
|
function getStops_0(variant, text) {
|
|
59627
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59609
59628
|
return getStops(variant, text);
|
|
59610
59629
|
}
|
|
59611
59630
|
function scriptOffsets_0(text) {
|
|
59631
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59612
59632
|
var result = scriptOffsets(text);
|
|
59613
59633
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59614
59634
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59620,6 +59640,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59620
59640
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
59621
59641
|
}
|
|
59622
59642
|
function scopeOffsets(text) {
|
|
59643
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59623
59644
|
var result = getScopeOffsets(text);
|
|
59624
59645
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59625
59646
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59642,6 +59663,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59642
59663
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
59643
59664
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
59644
59665
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
59666
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59645
59667
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
59646
59668
|
var this_0 = get_caosJsonSerializer();
|
|
59647
59669
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -59664,6 +59686,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59664
59686
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
59665
59687
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
59666
59688
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
59689
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59667
59690
|
var result = parseCaosNear(variant, text, line, character, checkErrors, checkDelay, keepGoing);
|
|
59668
59691
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59669
59692
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59678,6 +59701,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59678
59701
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
59679
59702
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
59680
59703
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
59704
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59681
59705
|
var result = parseCaosWithin(variant, text, startLine, startCharacter, endLine, endCharacter, checkErrors, checkDelay, keepGoing);
|
|
59682
59706
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59683
59707
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59690,6 +59714,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59690
59714
|
}
|
|
59691
59715
|
function parseCaos_1(variant, text, keepGoing) {
|
|
59692
59716
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
59717
|
+
_init_properties_collectors_kt__pubhyy();
|
|
59693
59718
|
var result = parseCaos(variant, text, keepGoing);
|
|
59694
59719
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
59695
59720
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -59700,6 +59725,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
59700
59725
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
59701
59726
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
59702
59727
|
}
|
|
59728
|
+
var properties_initialized_collectors_kt_n7uvh4;
|
|
59729
|
+
function _init_properties_collectors_kt__pubhyy() {
|
|
59730
|
+
if (!properties_initialized_collectors_kt_n7uvh4) {
|
|
59731
|
+
properties_initialized_collectors_kt_n7uvh4 = true;
|
|
59732
|
+
typeTokens = TypeTokens_getInstance();
|
|
59733
|
+
errorTypes = ErrorTypes_getInstance();
|
|
59734
|
+
valueTypes = Companion_getInstance_58();
|
|
59735
|
+
}
|
|
59736
|
+
}
|
|
59703
59737
|
function get_mRequire() {
|
|
59704
59738
|
_init_properties_caos_libs_js_kt__j24y2r();
|
|
59705
59739
|
// Inline function 'kotlin.getValue' call
|
|
@@ -60444,6 +60478,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
60444
60478
|
$com$bedalton$creatures$caos$libs.getValuesList = getValuesList;
|
|
60445
60479
|
$com$bedalton$creatures$caos$libs.getValueTypeName = getValueTypeName;
|
|
60446
60480
|
var $collectors = _.collectors || (_.collectors = {});
|
|
60481
|
+
defineProp($collectors, 'TypeTokens', get_TypeTokens);
|
|
60482
|
+
defineProp($collectors, 'ErrorTypes', get_ErrorTypes);
|
|
60483
|
+
defineProp($collectors, 'ValueType', get_ValueType);
|
|
60447
60484
|
$collectors.getCaos2PrayComments = getCaos2PrayComments_0;
|
|
60448
60485
|
$collectors.getScriptsFromParseResult = getScriptsFromParseResult_0;
|
|
60449
60486
|
$collectors.getWhitespace = getWhitespace_0;
|
|
@@ -91727,15 +91764,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
91727
91764
|
}});
|
|
91728
91765
|
}
|
|
91729
91766
|
});
|
|
91730
|
-
if (typeof Math.sign === 'undefined') {
|
|
91731
|
-
Math.sign = function (x) {
|
|
91732
|
-
x = +x; // convert to a number
|
|
91733
|
-
if (x === 0 || isNaN(x)) {
|
|
91734
|
-
return Number(x);
|
|
91735
|
-
}
|
|
91736
|
-
return x > 0 ? 1 : -1;
|
|
91737
|
-
};
|
|
91738
|
-
}
|
|
91739
91767
|
if (typeof Math.log10 === 'undefined') {
|
|
91740
91768
|
Math.log10 = function (x) {
|
|
91741
91769
|
return Math.log(x) * Math.LOG10E;
|
|
@@ -91752,11 +91780,14 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
91752
91780
|
};
|
|
91753
91781
|
}(Math.log, Math.LN2);
|
|
91754
91782
|
}
|
|
91755
|
-
if (typeof
|
|
91756
|
-
|
|
91757
|
-
|
|
91758
|
-
|
|
91759
|
-
|
|
91783
|
+
if (typeof Math.sign === 'undefined') {
|
|
91784
|
+
Math.sign = function (x) {
|
|
91785
|
+
x = +x; // convert to a number
|
|
91786
|
+
if (x === 0 || isNaN(x)) {
|
|
91787
|
+
return Number(x);
|
|
91788
|
+
}
|
|
91789
|
+
return x > 0 ? 1 : -1;
|
|
91790
|
+
};
|
|
91760
91791
|
}
|
|
91761
91792
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
91762
91793
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -91769,6 +91800,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
91769
91800
|
return lastIndex !== -1 && lastIndex === position;
|
|
91770
91801
|
}});
|
|
91771
91802
|
}
|
|
91803
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
91804
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
91805
|
+
position = position || 0;
|
|
91806
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
91807
|
+
}});
|
|
91808
|
+
}
|
|
91772
91809
|
//endregion
|
|
91773
91810
|
(function (root, factory) {
|
|
91774
91811
|
if (true)
|
|
@@ -176971,7 +177008,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
176971
177008
|
}
|
|
176972
177009
|
return destination;
|
|
176973
177010
|
}
|
|
177011
|
+
function get_TypeTokens() {
|
|
177012
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177013
|
+
return typeTokens;
|
|
177014
|
+
}
|
|
177015
|
+
var typeTokens;
|
|
177016
|
+
function get_ErrorTypes() {
|
|
177017
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177018
|
+
return errorTypes;
|
|
177019
|
+
}
|
|
177020
|
+
var errorTypes;
|
|
177021
|
+
function get_ValueType() {
|
|
177022
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177023
|
+
return valueTypes;
|
|
177024
|
+
}
|
|
177025
|
+
var valueTypes;
|
|
176974
177026
|
function getCaos2PrayComments_0(text) {
|
|
177027
|
+
_init_properties_collectors_kt__pubhyy();
|
|
176975
177028
|
var comments = getCaos2PrayComments(text);
|
|
176976
177029
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
176977
177030
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -176983,6 +177036,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
176983
177036
|
return encodeToDynamic(this_0, tmp$ret$1, comments);
|
|
176984
177037
|
}
|
|
176985
177038
|
function getScriptsFromParseResult_0(parseResult) {
|
|
177039
|
+
_init_properties_collectors_kt__pubhyy();
|
|
176986
177040
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
176987
177041
|
var this_0 = get_caosJsonSerializer();
|
|
176988
177042
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -177002,6 +177056,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177002
177056
|
return encodeToDynamic(this_3, tmp$ret$4, result);
|
|
177003
177057
|
}
|
|
177004
177058
|
function getWhitespace_0(text) {
|
|
177059
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177005
177060
|
var result = getWhitespace(text);
|
|
177006
177061
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
177007
177062
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -177013,9 +177068,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177013
177068
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
177014
177069
|
}
|
|
177015
177070
|
function getStops_0(variant, text) {
|
|
177071
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177016
177072
|
return getStops(variant, text);
|
|
177017
177073
|
}
|
|
177018
177074
|
function scriptOffsets_0(text) {
|
|
177075
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177019
177076
|
var result = scriptOffsets(text);
|
|
177020
177077
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
177021
177078
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -177027,6 +177084,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177027
177084
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
177028
177085
|
}
|
|
177029
177086
|
function scopeOffsets(text) {
|
|
177087
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177030
177088
|
var result = getScopeOffsets(text);
|
|
177031
177089
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
177032
177090
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -177049,6 +177107,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177049
177107
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
177050
177108
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
177051
177109
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
177110
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177052
177111
|
// Inline function 'kotlinx.serialization.json.decodeFromDynamic' call
|
|
177053
177112
|
var this_0 = get_caosJsonSerializer();
|
|
177054
177113
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -177071,6 +177130,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177071
177130
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
177072
177131
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
177073
177132
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
177133
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177074
177134
|
var result = parseCaosNear(variant, text, line, character, checkErrors, checkDelay, keepGoing);
|
|
177075
177135
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
177076
177136
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -177085,6 +177145,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177085
177145
|
checkErrors = checkErrors === VOID ? null : checkErrors;
|
|
177086
177146
|
checkDelay = checkDelay === VOID ? null : checkDelay;
|
|
177087
177147
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
177148
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177088
177149
|
var result = parseCaosWithin(variant, text, startLine, startCharacter, endLine, endCharacter, checkErrors, checkDelay, keepGoing);
|
|
177089
177150
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
177090
177151
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -177097,6 +177158,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177097
177158
|
}
|
|
177098
177159
|
function parseCaos_1(variant, text, keepGoing) {
|
|
177099
177160
|
keepGoing = keepGoing === VOID ? null : keepGoing;
|
|
177161
|
+
_init_properties_collectors_kt__pubhyy();
|
|
177100
177162
|
var result = parseCaos(variant, text, keepGoing);
|
|
177101
177163
|
// Inline function 'kotlinx.serialization.json.encodeToDynamic' call
|
|
177102
177164
|
var this_0 = get_caosJsonSerializer();
|
|
@@ -177107,6 +177169,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177107
177169
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
177108
177170
|
return encodeToDynamic(this_0, tmp$ret$1, result);
|
|
177109
177171
|
}
|
|
177172
|
+
var properties_initialized_collectors_kt_n7uvh4;
|
|
177173
|
+
function _init_properties_collectors_kt__pubhyy() {
|
|
177174
|
+
if (!properties_initialized_collectors_kt_n7uvh4) {
|
|
177175
|
+
properties_initialized_collectors_kt_n7uvh4 = true;
|
|
177176
|
+
typeTokens = TypeTokens_getInstance();
|
|
177177
|
+
errorTypes = ErrorTypes_getInstance();
|
|
177178
|
+
valueTypes = Companion_getInstance_58();
|
|
177179
|
+
}
|
|
177180
|
+
}
|
|
177110
177181
|
function get_mRequire() {
|
|
177111
177182
|
_init_properties_caos_libs_js_kt__j24y2r();
|
|
177112
177183
|
// Inline function 'kotlin.getValue' call
|
|
@@ -177851,6 +177922,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
177851
177922
|
$com$bedalton$creatures$caos$libs.getValuesList = getValuesList;
|
|
177852
177923
|
$com$bedalton$creatures$caos$libs.getValueTypeName = getValueTypeName;
|
|
177853
177924
|
var $collectors = _.collectors || (_.collectors = {});
|
|
177925
|
+
defineProp($collectors, 'TypeTokens', get_TypeTokens);
|
|
177926
|
+
defineProp($collectors, 'ErrorTypes', get_ErrorTypes);
|
|
177927
|
+
defineProp($collectors, 'ValueType', get_ValueType);
|
|
177854
177928
|
$collectors.getCaos2PrayComments = getCaos2PrayComments_0;
|
|
177855
177929
|
$collectors.getScriptsFromParseResult = getScriptsFromParseResult_0;
|
|
177856
177930
|
$collectors.getWhitespace = getWhitespace_0;
|
|
@@ -187268,15 +187342,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
187268
187342
|
}});
|
|
187269
187343
|
}
|
|
187270
187344
|
});
|
|
187271
|
-
if (typeof Math.sign === 'undefined') {
|
|
187272
|
-
Math.sign = function (x) {
|
|
187273
|
-
x = +x; // convert to a number
|
|
187274
|
-
if (x === 0 || isNaN(x)) {
|
|
187275
|
-
return Number(x);
|
|
187276
|
-
}
|
|
187277
|
-
return x > 0 ? 1 : -1;
|
|
187278
|
-
};
|
|
187279
|
-
}
|
|
187280
187345
|
if (typeof Math.log10 === 'undefined') {
|
|
187281
187346
|
Math.log10 = function (x) {
|
|
187282
187347
|
return Math.log(x) * Math.LOG10E;
|
|
@@ -187293,11 +187358,14 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
187293
187358
|
};
|
|
187294
187359
|
}(Math.log, Math.LN2);
|
|
187295
187360
|
}
|
|
187296
|
-
if (typeof
|
|
187297
|
-
|
|
187298
|
-
|
|
187299
|
-
|
|
187300
|
-
|
|
187361
|
+
if (typeof Math.sign === 'undefined') {
|
|
187362
|
+
Math.sign = function (x) {
|
|
187363
|
+
x = +x; // convert to a number
|
|
187364
|
+
if (x === 0 || isNaN(x)) {
|
|
187365
|
+
return Number(x);
|
|
187366
|
+
}
|
|
187367
|
+
return x > 0 ? 1 : -1;
|
|
187368
|
+
};
|
|
187301
187369
|
}
|
|
187302
187370
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
187303
187371
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -187310,6 +187378,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
187310
187378
|
return lastIndex !== -1 && lastIndex === position;
|
|
187311
187379
|
}});
|
|
187312
187380
|
}
|
|
187381
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
187382
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
187383
|
+
position = position || 0;
|
|
187384
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
187385
|
+
}});
|
|
187386
|
+
}
|
|
187313
187387
|
//endregion
|
|
187314
187388
|
(function (root, factory) {
|
|
187315
187389
|
if (true)
|
|
@@ -227417,7 +227491,7 @@ var Caos2ValueType;
|
|
|
227417
227491
|
Caos2ValueType[Caos2ValueType["DATE"] = 7] = "DATE";
|
|
227418
227492
|
Caos2ValueType[Caos2ValueType["EMAIL"] = 8] = "EMAIL";
|
|
227419
227493
|
Caos2ValueType[Caos2ValueType["URL"] = 9] = "URL";
|
|
227420
|
-
})(Caos2ValueType
|
|
227494
|
+
})(Caos2ValueType = exports.Caos2ValueType || (exports.Caos2ValueType = {}));
|
|
227421
227495
|
function validateCaos2Value(type, value) {
|
|
227422
227496
|
var _a, _b, _c, _d;
|
|
227423
227497
|
switch (type) {
|
|
@@ -228034,8 +228108,8 @@ const completions_caos2_command_1 = __webpack_require__(/*! ./completions.caos2.
|
|
|
228034
228108
|
* @param options
|
|
228035
228109
|
*/
|
|
228036
228110
|
function getCaos2PrayCompletions(thisFileName, variant, allComments, item, line, character, options) {
|
|
228111
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
228037
228112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
228038
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
228039
228113
|
let out = [];
|
|
228040
228114
|
// Get type of comment
|
|
228041
228115
|
const isCommand = item.command != null && item.tag == null;
|
|
@@ -228145,8 +228219,8 @@ const completions_caos2cob_1 = __webpack_require__(/*! ./completions.caos2cob */
|
|
|
228145
228219
|
const completions_caos2pray_values_1 = __webpack_require__(/*! ./completions.caos2pray.values */ "../caos-util/lib/completion/caos2/completions.caos2pray.values.js");
|
|
228146
228220
|
const completions_create_1 = __webpack_require__(/*! ../completions.create */ "../caos-util/lib/completion/completions.create.js");
|
|
228147
228221
|
function getCaos2TagValueCompletions(thisFileName, variant, comment, allComments, line, character, options) {
|
|
228222
|
+
var _a, _b, _c, _d;
|
|
228148
228223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
228149
|
-
var _a, _b, _c, _d;
|
|
228150
228224
|
let range = (_b = (_a = comment
|
|
228151
228225
|
.values
|
|
228152
228226
|
.find((v) => (0, extension_util_1.inRange)(v.textRange, line, character, false, true))) === null || _a === void 0 ? void 0 : _a.textRange) !== null && _b !== void 0 ? _b : {
|
|
@@ -228470,8 +228544,8 @@ function getSpriteTagValueCompletions(tag, inlinedOrDepended, getFiles) {
|
|
|
228470
228544
|
});
|
|
228471
228545
|
}
|
|
228472
228546
|
function getAllFileNames(extensions, inlinedOrDepended, getFiles) {
|
|
228547
|
+
var _a;
|
|
228473
228548
|
return __awaiter(this, void 0, void 0, function* () {
|
|
228474
|
-
var _a;
|
|
228475
228549
|
const allFileNames = inlinedOrDepended.map(file => (0, extension_util_1.getFileName)(file));
|
|
228476
228550
|
for (let file of (yield getFiles(extensions))) {
|
|
228477
228551
|
file = (_a = (0, extension_util_1.getFileName)(file)) !== null && _a !== void 0 ? _a : file;
|
|
@@ -229573,9 +229647,9 @@ exports.createEmptyCompletionList = createEmptyCompletionList;
|
|
|
229573
229647
|
* @param opts
|
|
229574
229648
|
* @param cursorPointer passes back cursor to calling method
|
|
229575
229649
|
*/
|
|
229576
|
-
function getCompletionItems(
|
|
229577
|
-
|
|
229578
|
-
|
|
229650
|
+
function getCompletionItems(thisFileName, variant, text, position, opts, completionSettings = null, cursorPointer) {
|
|
229651
|
+
var _a, _b, _c, _d, _e;
|
|
229652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229579
229653
|
const emptyCompletionList = createEmptyCompletionList();
|
|
229580
229654
|
let cursor;
|
|
229581
229655
|
const parseResult = typeof text === "string" ? caos_kt_1.collectors.parseCaosNear(variant, text, position.line, Math.max(position.character - 1, 0), (_a = opts === null || opts === void 0 ? void 0 : opts.incomplete) !== null && _a !== void 0 ? _a : true) : text;
|
|
@@ -229667,9 +229741,9 @@ exports.getCompletionItems = getCompletionItems;
|
|
|
229667
229741
|
* @param settings
|
|
229668
229742
|
* @param caos2Comments
|
|
229669
229743
|
*/
|
|
229670
|
-
function getCompletionItemsWithCaosCursorData(
|
|
229671
|
-
|
|
229672
|
-
|
|
229744
|
+
function getCompletionItemsWithCaosCursorData(thisFileName, variant, commands, positionData, options, settings = null, caos2Comments = []) {
|
|
229745
|
+
var _a;
|
|
229746
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229673
229747
|
if (positionData.previousTokens.length === 0 && ((_a = positionData.beforeText) !== null && _a !== void 0 ? _a : '').trim().length === 0) {
|
|
229674
229748
|
return [];
|
|
229675
229749
|
}
|
|
@@ -230787,7 +230861,7 @@ var Is;
|
|
|
230787
230861
|
return item.typeToken == TypeTokens.QUOTE_STRING;
|
|
230788
230862
|
}
|
|
230789
230863
|
Is.c2eStringVal = c2eStringVal;
|
|
230790
|
-
})(Is
|
|
230864
|
+
})(Is = exports.Is || (exports.Is = {}));
|
|
230791
230865
|
__exportStar(__webpack_require__(/*! ./is-similar-variant */ "../caos-util/lib/is-similar-variant.js"), exports);
|
|
230792
230866
|
|
|
230793
230867
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName": "CAOSEditor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A language server for Creature's CAOS language",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.2",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": "*"
|
|
10
10
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"url": "https://github.com/bedalton/caos-language-server"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"rimraf": "^
|
|
38
|
+
"rimraf": "^5.0.7",
|
|
39
39
|
"vscode-languageserver": "^9.0.1",
|
|
40
40
|
"vscode-languageserver-textdocument": "^1.0.11"
|
|
41
41
|
},
|