mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: bootstrap the new struct init check
This commit is contained in:
parent
2b058edc98
commit
ac8a7ac901
@ -156,10 +156,12 @@ fn (mut p Parser) comp_call() ast.ComptimeCall {
|
|||||||
println('\n\n')
|
println('\n\n')
|
||||||
}
|
}
|
||||||
mut file := parse_comptime(v_code, p.table, p.pref, scope, p.global_scope)
|
mut file := parse_comptime(v_code, p.table, p.pref, scope, p.global_scope)
|
||||||
|
/*
|
||||||
file = ast.File{
|
file = ast.File{
|
||||||
...file
|
...file
|
||||||
path: tmpl_path
|
path: tmpl_path
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// copy vars from current fn scope into vweb_tmpl scope
|
// copy vars from current fn scope into vweb_tmpl scope
|
||||||
for stmt in file.stmts {
|
for stmt in file.stmts {
|
||||||
if stmt is ast.FnDecl {
|
if stmt is ast.FnDecl {
|
||||||
|
Loading…
Reference in New Issue
Block a user