Skip to content

Commit 69816ac

Browse files
committed
Merge v1.4.x into master (v1.5.x)
1 parent 9ad5372 commit 69816ac

9 files changed

+29
-25
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project from version 1.2.0 upwards are documented in this file.
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

5+
## [1.5.8] – 2024-03-27
6+
7+
Included all the changes in the 1.4.x branch (versions 1.4.7 and 1.4.8).
8+
59
## [1.5.7] – 2024-01-15
610

711
### Added

jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const config = {
1919
// Note: we have several deprecated functions that reduce coverage
2020
global: {
2121
statements: 88,
22-
branches: 80,
23-
functions: 77,
22+
branches: 81,
23+
functions: 76,
2424
lines: 88,
2525
},
2626
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "AST building blocks for TypeScript/JavaScript, part of the *lasu family, with optional integrations with ANTLR4 and Ecore.",
44
"author": "Strumenta s.r.l.",
55
"publisher": "strumenta",
6-
"version": "1.5.7",
6+
"version": "1.5.8",
77
"license": "Apache-2.0",
88
"keywords": [
99
"antlr",

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* may require additional dependencies.
44
* @module core
55
*/
6-
export * from './model/position';
7-
export * from './model/model';
8-
export * from './model/errors';
6+
export * from "./model/position";
7+
export * from "./model/model";
8+
export * from "./model/errors";
99
export * from "./model/naming";
1010
export * from "./model/processing";
1111
export * from "./traversing/structurally";

src/interop/ecore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Node.prototype[TO_EOBJECT_SYMBOL] = function(): ECore.EObject {
388388
}
389389

390390
Position.prototype[TO_EOBJECT_SYMBOL] = function(): ECore.EObject {
391-
const pos = THE_POSITION_ECLASS.create();
391+
const pos = THE_POSITION_ECLASS.create({});
392392
pos.set("start", THE_POINT_ECLASS.create({
393393
line: this.start.line, column: this.start.column
394394
}));

src/interop/starlasu-v2-metamodel.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ECore from "ecore/dist/ecore";
1+
import ECore from "ecore";
22
import {IssueSeverity, IssueType} from "../validation";
33
import {addLiteral, getEPackage} from "./ecore-basic";
44

@@ -67,16 +67,16 @@ THE_ORIGIN_ECLASS.get("eStructuralFeatures").add(ECore.EReference.create({
6767
eType: THE_POSITION_ECLASS,
6868
containment: true
6969
}));
70-
export const THE_SIMPLE_ORIGIN_ECLASS = Ecore.EClass.create({
70+
export const THE_SIMPLE_ORIGIN_ECLASS = ECore.EClass.create({
7171
name: "SimpleOrigin"
7272
});
7373
THE_SIMPLE_ORIGIN_ECLASS.get("eSuperTypes").add(THE_ORIGIN_ECLASS);
74-
THE_SIMPLE_ORIGIN_ECLASS.get("eStructuralFeatures").add(Ecore.EAttribute.create({
74+
THE_SIMPLE_ORIGIN_ECLASS.get("eStructuralFeatures").add(ECore.EAttribute.create({
7575
name: "sourceText",
76-
eType: Ecore.EString,
76+
eType: ECore.EString,
7777
lowerBound: 0
7878
}));
79-
THE_SIMPLE_ORIGIN_ECLASS.get("eStructuralFeatures").add(Ecore.EReference.create({
79+
THE_SIMPLE_ORIGIN_ECLASS.get("eStructuralFeatures").add(ECore.EReference.create({
8080
name: "position",
8181
eType: THE_POSITION_ECLASS,
8282
lowerBound: 0,

tests/interop/workspace-transpilation-trace.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ describe('Workspace Transpilation traces', function() {
119119
});
120120
it("Can load workspace transpilation trace produced by Kolasu with SimpleOrigin instances",
121121
function () {
122-
this.timeout(0);
123-
Ecore.EPackage.Registry.register(THE_AST_EPACKAGE);
124-
Ecore.EPackage.Registry.register(TRANSPILATION_EPACKAGE);
122+
ECore.EPackage.Registry.register(THE_AST_EPACKAGE);
123+
ECore.EPackage.Registry.register(TRANSPILATION_EPACKAGE);
125124
const loader = new TranspilationTraceLoader({
126125
name: "rpg2java",
127126
uri: "file://tests/data/playground/rpg/rpg2java-metamodels.json",

tests/mapping.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ describe('ParseTreeToASTTransformer', function () {
106106
const code = "set foo = \ndisplay @@@";
107107
const lexer = new SimpleLangLexer(CharStreams.fromString(code));
108108
const parser = new SimpleLangParser(new CommonTokenStream(lexer));
109+
parser.removeErrorListeners();
109110
const pt = parser.compilationUnit();
110111
expect(parser.numberOfSyntaxErrors).to.equal(2);
111112

yarn.lock

+10-10
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@
737737
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.11.tgz#e95050bf79a932cb7305dd130254ccdf9bde671c"
738738
integrity sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==
739739

740-
"@types/ecore@^0.12.3":
740+
"@types/ecore@^0.12.5":
741741
version "0.12.5"
742742
resolved "https://registry.yarnpkg.com/@types/ecore/-/ecore-0.12.5.tgz#ca8b858dde9b6618d11a02fd2c6a90de52b56be6"
743743
integrity sha512-5jXAxP+QJzWct7P9w/5OFful/rQ/sqA6JuceVGgcubIIDd9HfwAujqPsIwxGZZj9N+BHf3kJmzCikK5OKF07UA==
@@ -2767,10 +2767,10 @@ shebang-regex@^3.0.0:
27672767
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
27682768
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
27692769

2770-
shiki@^0.14.1:
2771-
version "0.14.5"
2772-
resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.14.5.tgz#375dd214e57eccb04f0daf35a32aa615861deb93"
2773-
integrity sha512-1gCAYOcmCFONmErGTrS1fjzJLA7MGZmKzrBNX7apqSwhyITJg2O102uFzXUeBxNnEkDA9vHIKLyeKq0V083vIw==
2770+
shiki@^0.14.7:
2771+
version "0.14.7"
2772+
resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.14.7.tgz#c3c9e1853e9737845f1d2ef81b31bcfb07056d4e"
2773+
integrity sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==
27742774
dependencies:
27752775
ansi-sequence-parser "^1.1.0"
27762776
jsonc-parser "^3.2.0"
@@ -2989,15 +2989,15 @@ type-fest@^0.21.3:
29892989
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37"
29902990
integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==
29912991

2992-
typedoc@^0.25.4:
2993-
version "0.25.4"
2994-
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.4.tgz#5c2c0677881f504e41985f29d9aef0dbdb6f1e6f"
2995-
integrity sha512-Du9ImmpBCw54bX275yJrxPVnjdIyJO/84co0/L9mwe0R3G4FSR6rQ09AlXVRvZEGMUg09+z/usc8mgygQ1aidA==
2992+
typedoc@^0.25.7:
2993+
version "0.25.9"
2994+
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.9.tgz#0fb6608feec994eedc1e3276154fa8a486218ed2"
2995+
integrity sha512-jVoGmfNw848iW0L313+jqHbsknepwDV6F9nzk1H30oWhKXkw65uaENgR6QtTw9a5KqRWEb6nwNd54KxffBJyWw==
29962996
dependencies:
29972997
lunr "^2.3.9"
29982998
marked "^4.3.0"
29992999
minimatch "^9.0.3"
3000-
shiki "^0.14.1"
3000+
shiki "^0.14.7"
30013001

30023002
typescript@^5.3.2:
30033003
version "5.3.3"

0 commit comments

Comments
 (0)