@tombi-toml/wasm-lib 1.6.0 → 1.7.0

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/dist/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "ya7010 <ya7010@outlook.com>"
6
6
  ],
7
7
  "description": "Tombi formatter, linter, and language server for WebAssembly",
8
- "version": "1.6.0",
8
+ "version": "1.7.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,12 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- export class Diagnostic {
5
- private constructor();
6
- free(): void;
7
- [Symbol.dispose](): void;
8
- }
9
-
10
4
  export class Position {
11
5
  private constructor();
12
6
  free(): void;
@@ -53,7 +47,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
53
47
 
54
48
  export interface InitOutput {
55
49
  readonly memory: WebAssembly.Memory;
56
- readonly __wbg_diagnostic_free: (a: number, b: number) => void;
57
50
  readonly __wbg_get_position_column: (a: number) => number;
58
51
  readonly __wbg_get_position_line: (a: number) => number;
59
52
  readonly __wbg_get_range_end: (a: number) => number;
@@ -71,8 +64,8 @@ export interface InitOutput {
71
64
  readonly set_workspace_file: (a: number, b: number, c: number, d: number, e: number) => void;
72
65
  readonly set_workspace_files: (a: number, b: number) => void;
73
66
  readonly start: () => void;
74
- readonly __wasm_bindgen_func_elem_9200: (a: number, b: number, c: number, d: number) => void;
75
- readonly __wasm_bindgen_func_elem_9202: (a: number, b: number, c: number, d: number) => void;
67
+ readonly __wasm_bindgen_func_elem_8917: (a: number, b: number, c: number, d: number) => void;
68
+ readonly __wasm_bindgen_func_elem_8919: (a: number, b: number, c: number, d: number) => void;
76
69
  readonly __wbindgen_export: (a: number, b: number) => number;
77
70
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
78
71
  readonly __wbindgen_export3: (a: number) => void;
@@ -1,19 +1,5 @@
1
1
  /* @ts-self-types="./tombi_wasm.d.ts" */
2
2
 
3
- export class Diagnostic {
4
- __destroy_into_raw() {
5
- const ptr = this.__wbg_ptr;
6
- this.__wbg_ptr = 0;
7
- DiagnosticFinalization.unregister(this);
8
- return ptr;
9
- }
10
- free() {
11
- const ptr = this.__destroy_into_raw();
12
- wasm.__wbg_diagnostic_free(ptr, 0);
13
- }
14
- }
15
- if (Symbol.dispose) Diagnostic.prototype[Symbol.dispose] = Diagnostic.prototype.free;
16
-
17
3
  export class Position {
18
4
  static __wrap(ptr) {
19
5
  const obj = Object.create(Position.prototype);
@@ -484,7 +470,7 @@ function __wbg_get_imports() {
484
470
  const a = state0.a;
485
471
  state0.a = 0;
486
472
  try {
487
- return __wasm_bindgen_func_elem_9202(a, state0.b, arg0, arg1);
473
+ return __wasm_bindgen_func_elem_8919(a, state0.b, arg0, arg1);
488
474
  } finally {
489
475
  state0.a = a;
490
476
  }
@@ -609,8 +595,8 @@ function __wbg_get_imports() {
609
595
  return addHeapObject(ret);
610
596
  },
611
597
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
612
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2812, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
613
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9200);
598
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2745, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
599
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8917);
614
600
  return addHeapObject(ret);
615
601
  },
616
602
  __wbindgen_generic_0000000000000002: function(arg0) {
@@ -647,14 +633,14 @@ function __wbg_get_imports() {
647
633
  };
648
634
  }
649
635
 
650
- function __wasm_bindgen_func_elem_9202(arg0, arg1, arg2, arg3) {
651
- wasm.__wasm_bindgen_func_elem_9202(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
636
+ function __wasm_bindgen_func_elem_8919(arg0, arg1, arg2, arg3) {
637
+ wasm.__wasm_bindgen_func_elem_8919(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
652
638
  }
653
639
 
654
- function __wasm_bindgen_func_elem_9200(arg0, arg1, arg2) {
640
+ function __wasm_bindgen_func_elem_8917(arg0, arg1, arg2) {
655
641
  try {
656
642
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
657
- wasm.__wasm_bindgen_func_elem_9200(retptr, arg0, arg1, addHeapObject(arg2));
643
+ wasm.__wasm_bindgen_func_elem_8917(retptr, arg0, arg1, addHeapObject(arg2));
658
644
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
659
645
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
660
646
  if (r1) {
@@ -665,9 +651,6 @@ function __wasm_bindgen_func_elem_9200(arg0, arg1, arg2) {
665
651
  }
666
652
  }
667
653
 
668
- const DiagnosticFinalization = (typeof FinalizationRegistry === 'undefined')
669
- ? { register: () => {}, unregister: () => {} }
670
- : new FinalizationRegistry(ptr => wasm.__wbg_diagnostic_free(ptr, 1));
671
654
  const PositionFinalization = (typeof FinalizationRegistry === 'undefined')
672
655
  ? { register: () => {}, unregister: () => {} }
673
656
  : new FinalizationRegistry(ptr => wasm.__wbg_position_free(ptr, 1));
Binary file
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_diagnostic_free: (a: number, b: number) => void;
5
4
  export const __wbg_get_position_column: (a: number) => number;
6
5
  export const __wbg_get_position_line: (a: number) => number;
7
6
  export const __wbg_get_range_end: (a: number) => number;
@@ -19,8 +18,8 @@ export const set_workspace_entries: (a: number, b: number) => void;
19
18
  export const set_workspace_file: (a: number, b: number, c: number, d: number, e: number) => void;
20
19
  export const set_workspace_files: (a: number, b: number) => void;
21
20
  export const start: () => void;
22
- export const __wasm_bindgen_func_elem_9200: (a: number, b: number, c: number, d: number) => void;
23
- export const __wasm_bindgen_func_elem_9202: (a: number, b: number, c: number, d: number) => void;
21
+ export const __wasm_bindgen_func_elem_8917: (a: number, b: number, c: number, d: number) => void;
22
+ export const __wasm_bindgen_func_elem_8919: (a: number, b: number, c: number, d: number) => void;
24
23
  export const __wbindgen_export: (a: number, b: number) => number;
25
24
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
26
25
  export const __wbindgen_export3: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tombi-toml/wasm-lib",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Tombi formatter and linter for WebAssembly",
5
5
  "repository": {
6
6
  "type": "git",