UNPKG

walt-compiler

Version:

Alternative syntax for WebAssembly text format

97 lines (91 loc) 1.9 kB
# Snapshot report for `src/utils/__tests__/walk-node-spec.js` The actual snapshot is saved in `walk-node-spec.js.snap`. Generated by [AVA](https://ava.li). ## nodes can be patched > Snapshot 1 { Type: 'BinaryExpression', meta: [], params: [ { Type: 'ArraySubscript', meta: [], params: [ { Type: 'Identifier', meta: [ { payload: 0, type: 'global/index', }, ], params: [], range: [ { col: 0, line: 1, }, { col: 1, line: 1, }, ], type: 'i32', value: 'b', }, { Type: 'Constant', meta: [], params: [], range: [ { col: 2, line: 1, }, { col: 3, line: 1, }, ], type: 'i32', value: '1', }, ], range: [ null, { col: 4, line: 1, }, ], type: 'i32', value: '[', }, { Type: 'Constant', meta: [], params: [], range: [ { col: 7, line: 1, }, { col: 8, line: 1, }, ], type: 'i32', value: 42, }, ], range: [ null, { col: 8, line: 1, }, ], type: 'i32', value: '+', }