File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func (v *visitor) Exit(ref *Node) {
92
92
case * IndexNode :
93
93
b := v .pop ()
94
94
a := v .pop ()
95
- v .push ("[...]" )
95
+ v .push (fmt . Sprintf ( "%T" , node ) )
96
96
v .link (a )
97
97
v .link (b )
98
98
@@ -123,14 +123,14 @@ func (v *visitor) Exit(ref *Node) {
123
123
for range node .Arguments {
124
124
args = append (args , v .pop ())
125
125
}
126
- v .push (fmt .Sprintf ("%v(...) " , node .Name ))
126
+ v .push (fmt .Sprintf ("%v" , node .Name ))
127
127
for i := len (args ) - 1 ; i >= 0 ; i -- {
128
128
v .link (args [i ])
129
129
}
130
130
131
131
case * ClosureNode :
132
132
a := v .pop ()
133
- v .push ("func {...}" )
133
+ v .push (fmt . Sprintf ( "%T" , node ) )
134
134
v .link (a )
135
135
136
136
case * PointerNode :
@@ -140,7 +140,7 @@ func (v *visitor) Exit(ref *Node) {
140
140
e2 := v .pop ()
141
141
e1 := v .pop ()
142
142
c := v .pop ()
143
- v .push ("? :" )
143
+ v .push (fmt . Sprintf ( "%T" , node ) )
144
144
v .link (c )
145
145
v .link (e1 )
146
146
v .link (e2 )
@@ -166,8 +166,13 @@ func (v *visitor) Exit(ref *Node) {
166
166
}
167
167
168
168
case * PairNode :
169
+ b := v .pop ()
169
170
a := v .pop ()
170
- v .push (fmt .Sprintf ("%q: " , node . Key .( * StringNode ). Value ))
171
+ v .push (fmt .Sprintf ("%T " , node ))
171
172
v .link (a )
173
+ v .link (b )
174
+
175
+ default :
176
+ v .push (fmt .Sprintf ("%T" , node ))
172
177
}
173
178
}
You can’t perform that action at this time.
0 commit comments