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

compiler: @VMODULE

This commit is contained in:
Delyan Angelov
2020-02-29 15:23:45 +02:00
committed by GitHub
parent f67fca826e
commit f9d5c0110f
11 changed files with 223 additions and 27 deletions

View File

@ -176,10 +176,11 @@ fn (v mut V) new_parser_from_file(path string) Parser {
}
}
mut p := v.new_parser(new_scanner_file(path))
path_dir := os.realpath(filepath.dir(path))
p = {
p |
file_path:path,
file_path_dir:filepath.dir(path),
file_path_dir: path_dir,
file_name:path.all_after(filepath.separator),
file_platform:path_platform,
file_pcguard:path_pcguard,