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

Unified Diff: go/types/lookup.go

Issue 66730052: go.tools/go/types: Enable enumeration of the fields of a type.
Patch Set: diff -r c7ed95187f53 https://code.google.com/p/go.tools Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/types/call.go ('k') | go/types/selectionset.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/types/lookup.go
===================================================================
--- a/go/types/lookup.go
+++ b/go/types/lookup.go
@@ -73,7 +73,7 @@
func lookupFieldOrMethod(T Type, pkg *Package, name string) (obj Object, index []int, indirect bool) {
// WARNING: The code in this function is extremely subtle - do not modify casually!
- // This function and NewMethodSet should be kept in sync.
+ // This function and NewSelectionSet should be kept in sync.
if name == "_" {
return // blank fields/methods are never found
« no previous file with comments | « go/types/call.go ('k') | go/types/selectionset.go » ('j') | no next file with comments »

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