@abaplint/transpiler-cli 2.10.83 → 2.11.0

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.
Files changed (2) hide show
  1. package/build/bundle.js +38 -8
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -77305,8 +77305,9 @@ abaplint:
77305
77305
  */
77306
77306
  // Keeps track of source maps as generated code is added
77307
77307
  class Chunk {
77308
+ raw;
77309
+ mappings = [];
77308
77310
  constructor(str) {
77309
- this.mappings = [];
77310
77311
  this.raw = "";
77311
77312
  this.mappings = [];
77312
77313
  if (str) {
@@ -77456,6 +77457,7 @@ const snowflake_database_schema_1 = __webpack_require__(/*! ./schema_generation/
77456
77457
  // Postgres is case sensitive, so all column names should be lower case
77457
77458
  // Sqlite escapes field names with single qoute, postgres with double
77458
77459
  class DatabaseSetup {
77460
+ reg;
77459
77461
  constructor(reg) {
77460
77462
  this.reg = reg;
77461
77463
  }
@@ -77570,6 +77572,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
77570
77572
  exports.PGDatabaseSchema = void 0;
77571
77573
  const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
77572
77574
  class PGDatabaseSchema {
77575
+ reg;
77573
77576
  constructor(reg) {
77574
77577
  this.reg = reg;
77575
77578
  }
@@ -77681,6 +77684,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
77681
77684
  exports.SnowflakeDatabaseSchema = void 0;
77682
77685
  const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
77683
77686
  class SnowflakeDatabaseSchema {
77687
+ reg;
77684
77688
  constructor(reg) {
77685
77689
  this.reg = reg;
77686
77690
  }
@@ -77793,6 +77797,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
77793
77797
  exports.SQLiteDatabaseSchema = void 0;
77794
77798
  const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
77795
77799
  class SQLiteDatabaseSchema {
77800
+ reg;
77796
77801
  constructor(reg) {
77797
77802
  this.reg = reg;
77798
77803
  }
@@ -78290,8 +78295,8 @@ const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@aba
78290
78295
  const field_length_1 = __webpack_require__(/*! ./field_length */ "./node_modules/@abaplint/transpiler/build/src/expressions/field_length.js");
78291
78296
  const field_offset_1 = __webpack_require__(/*! ./field_offset */ "./node_modules/@abaplint/transpiler/build/src/expressions/field_offset.js");
78292
78297
  class ComponentChainSimpleTranspiler {
78298
+ prefix = "";
78293
78299
  constructor(prefix = "") {
78294
- this.prefix = "";
78295
78300
  this.prefix = prefix;
78296
78301
  }
78297
78302
  transpile(node, traversal) {
@@ -78577,6 +78582,7 @@ exports.ConstantTranspiler = void 0;
78577
78582
  const core_1 = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
78578
78583
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
78579
78584
  class ConstantTranspiler {
78585
+ addGet;
78580
78586
  constructor(addGet = false) {
78581
78587
  this.addGet = addGet;
78582
78588
  }
@@ -78712,6 +78718,7 @@ exports.DatabaseTableTranspiler = void 0;
78712
78718
  const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
78713
78719
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
78714
78720
  class DatabaseTableTranspiler {
78721
+ prefix;
78715
78722
  constructor(prefix = true) {
78716
78723
  this.prefix = prefix;
78717
78724
  }
@@ -78764,6 +78771,8 @@ const field_symbol_1 = __webpack_require__(/*! ./field_symbol */ "./node_modules
78764
78771
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
78765
78772
  const feature_flags_1 = __webpack_require__(/*! ../feature_flags */ "./node_modules/@abaplint/transpiler/build/src/feature_flags.js");
78766
78773
  class FieldChainTranspiler {
78774
+ addGet;
78775
+ addGetOffset;
78767
78776
  constructor(addGet = false) {
78768
78777
  this.addGet = addGet;
78769
78778
  }
@@ -79230,6 +79239,7 @@ const core_1 = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abapli
79230
79239
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
79231
79240
  const method_call_param_1 = __webpack_require__(/*! ./method_call_param */ "./node_modules/@abaplint/transpiler/build/src/expressions/method_call_param.js");
79232
79241
  class MethodCallBodyTranspiler {
79242
+ m;
79233
79243
  constructor(m) {
79234
79244
  this.m = m;
79235
79245
  }
@@ -79355,6 +79365,7 @@ exports.MethodCallParamTranspiler = void 0;
79355
79365
  const core_1 = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
79356
79366
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
79357
79367
  class MethodCallParamTranspiler {
79368
+ m;
79358
79369
  constructor(m) {
79359
79370
  this.m = m;
79360
79371
  }
@@ -79462,6 +79473,7 @@ const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@aba
79462
79473
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
79463
79474
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
79464
79475
  class MethodSourceTranspiler {
79476
+ prepend;
79465
79477
  constructor(prepend) {
79466
79478
  this.prepend = (prepend || "") + "await ";
79467
79479
  }
@@ -79782,6 +79794,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
79782
79794
  exports.SimpleSource3Transpiler = void 0;
79783
79795
  const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/transpiler/build/src/expressions/source.js");
79784
79796
  class SimpleSource3Transpiler {
79797
+ addGet;
79785
79798
  constructor(addGet = false) {
79786
79799
  this.addGet = addGet;
79787
79800
  }
@@ -79830,6 +79843,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/transpiler/bui
79830
79843
  const constant_1 = __webpack_require__(/*! ./constant */ "./node_modules/@abaplint/transpiler/build/src/expressions/constant.js");
79831
79844
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
79832
79845
  class SourceTranspiler {
79846
+ addGet;
79833
79847
  constructor(addGet = false) {
79834
79848
  this.addGet = addGet;
79835
79849
  }
@@ -80889,6 +80903,7 @@ const requires_1 = __webpack_require__(/*! ../requires */ "./node_modules/@abapl
80889
80903
  const rearranger_1 = __webpack_require__(/*! ../rearranger */ "./node_modules/@abaplint/transpiler/build/src/rearranger.js");
80890
80904
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
80891
80905
  class HandleABAP {
80906
+ options;
80892
80907
  constructor(options) {
80893
80908
  this.options = options;
80894
80909
  }
@@ -81144,6 +81159,7 @@ const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@aba
81144
81159
  const rearranger_1 = __webpack_require__(/*! ../rearranger */ "./node_modules/@abaplint/transpiler/build/src/rearranger.js");
81145
81160
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
81146
81161
  class HandleFUGR {
81162
+ options;
81147
81163
  constructor(options) {
81148
81164
  this.options = options;
81149
81165
  }
@@ -81592,6 +81608,7 @@ const handle_oa2p_1 = __webpack_require__(/*! ./handlers/handle_oa2p */ "./node_
81592
81608
  const handle_fugr_1 = __webpack_require__(/*! ./handlers/handle_fugr */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_fugr.js");
81593
81609
  const initialization_1 = __webpack_require__(/*! ./initialization */ "./node_modules/@abaplint/transpiler/build/src/initialization.js");
81594
81610
  class Transpiler {
81611
+ options;
81595
81612
  constructor(options) {
81596
81613
  this.options = options;
81597
81614
  if (this.options === undefined) {
@@ -81977,6 +81994,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
81977
81994
  exports.Requires = void 0;
81978
81995
  const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
81979
81996
  class Requires {
81997
+ reg;
81980
81998
  constructor(reg) {
81981
81999
  this.reg = reg;
81982
82000
  }
@@ -83803,6 +83821,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
83803
83821
  const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
83804
83822
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
83805
83823
  class DoTranspiler {
83824
+ syIndexBackup;
83806
83825
  constructor(syIndexBackup) {
83807
83826
  this.syIndexBackup = syIndexBackup;
83808
83827
  }
@@ -83977,6 +83996,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
83977
83996
  exports.EndDoTranspiler = void 0;
83978
83997
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
83979
83998
  class EndDoTranspiler {
83999
+ syIndexBackup;
83980
84000
  constructor(syIndexBackup) {
83981
84001
  this.syIndexBackup = syIndexBackup;
83982
84002
  }
@@ -84176,6 +84196,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
84176
84196
  exports.EndWhileTranspiler = void 0;
84177
84197
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
84178
84198
  class EndWhileTranspiler {
84199
+ syIndexBackup;
84179
84200
  constructor(syIndexBackup) {
84180
84201
  this.syIndexBackup = syIndexBackup;
84181
84202
  }
@@ -85263,10 +85284,10 @@ const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./n
85263
85284
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
85264
85285
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
85265
85286
  class LoopTranspiler {
85287
+ unique = "";
85288
+ injectFrom = undefined;
85289
+ skipInto = undefined;
85266
85290
  constructor(options) {
85267
- this.unique = "";
85268
- this.injectFrom = undefined;
85269
- this.skipInto = undefined;
85270
85291
  this.injectFrom = options?.injectFrom;
85271
85292
  this.skipInto = options?.skipInto;
85272
85293
  }
@@ -87815,6 +87836,7 @@ const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abap
87815
87836
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
87816
87837
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
87817
87838
  class WhenTranspiler {
87839
+ u;
87818
87840
  constructor(u) {
87819
87841
  this.u = u;
87820
87842
  }
@@ -87850,6 +87872,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
87850
87872
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
87851
87873
  const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
87852
87874
  class WhileTranspiler {
87875
+ syIndexBackup;
87853
87876
  constructor(syIndexBackup) {
87854
87877
  this.syIndexBackup = syIndexBackup;
87855
87878
  }
@@ -89412,8 +89435,12 @@ const expressions_1 = __webpack_require__(/*! ./expressions */ "./node_modules/@
89412
89435
  const keywords_1 = __webpack_require__(/*! ./keywords */ "./node_modules/@abaplint/transpiler/build/src/keywords.js");
89413
89436
  const feature_flags_1 = __webpack_require__(/*! ./feature_flags */ "./node_modules/@abaplint/transpiler/build/src/feature_flags.js");
89414
89437
  class Traversal {
89438
+ spaghetti;
89439
+ file;
89440
+ obj;
89441
+ reg;
89442
+ options;
89415
89443
  constructor(spaghetti, file, obj, reg, options) {
89416
- this.scopeCache = undefined;
89417
89444
  this.spaghetti = spaghetti;
89418
89445
  this.file = file;
89419
89446
  this.obj = obj;
@@ -89469,6 +89496,7 @@ class Traversal {
89469
89496
  }
89470
89497
  return undefined;
89471
89498
  }
89499
+ scopeCache = undefined;
89472
89500
  findCurrentScopeByToken(token) {
89473
89501
  const filename = this.file.getFilename();
89474
89502
  if (this.scopeCache
@@ -90173,6 +90201,8 @@ var UnknownTypesEnum;
90173
90201
  Object.defineProperty(exports, "__esModule", ({ value: true }));
90174
90202
  exports.UniqueIdentifier = void 0;
90175
90203
  class UniqueIdentifier {
90204
+ static counter = 0;
90205
+ static indexBackup = 0;
90176
90206
  static reset() {
90177
90207
  this.counter = 0;
90178
90208
  }
@@ -90194,8 +90224,6 @@ class UniqueIdentifier {
90194
90224
  }
90195
90225
  }
90196
90226
  exports.UniqueIdentifier = UniqueIdentifier;
90197
- UniqueIdentifier.counter = 0;
90198
- UniqueIdentifier.indexBackup = 0;
90199
90227
  //# sourceMappingURL=unique_identifier.js.map
90200
90228
 
90201
90229
  /***/ }),
@@ -90543,6 +90571,7 @@ exports.config = {
90543
90571
  // todo, make sure nothing is overloaded, eg "lines()", there is a rule for this in abaplint now
90544
90572
  // hmm this ^ is okay? since lines will be prefixed with "abap.builtin"?
90545
90573
  class Validation {
90574
+ options;
90546
90575
  constructor(options) {
90547
90576
  this.options = options;
90548
90577
  }
@@ -101495,6 +101524,7 @@ const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abap
101495
101524
  const config_1 = __webpack_require__(/*! ./config */ "./build/config.js");
101496
101525
  const file_operations_1 = __webpack_require__(/*! ./file_operations */ "./build/file_operations.js");
101497
101526
  class Progress {
101527
+ bar;
101498
101528
  set(total, _text) {
101499
101529
  this.bar = new ProgressBar(":percent - :elapseds - :text", { total, renderThrottle: 100 });
101500
101530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.10.83",
3
+ "version": "2.11.0",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.150",
31
- "@abaplint/transpiler": "^2.10.83",
31
+ "@abaplint/transpiler": "^2.11.0",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^22.17.0",
34
34
  "@types/progress": "^2.0.7",