walt-compiler
Version:
Alternative syntax for WebAssembly text format
81 lines (66 loc) • 1.43 kB
Markdown
# Snapshot report for `src/parser/__tests__/fragment-spec.js`
The actual snapshot is saved in `fragment-spec.js.snap`.
Generated by [AVA](https://ava.li).
## mixed replacements
> Snapshot 1
`(local x i32␊
(??.add␊
(??.add␊
(call __fcall␊
(get_local __fcall)␊
(i32.const 2)␊
(i32.const 4)␊
(??.add␊
(i32.const 5)␊
(i32.const 5)␊
)␊
)␊
(i32.const 42)␊
)␊
(??.add␊
(get_local x)␊
(get_local y)␊
)␊
)␊
)␊
`
## multiple node replacements
> Snapshot 1
`(local x i32␊
(??.add␊
(call __fcall␊
(get_local __fcall)␊
(i32.const 2)␊
(i32.const 4)␊
(??.add␊
(i32.const 5)␊
(i32.const 5)␊
)␊
)␊
(??.add␊
(get_local x)␊
(get_local y)␊
)␊
)␊
)␊
`
## node replacement
> Snapshot 1
`(local x i32␊
(call __fcall␊
(get_local __fcall)␊
(i32.const 2)␊
(i32.const 4)␊
(??.add␊
(i32.const 5)␊
(i32.const 5)␊
)␊
)␊
)␊
`
## simple string replacement
> Snapshot 1
`(local x i32␊
(i32.const 0)␊
)␊
`