1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gen,checker: implement g.trace/2 and c.trace/2, similar to p.trace/2

This commit is contained in:
Delyan Angelov
2021-01-15 20:28:18 +02:00
parent 263fb7d7a8
commit c4c4b9c7b1
4 changed files with 15 additions and 1 deletions

View File

@@ -469,7 +469,8 @@ pub:
// That array is then passed to V's checker.
pub struct File {
pub:
path string // path of the source file
path string // absolute path of the source file - '/projects/v/file.v'
path_base string // file name - 'file.v' (useful for tracing)
mod Module // the module of the source file (from `module xyz` at the top)
global_scope &Scope
pub mut: