Rename ast.Node methods from Foo to AsFoo

This commit is contained in:
Nigel Tao committed 2018-07-01 20:41:21 +10:00
1 parent 12773ce74a
commit ccb78f5db7
21 files changed
+461 -458

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ func tssVisit(dst []*Struct, n *Struct, byQID map[t.QID]*Struct, marks map[*Stru
marks[n] = temporary
for _, f := range n.Fields() {
x := f.Field().XType().Innermost()
x := f.AsField().XType().Innermost()
if o := byQID[x.QID()]; o != nil {
var ok bool
dst, ok = tssVisit(dst, o, byQID, marks)