]> Cypherpunks repositories - gostls13.git/commit
go/types: fix internal documentation and strengthen assumptions
authorRobert Griesemer <gri@golang.org>
Wed, 2 May 2018 17:12:38 +0000 (10:12 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 2 May 2018 17:36:17 +0000 (17:36 +0000)
commit0dcdbc772e62bf76b4468c288372b255dd18f4d8
tree5c570a0e74f29250e69f57da68c86adf50ddf937
parent73c7378e4d6e6b86505ac0fb2ce63d2a3a5be329
go/types: fix internal documentation and strengthen assumptions

Imported (incl. dot-imported) objects are always in file scope,
never in package scope. Fix misleading comment.

Package-scope declared objects must have objMap entry by
construction (of that map). Remove unnecessary check and
corresponding misleading comment.

Found while investigating solutions for @23203.

Change-Id: Idadfdd1576681ae56e11daa27bdcee2c73733c41
Reviewed-on: https://go-review.googlesource.com/110916
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/resolver.go