]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: use type information in isLocalType
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 21 Feb 2018 16:33:31 +0000 (16:33 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 25 Apr 2018 14:45:50 +0000 (14:45 +0000)
commit85146fabcdc9609d4ec9ce666b1015dc83fdfcee
tree4751fba6c6cf2cc80ad6ecaf4054a93d61c9a420
parent74f9432beadb7179169e08b6c910dd533c62b7c8
cmd/vet: use type information in isLocalType

Now that vet always has type information, there's no reason to use
string handling on type names to gather information about them, such as
whether or not they are a local type.

The semantics remain the same - the only difference should be that the
implementation is less fragile and simpler.

Change-Id: I71386b4196922e4c9f2653d90abc382efbf01b3c
Reviewed-on: https://go-review.googlesource.com/95915
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/vet/composite.go