Skip to content

Commit 371a857

Browse files
committed
Integration of Lionweb nodes into TraceNodes (work in progress)
1 parent cfdb15f commit 371a857

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
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.6.4] – 2024-03-05
5+
## [1.6.4] – 2024-03-06
6+
7+
### Added
8+
- More homogeneous node APIs
69

710
### Changed
8-
- Decoupled trace nodes from ECore so it may also possible to use them with Lionweb.
11+
- Decoupled trace nodes from ECore, so they may be used with Lionweb.
12+
- Stricter checking of attributes and children
913

1014
## [1.6.3] – 2024-02-29
1115

jest.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const config = {
1818
coverageThreshold: {
1919
// Note: we have several deprecated functions that reduce coverage
2020
global: {
21-
statements: 90,
22-
branches: 84,
21+
statements: 89,
22+
branches: 83,
2323
functions: 80,
24-
lines: 90,
24+
lines: 89,
2525
},
2626
},
2727
moduleDirectories: ["node_modules"],

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.6.3",
6+
"version": "1.6.4",
77
"license": "Apache-2.0",
88
"keywords": [
99
"antlr",

src/interop/lionweb.ts

-10
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ export class TylasuInstantiationFacade implements InstantiationFacade<TylasuNode
9191
node.node.setAttribute(feature.name, value);
9292
}
9393
}
94-
95-
protected setupNode(node: Node, parent: Node | undefined, propertySettings: {
96-
[p: string]: unknown
97-
}): Node {
98-
Object.keys(propertySettings).forEach(k => {
99-
node[k] = propertySettings[k]; //TODO protect parent, origin etc.
100-
})
101-
return node.withParent(parent);
102-
}
103-
10494
}
10595

10696
export const STARLASU_LANGUAGE_MAPPING = new LanguageMapping();

0 commit comments

Comments
 (0)