-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasmprinter] support custom indent text (#1963)
* [wasmprinter] support custom indent text * [wasm-tools] support config `--indent-text` for `print` command * [wasm-tools] support config `--indent-text` for `print` command * [wasm-tools] support config `--indent-text` for `print` command * [wasmprinter] Add custom-indent test cases * [wasmprinter] Add custom-indent test cases * [wasm-tools] support config `--indent` for `print` command * [wasm-tools] test the precedence of ``--indent-text` and ``--indent` * [wasm-tools] remove indent text test
- Loading branch information
Showing
5 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
;; RUN: print --indent 4 % | ||
|
||
(;@0 ;) (module | ||
(;@b ;) (type (;0;) (func (param i32) (result i32))) | ||
(;@1f ;) (func (;0;) (type 0) (param i32) (result i32) | ||
(;@20 ;) local.get 0 | ||
) | ||
(;@17 ;) (export "f" (func 0)) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(module | ||
(type (;0;) (func (param i32) (result i32))) | ||
(export "f" (func 0)) | ||
(func (;0;) (type 0) (param i32) (result i32) | ||
local.get 0 | ||
) | ||
) |