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/checker/checker.v
+24-25Lines changed: 24 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -54,13 +54,13 @@ pub mut:
54
54
nr_errors int
55
55
nr_warnings int
56
56
nr_notices int
57
-
should_abort bool// when too many errors/warnings/notices are accumulated, .should_abort becomes true. It is checked in statement/expression loops, so the checker can return early, instead of wasting time.
58
57
errors []errors.Error
59
58
warnings []errors.Warning
60
59
notices []errors.Notice
61
60
error_lines []int// to avoid printing multiple errors for the same line
62
61
expected_type ast.Type
63
62
expected_or_type ast.Type // fn() or { 'this type' } eg. string. expected or block type
63
+
mod string// current module name
64
64
const_decl string
65
65
const_deps []string
66
66
const_names []string
@@ -69,50 +69,49 @@ pub mut:
69
69
rlocked_names []string// vars that are currently read-locked
70
70
in_for_count int// if checker is currently in a for loop
71
71
// checked_ident string // to avoid infinite checker loops
72
+
should_abort bool// when too many errors/warnings/notices are accumulated, .should_abort becomes true. It is checked in statement/expression loops, so the checker can return early, instead of wasting time.
72
73
returns bool
73
74
scope_returns bool
74
-
mod string// current module name
75
-
is_builtin_mod bool// true inside the 'builtin', 'os' or 'strconv' modules; TODO: remove the need for special casing this
76
-
is_generated bool// true for `[generated] module xyz` .v files
0 commit comments