@yuku-parser/wasm 0.5.31 → 0.5.35
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.
- package/README.md +1 -3
- package/decode.js +807 -184
- package/index.d.ts +69 -1941
- package/index.js +2 -0
- package/package.json +5 -1
- package/walk.js +191 -0
- package/yuku-parser.wasm +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ const { program, comments, diagnostics } = parse("const x: number = 1", {
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
`parse(source, options?)` returns `{ program, comments, diagnostics, lineStarts,
|
|
24
|
-
locOf,
|
|
24
|
+
locOf, scan }`. Options:
|
|
25
25
|
|
|
26
26
|
| Option | Default | Description |
|
|
27
27
|
| ---------------------------- | ---------- | ----------------------------------------- |
|
|
@@ -31,5 +31,3 @@ locOf, locNear }`. Options:
|
|
|
31
31
|
| `allowReturnOutsideFunction` | `false` | Allow top-level `return` |
|
|
32
32
|
| `semanticErrors` | `false` | Also run semantic analysis |
|
|
33
33
|
| `attachComments` | `false` | Attach comments to their host node |
|
|
34
|
-
|
|
35
|
-
`langFromPath(path)` and `sourceTypeFromPath(path)` are also exported.
|