@abaplint/transpiler 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.
@@ -14,8 +14,9 @@ abaplint:
14
14
  */
15
15
  // Keeps track of source maps as generated code is added
16
16
  class Chunk {
17
+ raw;
18
+ mappings = [];
17
19
  constructor(str) {
18
- this.mappings = [];
19
20
  this.raw = "";
20
21
  this.mappings = [];
21
22
  if (str) {
@@ -11,6 +11,7 @@ const snowflake_database_schema_1 = require("./schema_generation/snowflake_datab
11
11
  // Postgres is case sensitive, so all column names should be lower case
12
12
  // Sqlite escapes field names with single qoute, postgres with double
13
13
  class DatabaseSetup {
14
+ reg;
14
15
  constructor(reg) {
15
16
  this.reg = reg;
16
17
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PGDatabaseSchema = void 0;
4
4
  const abaplint = require("@abaplint/core");
5
5
  class PGDatabaseSchema {
6
+ reg;
6
7
  constructor(reg) {
7
8
  this.reg = reg;
8
9
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SnowflakeDatabaseSchema = void 0;
4
4
  const abaplint = require("@abaplint/core");
5
5
  class SnowflakeDatabaseSchema {
6
+ reg;
6
7
  constructor(reg) {
7
8
  this.reg = reg;
8
9
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SQLiteDatabaseSchema = void 0;
4
4
  const abaplint = require("@abaplint/core");
5
5
  class SQLiteDatabaseSchema {
6
+ reg;
6
7
  constructor(reg) {
7
8
  this.reg = reg;
8
9
  }
@@ -7,8 +7,8 @@ const traversal_1 = require("../traversal");
7
7
  const field_length_1 = require("./field_length");
8
8
  const field_offset_1 = require("./field_offset");
9
9
  class ComponentChainSimpleTranspiler {
10
+ prefix = "";
10
11
  constructor(prefix = "") {
11
- this.prefix = "";
12
12
  this.prefix = prefix;
13
13
  }
14
14
  transpile(node, traversal) {
@@ -4,6 +4,7 @@ exports.ConstantTranspiler = void 0;
4
4
  const core_1 = require("@abaplint/core");
5
5
  const chunk_1 = require("../chunk");
6
6
  class ConstantTranspiler {
7
+ addGet;
7
8
  constructor(addGet = false) {
8
9
  this.addGet = addGet;
9
10
  }
@@ -4,6 +4,7 @@ exports.DatabaseTableTranspiler = void 0;
4
4
  const abaplint = require("@abaplint/core");
5
5
  const chunk_1 = require("../chunk");
6
6
  class DatabaseTableTranspiler {
7
+ prefix;
7
8
  constructor(prefix = true) {
8
9
  this.prefix = prefix;
9
10
  }
@@ -9,6 +9,8 @@ const field_symbol_1 = require("./field_symbol");
9
9
  const chunk_1 = require("../chunk");
10
10
  const feature_flags_1 = require("../feature_flags");
11
11
  class FieldChainTranspiler {
12
+ addGet;
13
+ addGetOffset;
12
14
  constructor(addGet = false) {
13
15
  this.addGet = addGet;
14
16
  }
@@ -6,6 +6,7 @@ const core_1 = require("@abaplint/core");
6
6
  const chunk_1 = require("../chunk");
7
7
  const method_call_param_1 = require("./method_call_param");
8
8
  class MethodCallBodyTranspiler {
9
+ m;
9
10
  constructor(m) {
10
11
  this.m = m;
11
12
  }
@@ -4,6 +4,7 @@ exports.MethodCallParamTranspiler = void 0;
4
4
  const core_1 = require("@abaplint/core");
5
5
  const chunk_1 = require("../chunk");
6
6
  class MethodCallParamTranspiler {
7
+ m;
7
8
  constructor(m) {
8
9
  this.m = m;
9
10
  }
@@ -7,6 +7,7 @@ const traversal_1 = require("../traversal");
7
7
  const chunk_1 = require("../chunk");
8
8
  const _1 = require(".");
9
9
  class MethodSourceTranspiler {
10
+ prepend;
10
11
  constructor(prepend) {
11
12
  this.prepend = (prepend || "") + "await ";
12
13
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SimpleSource3Transpiler = void 0;
4
4
  const source_1 = require("./source");
5
5
  class SimpleSource3Transpiler {
6
+ addGet;
6
7
  constructor(addGet = false) {
7
8
  this.addGet = addGet;
8
9
  }
@@ -6,6 +6,7 @@ const _1 = require(".");
6
6
  const constant_1 = require("./constant");
7
7
  const chunk_1 = require("../chunk");
8
8
  class SourceTranspiler {
9
+ addGet;
9
10
  constructor(addGet = false) {
10
11
  this.addGet = addGet;
11
12
  }
@@ -7,6 +7,7 @@ const requires_1 = require("../requires");
7
7
  const rearranger_1 = require("../rearranger");
8
8
  const chunk_1 = require("../chunk");
9
9
  class HandleABAP {
10
+ options;
10
11
  constructor(options) {
11
12
  this.options = options;
12
13
  }
@@ -6,6 +6,7 @@ const traversal_1 = require("../traversal");
6
6
  const rearranger_1 = require("../rearranger");
7
7
  const chunk_1 = require("../chunk");
8
8
  class HandleFUGR {
9
+ options;
9
10
  constructor(options) {
10
11
  this.options = options;
11
12
  }
@@ -22,6 +22,7 @@ const handle_oa2p_1 = require("./handlers/handle_oa2p");
22
22
  const handle_fugr_1 = require("./handlers/handle_fugr");
23
23
  const initialization_1 = require("./initialization");
24
24
  class Transpiler {
25
+ options;
25
26
  constructor(options) {
26
27
  this.options = options;
27
28
  if (this.options === undefined) {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Requires = void 0;
4
4
  const abaplint = require("@abaplint/core");
5
5
  class Requires {
6
+ reg;
6
7
  constructor(reg) {
7
8
  this.reg = reg;
8
9
  }
@@ -6,6 +6,7 @@ const expressions_1 = require("../expressions");
6
6
  const unique_identifier_1 = require("../unique_identifier");
7
7
  const chunk_1 = require("../chunk");
8
8
  class DoTranspiler {
9
+ syIndexBackup;
9
10
  constructor(syIndexBackup) {
10
11
  this.syIndexBackup = syIndexBackup;
11
12
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EndDoTranspiler = void 0;
4
4
  const chunk_1 = require("../chunk");
5
5
  class EndDoTranspiler {
6
+ syIndexBackup;
6
7
  constructor(syIndexBackup) {
7
8
  this.syIndexBackup = syIndexBackup;
8
9
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EndWhileTranspiler = void 0;
4
4
  const chunk_1 = require("../chunk");
5
5
  class EndWhileTranspiler {
6
+ syIndexBackup;
6
7
  constructor(syIndexBackup) {
7
8
  this.syIndexBackup = syIndexBackup;
8
9
  }
@@ -6,10 +6,10 @@ const unique_identifier_1 = require("../unique_identifier");
6
6
  const expressions_1 = require("../expressions");
7
7
  const chunk_1 = require("../chunk");
8
8
  class LoopTranspiler {
9
+ unique = "";
10
+ injectFrom = undefined;
11
+ skipInto = undefined;
9
12
  constructor(options) {
10
- this.unique = "";
11
- this.injectFrom = undefined;
12
- this.skipInto = undefined;
13
13
  this.injectFrom = options?.injectFrom;
14
14
  this.skipInto = options?.skipInto;
15
15
  }
@@ -5,6 +5,7 @@ const abaplint = require("@abaplint/core");
5
5
  const expressions_1 = require("../expressions");
6
6
  const chunk_1 = require("../chunk");
7
7
  class WhenTranspiler {
8
+ u;
8
9
  constructor(u) {
9
10
  this.u = u;
10
11
  }
@@ -6,6 +6,7 @@ const expressions_1 = require("../expressions");
6
6
  const chunk_1 = require("../chunk");
7
7
  const unique_identifier_1 = require("../unique_identifier");
8
8
  class WhileTranspiler {
9
+ syIndexBackup;
9
10
  constructor(syIndexBackup) {
10
11
  this.syIndexBackup = syIndexBackup;
11
12
  }
@@ -11,8 +11,12 @@ const expressions_1 = require("./expressions");
11
11
  const keywords_1 = require("./keywords");
12
12
  const feature_flags_1 = require("./feature_flags");
13
13
  class Traversal {
14
+ spaghetti;
15
+ file;
16
+ obj;
17
+ reg;
18
+ options;
14
19
  constructor(spaghetti, file, obj, reg, options) {
15
- this.scopeCache = undefined;
16
20
  this.spaghetti = spaghetti;
17
21
  this.file = file;
18
22
  this.obj = obj;
@@ -68,6 +72,7 @@ class Traversal {
68
72
  }
69
73
  return undefined;
70
74
  }
75
+ scopeCache = undefined;
71
76
  findCurrentScopeByToken(token) {
72
77
  const filename = this.file.getFilename();
73
78
  if (this.scopeCache
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UniqueIdentifier = void 0;
4
4
  class UniqueIdentifier {
5
+ static counter = 0;
6
+ static indexBackup = 0;
5
7
  static reset() {
6
8
  this.counter = 0;
7
9
  }
@@ -23,6 +25,4 @@ class UniqueIdentifier {
23
25
  }
24
26
  }
25
27
  exports.UniqueIdentifier = UniqueIdentifier;
26
- UniqueIdentifier.counter = 0;
27
- UniqueIdentifier.indexBackup = 0;
28
28
  //# sourceMappingURL=unique_identifier.js.map
@@ -105,6 +105,7 @@ exports.config = {
105
105
  // todo, make sure nothing is overloaded, eg "lines()", there is a rule for this in abaplint now
106
106
  // hmm this ^ is okay? since lines will be prefixed with "abap.builtin"?
107
107
  class Validation {
108
+ options;
108
109
  constructor(options) {
109
110
  this.options = options;
110
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.10.83",
3
+ "version": "2.11.0",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",