mirror of
https://github.com/golang/go
synced 2024-11-26 00:57:56 -07:00
- adjustments to match slightly changed scanner interface
- more comments on parser, various cleanups TBR=r OCL=26813 CL=26813
This commit is contained in:
parent
3f9da82904
commit
34050ca8de
@ -101,7 +101,7 @@ func Compile(src_file string, flags *Flags) (*ast.Package, ErrorList) {
|
|||||||
if flags.Verbose {
|
if flags.Verbose {
|
||||||
pflags |= parser.Trace;
|
pflags |= parser.Trace;
|
||||||
}
|
}
|
||||||
prog := parser.Parse(&scanner, &err, parser.ParseEntirePackage, pflags);
|
prog, nerrs := parser.Parse(&scanner, &err, parser.ParseEntirePackage, pflags);
|
||||||
|
|
||||||
if err.errors.Len() == 0 {
|
if err.errors.Len() == 0 {
|
||||||
TypeChecker.CheckProgram(&err, prog);
|
TypeChecker.CheckProgram(&err, prog);
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user