diff options
author | Robert Griesemer <gri@golang.org> | 2008-08-07 19:32:22 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2008-08-07 19:32:22 -0700 |
commit | f1f807fe513b0406aebe76912d7af6dbc1b0b381 (patch) | |
tree | 9de60a61d9ea36282679d753874712e01d65b2c6 /usr/gri/gosrc/parser.go | |
parent | 9c787bb397af9a03a65584cad93729f317e9cc74 (diff) | |
download | golang-f1f807fe513b0406aebe76912d7af6dbc1b0b381.tar.gz |
first primitive cut at resolving missing imports automatically:
if an import file is missing, the corresponding source
is compiled automatically, if found
R=r
OCL=13990
CL=13990
Diffstat (limited to 'usr/gri/gosrc/parser.go')
-rw-r--r-- | usr/gri/gosrc/parser.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/gri/gosrc/parser.go b/usr/gri/gosrc/parser.go index 2e2346e31..61984ef8b 100644 --- a/usr/gri/gosrc/parser.go +++ b/usr/gri/gosrc/parser.go @@ -17,7 +17,7 @@ import AST "ast" export type Parser struct { comp *Globals.Compilation; semantic_checks bool; - verbose, indent int; + verbose, indent uint; S *Scanner.Scanner; C *chan *Scanner.Token; @@ -78,8 +78,8 @@ func (P *Parser) Next() { func (P *Parser) Open(comp *Globals.Compilation, S *Scanner.Scanner, C *chan *Scanner.Token) { P.comp = comp; - P.semantic_checks = comp.flags.semantic_checks; - P.verbose = comp.flags.verbose; + P.semantic_checks = comp.flags.ast; + P.verbose = comp.flags.verbosity; P.indent = 0; P.S = S; P.C = C; |