parser: comptime: update tmpl_path

pull/8159/head
Alexander Medvednikov 2021-01-17 06:42:21 +01:00
parent ac8a7ac901
commit a008c8254c
1 changed files with 0 additions and 2 deletions

View File

@ -156,12 +156,10 @@ 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 {