LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "go.h" | 5 #include "go.h" |
6 | 6 |
7 enum | 7 enum |
8 { | 8 { |
9 PFIXME = 0, | 9 PFIXME = 0, |
10 }; | 10 }; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 switch(n->op) { | 132 switch(n->op) { |
133 default: | 133 default: |
134 bad: | 134 bad: |
135 fmtprint(f, "(node %O)", n->op); | 135 fmtprint(f, "(node %O)", n->op); |
136 break; | 136 break; |
137 | 137 |
138 case OPAREN: | 138 case OPAREN: |
139 fmtprint(f, "(%#N)", n->left); | 139 fmtprint(f, "(%#N)", n->left); |
140 break; | 140 break; |
141 | 141 |
| 142 case ODDDARG: |
| 143 fmtprint(f, "... argument"); |
| 144 break; |
| 145 |
142 case OREGISTER: | 146 case OREGISTER: |
143 fmtprint(f, "%R", n->val.u.reg); | 147 fmtprint(f, "%R", n->val.u.reg); |
144 break; | 148 break; |
145 | 149 |
146 case OLITERAL: | 150 case OLITERAL: |
147 if(n->sym != S) { | 151 if(n->sym != S) { |
148 fmtprint(f, "%S", n->sym); | 152 fmtprint(f, "%S", n->sym); |
149 break; | 153 break; |
150 } | 154 } |
151 switch(n->val.ctype) { | 155 switch(n->val.ctype) { |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 break; | 475 break; |
472 | 476 |
473 case ODEFER: | 477 case ODEFER: |
474 fmtprint(f, "defer %#N", n->left); | 478 fmtprint(f, "defer %#N", n->left); |
475 break; | 479 break; |
476 } | 480 } |
477 | 481 |
478 if(prec > nprec) | 482 if(prec > nprec) |
479 fmtprint(f, ")"); | 483 fmtprint(f, ")"); |
480 } | 484 } |
LEFT | RIGHT |