Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)

Issue 62000045: code review 62000045: go.tools/go/loader: add AllowTypeErrors flag. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by adonovan
Modified:
12 years, 1 month ago
Reviewers:
gri
CC:
gri, golang-codereviews
Visibility:
Public.

Description

go.tools/go/loader: add AllowTypeErrors flag. If this flag is set, (*Config).Load will not return an error even if some packages had type errors. Each individual PackageInfo can be queried for its error state, now exposed as TypeError. In addition, each PackageInfo exposes whether it is "transitively error-free". ssa.Create skips packages without this flag since it is required for SSA construction. + Test.

Patch Set 1 #

Patch Set 2 : diff -r 94daeb52de8a https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 94daeb52de8a https://code.google.com/p/go.tools #

Patch Set 4 : diff -r 94daeb52de8a https://code.google.com/p/go.tools #

Total comments: 8

Patch Set 5 : diff -r ebef51b726fc https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -27 lines) Patch
M go/loader/importer_test.go View 1 2 3 4 2 chunks +81 lines, -0 lines 0 comments Download
M go/loader/loader.go View 1 2 3 4 9 chunks +76 lines, -18 lines 0 comments Download
M go/loader/pkginfo.go View 1 1 chunk +6 lines, -5 lines 0 comments Download
M go/loader/util.go View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M go/ssa/create.go View 1 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 4
adonovan
Hello gri@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
12 years, 1 month ago (2014-02-12 17:44:43 UTC) #1
gri
LGTM https://codereview.appspot.com/62000045/diff/60001/go/loader/importer_test.go File go/loader/importer_test.go (right): https://codereview.appspot.com/62000045/diff/60001/go/loader/importer_test.go#newcode134 go/loader/importer_test.go:134: contents = `package a; import _ "b"; import ...
12 years, 1 month ago (2014-02-18 22:53:49 UTC) #2
adonovan
https://codereview.appspot.com/62000045/diff/60001/go/loader/importer_test.go File go/loader/importer_test.go (right): https://codereview.appspot.com/62000045/diff/60001/go/loader/importer_test.go#newcode134 go/loader/importer_test.go:134: contents = `package a; import _ "b"; import _ ...
12 years, 1 month ago (2014-02-19 00:42:45 UTC) #3
adonovan
12 years, 1 month ago (2014-02-19 00:43:16 UTC) #4
*** Submitted as
https://code.google.com/p/go/source/detail?r=e62965177ee2&repo=tools ***

go.tools/go/loader: add AllowTypeErrors flag.

If this flag is set, (*Config).Load will not return an
error even if some packages had type errors.  Each individual
PackageInfo can be queried for its error state, now exposed as
TypeError.

In addition, each PackageInfo exposes whether it is
"transitively error-free".  ssa.Create skips packages without
this flag since it is required for SSA construction.

+ Test.

LGTM=gri
R=gri
CC=golang-codereviews
https://codereview.appspot.com/62000045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b