Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed Sep 9, 2024
1 parent b18d1a9 commit 3e8b9fe
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 24 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
},
"homepage": "https://github.com/abaplint/transpiler_poc#readme",
"devDependencies": {
"@abaplint/core": "^2.113.6",
"@abaplint/core": "^2.113.7",
"@types/chai": "^4.3.19",
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.4",
Expand Down
14 changes: 7 additions & 7 deletions packages/cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"glob": "=7.2.0",
"@types/progress": "^2.0.7",
"@types/node": "^22.5.4",
"@abaplint/core": "^2.113.6",
"@abaplint/core": "^2.113.7",
"progress": "^2.0.3",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
Expand Down
14 changes: 7 additions & 7 deletions packages/transpiler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/transpiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"author": "abaplint",
"license": "MIT",
"dependencies": {
"@abaplint/core": "^2.113.6",
"@abaplint/core": "^2.113.7",
"source-map": "^0.7.4"
},
"devDependencies": {
Expand Down
29 changes: 29 additions & 0 deletions test/statements/create_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,33 @@ ASSIGN ref_int8->* TO <value>.
const f = new AsyncFunction("abap", js);
await f(abap);
});

it.skip("CREATE DATA, like and inputs and field symbols", async () => {
const code = `
CLASS lcl DEFINITION.
PUBLIC SECTION.
METHODS set_cell IMPORTING ip_value TYPE simple OPTIONAL.
ENDCLASS.
CLASS lcl IMPLEMENTATION.
METHOD set_cell.
DATA lo_value TYPE REF TO data.
FIELD-SYMBOLS <fs_value> TYPE simple.
CREATE DATA lo_value LIKE ip_value.
ASSIGN lo_value->* TO <fs_value>.
<fs_value> = ip_value.
WRITE / <fs_value>.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
DATA lo TYPE REF TO lcl.
CREATE OBJECT lo.
lo->set_cell( 2 ).`;
const js = await run(code);
const f = new AsyncFunction("abap", js);
await f(abap);
expect(abap.console.get()).to.equal("2");
});
});

0 comments on commit 3e8b9fe

Please sign in to comment.