You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vlib/v/ast/ast.v
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -600,6 +600,7 @@ pub:
600
600
is_unsafe bool// true, when @[unsafe] is used on a fn
601
601
is_must_use bool// true, when @[must_use] is used on a fn. Calls to such functions, that ignore the return value, will cause warnings.
602
602
is_markused bool// true, when an explicit `@[markused]` tag was put on a fn; `-skip-unused` will not remove that fn
603
+
is_ignore_overflow bool// true, when an explicit `@[ignore_overflow]` tag was put on a fn. `-check-overflow` will not generate checks for arithmetic done in that fn.
603
604
is_file_translated bool// true, when the file it resides in is `@[translated]`
604
605
is_closure bool// true, for actual closures like `fn [inherited] () {}` . It is false for normal anonymous functions, and for named functions/methods too.
605
606
receiver StructField // TODO: this is not a struct field
@@ -621,7 +622,7 @@ pub:
621
622
body_pos token.Pos // function bodys position
622
623
file string
623
624
generic_names []string
624
-
is_direct_arr bool//direct array access
625
+
is_direct_arr bool//@[direct_array_access] was used; a[i] inside such a fn, will *not* do array index bounds checks.
625
626
attrs []Attr
626
627
ctdefine_idx int=-1// the index in fn.attrs of `[if xyz]`, when such attribute exists
0 commit comments