mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: a massive merge of ast and table modules
This commit is contained in:
parent
043f6420f7
commit
7385f8e56b
88 changed files with 1839 additions and 1792 deletions
|
@ -12,7 +12,6 @@ import v.pref
|
|||
import v.fmt
|
||||
import v.util
|
||||
import v.parser
|
||||
import v.table
|
||||
import vhelp
|
||||
|
||||
struct FormatOptions {
|
||||
|
@ -156,7 +155,7 @@ fn (foptions &FormatOptions) format_file(file string) {
|
|||
if foptions.is_verbose {
|
||||
eprintln('vfmt2 running fmt.fmt over file: $file')
|
||||
}
|
||||
table := table.new_table()
|
||||
table := ast.new_table()
|
||||
// checker := checker.new_checker(table, prefs)
|
||||
file_ast := parser.parse_file(file, table, .parse_comments, prefs, &ast.Scope{
|
||||
parent: 0
|
||||
|
@ -180,7 +179,7 @@ fn (foptions &FormatOptions) format_pipe() {
|
|||
eprintln('vfmt2 running fmt.fmt over stdin')
|
||||
}
|
||||
input_text := os.get_raw_lines_joined()
|
||||
table := table.new_table()
|
||||
table := ast.new_table()
|
||||
// checker := checker.new_checker(table, prefs)
|
||||
file_ast := parser.parse_text(input_text, '', table, .parse_comments, prefs, &ast.Scope{
|
||||
parent: 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue