Skip to content

Commit 6e6d0ed

Browse files
Merge remote-tracking branch 'upstream/master' into codex/fix-26759-implicit-cast
# Conflicts: # vlib/v/ast/attr.v # vlib/v/fmt/attrs.v # vlib/v/fmt/tests/attribute_call_syntax_keep.vv # vlib/v/parser/attribute.v
2 parents 305e4a2 + 114fda5 commit 6e6d0ed

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

vlib/v2/parser/parser.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,16 @@ pub fn (mut p Parser) parse_file(filename string, mut file_set token.FileSet) as
6868
if filename == '' {
6969
panic('parser.parse_file empty filename')
7070
}
71+
mut src := ''
72+
mut sw := time.StopWatch{}
7173
if !p.pref.verbose {
7274
unsafe {
7375
goto start_no_time
7476
}
7577
}
76-
mut sw := time.new_stopwatch()
78+
sw = time.new_stopwatch()
7779
start_no_time:
78-
src := os.read_file(filename) or { p.error('error reading `' + filename + '`') }
80+
src = os.read_file(filename) or { p.error('error reading `' + filename + '`') }
7981
p.init(filename, src, mut file_set)
8082
// start
8183
p.next()

0 commit comments

Comments
 (0)