We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
this
1 parent ce0a2a8 commit 67ec6cdCopy full SHA for 67ec6cd
packages/wasm/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@ohm-js/wasm",
3
- "version": "0.6.12",
+ "version": "0.6.13",
4
"description": "Compile Ohm.js grammars to WebAsssembly",
5
"main": "dist/index.js",
6
"exports": {
packages/wasm/src/createToAst.ts
@@ -5,7 +5,6 @@ import type {
MatchResult,
NonterminalNode,
7
TerminalNode,
8
- ListNode,
9
} from './miniohm.ts';
10
11
export type AstNodeTemplate<R> = {
@@ -22,7 +21,7 @@ export type AstMapping<R> = Record<
22
21
string,
23
| AstNodeTemplate<R>
24
| number // forward to nth child
25
- | ((...children: CstNodeChildren) => R) // semantic action-style
+ | ((this: CstNode, ...children: CstNodeChildren) => R) // semantic action-style
26
>;
27
28
function childAt(
0 commit comments