[gnome-code-assistance/wip/arch] [backends/go] Work around AST bug
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance/wip/arch] [backends/go] Work around AST bug
- Date: Mon, 11 Nov 2013 13:57:49 +0000 (UTC)
commit f4aca6e6a96795f94a5206772d1da6c21be1b90d
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Nov 11 14:56:27 2013 +0100
[backends/go] Work around AST bug
.../p/go.tools/go/types/resolver.go | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/go/deps/src/code.google.com/p/go.tools/go/types/resolver.go
b/backends/go/deps/src/code.google.com/p/go.tools/go/types/resolver.go
index a260bd0..5ffbb61 100644
--- a/backends/go/deps/src/code.google.com/p/go.tools/go/types/resolver.go
+++ b/backends/go/deps/src/code.google.com/p/go.tools/go/types/resolver.go
@@ -162,6 +162,9 @@ func (check *checker) resolveFiles(files []*ast.File) {
case *ast.ImportSpec:
// import package
var imp *Package
+ if s.Path == nil {
+ continue
+ }
path, _ := strconv.Unquote(s.Path.Value)
if path == "C" && check.conf.FakeImportC {
// TODO(gri) shouldn't create a new one each time
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]