@noir-lang/noir_wasm 1.0.0-beta.4-17958e3.nightly → 1.0.0-beta.4-097b116.nightly

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.
@@ -1,9 +1,9 @@
1
+ export function init_log_level(level: string): void;
2
+ export function build_info(): any;
1
3
  export function compile_program(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
2
4
  export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
3
5
  export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
4
6
  export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
5
- export function init_log_level(level: string): void;
6
- export function build_info(): any;
7
7
  export function __wbg_constructor_0ff2131ceea4cfb0(arg0: any): Error;
8
8
  export function __wbg_constructor_239bf9e0fa000b32(): Object;
9
9
  export function __wbg_constructor_b023a49b9a95d90c(): Object;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * @param {string} level
3
+ */
4
+ export function init_log_level(level: string): void;
5
+ /**
6
+ * @returns {any}
7
+ */
8
+ export function build_info(): any;
1
9
  /**
2
10
  * @param {string} entry_point
3
11
  * @param {DependencyGraph | null | undefined} dependency_graph
@@ -30,14 +38,6 @@ export function compile_program_(entry_point: string, dependency_graph: Dependen
30
38
  * @returns {ContractCompileResult}
31
39
  */
32
40
  export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
33
- /**
34
- * @param {string} level
35
- */
36
- export function init_log_level(level: string): void;
37
- /**
38
- * @returns {any}
39
- */
40
- export function build_info(): any;
41
41
  /**
42
42
  * This is a wrapper class that is wasm-bindgen compatible
43
43
  * We do not use js_name and rename it like CrateId because
@@ -122,11 +122,16 @@ export interface SourceCodeLocation {
122
122
  }
123
123
  /**
124
124
  * The location of an opcode in the bytecode.
125
- * It's a string of the form `{acirIndex}` or `{acirIndex}:{brilligIndex}`.
126
125
  */
127
- export type OpcodeLocation = string;
126
+ export type OpcodeLocation = number;
128
127
  export type BrilligFunctionId = number;
129
128
  export type OpcodeToLocationsMap = Record<OpcodeLocation, SourceCodeLocation[]>;
129
+ export interface LocationNodeDebugInfo {
130
+ value: SourceCodeLocation;
131
+ }
132
+ export interface LocationTree {
133
+ locations: Array<LocationNodeDebugInfo>;
134
+ }
130
135
  /**
131
136
  * The debug information for a given function.
132
137
  */
@@ -134,7 +139,7 @@ export interface DebugInfo {
134
139
  /**
135
140
  * A map of the opcode location to the source code location.
136
141
  */
137
- locations: OpcodeToLocationsMap;
142
+ location_tree: LocationTree;
138
143
  /**
139
144
  * For each Brillig function, we have a map of the opcode location to the source code location.
140
145
  */