@abaplint/transpiler 2.7.133 → 2.7.135

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.
@@ -20,8 +20,13 @@ class ReplaceTranspiler {
20
20
  extra.push("of: " + new expressions_1.SourceTranspiler().transpile(o, traversal).getCode());
21
21
  }
22
22
  const length = node.findExpressionAfterToken("LENGTH");
23
- if (length && length.get() instanceof abaplint.Expressions.Source) {
24
- extra.push("sectionLength: " + new expressions_1.SourceTranspiler().transpile(length, traversal).getCode());
23
+ if (length) {
24
+ if (length.get() instanceof abaplint.Expressions.Source) {
25
+ extra.push("sectionLength: " + new expressions_1.SourceTranspiler().transpile(length, traversal).getCode());
26
+ }
27
+ else if (length.get() instanceof abaplint.Expressions.Target) {
28
+ extra.push("replacementLength: " + new expressions_1.TargetTranspiler().transpile(length, traversal).getCode());
29
+ }
25
30
  }
26
31
  const offset = node.findExpressionAfterToken("OFFSET");
27
32
  if (offset && offset.get() instanceof abaplint.Expressions.Source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.7.133",
3
+ "version": "2.7.135",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,12 +29,12 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.103.1",
32
+ "@abaplint/core": "^2.103.6",
33
33
  "source-map": "^0.7.4"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/chai": "^4.3.9",
37
- "@types/mocha": "^10.0.3",
36
+ "@types/chai": "^4.3.10",
37
+ "@types/mocha": "^10.0.4",
38
38
  "chai": "^4.3.10",
39
39
  "mocha": "^10.2.0",
40
40
  "source-map-support": "^0.5.21",