Skip to content

Commit 424c453

Browse files
committed
fix warning when compiling cmd/tools/vast/vast.v, add description of -s to ast.txt too
1 parent 94a97f6 commit 424c453

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎cmd/tools/vast/vast.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn (ctx Context) skip_empty(child &Node) bool {
7979
return true
8080
}
8181
if slen > 7 {
82-
s := child.valuestring.vstring_with_len(slen)
82+
s := unsafe { child.valuestring.vstring_with_len(slen) }
8383
if s.starts_with('enum:0(') {
8484
return true
8585
}

‎vlib/v/help/other/ast.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Options:
2121
File, *AND* generate a .c file too on any change
2222
-t, --terse terse output, only with tree node names
2323
(AST structure), no details
24+
-s, --skip-defaults skip properties that have default values like [], {}, false, 0, ""
2425
--hide <multiple strings> Hide the specified fields. You can give several, by
2526
separating them with `,`
2627
-h, --help Display this help and exit

0 commit comments

Comments
 (0)