LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 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 <u.h> | 5 #include <u.h> |
6 #include <libc.h> | 6 #include <libc.h> |
7 #include "go.h" | 7 #include "go.h" |
8 #include "opnames.h" | 8 #include "opnames.h" |
9 | 9 |
10 // | 10 // |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 case OCONTINUE: | 907 case OCONTINUE: |
908 case OGOTO: | 908 case OGOTO: |
909 case OFALL: | 909 case OFALL: |
910 case OXFALL: | 910 case OXFALL: |
911 if(n->left) | 911 if(n->left) |
912 fmtprint(f, "%#O %N", n->op, n->left); | 912 fmtprint(f, "%#O %N", n->op, n->left); |
913 else | 913 else |
914 fmtprint(f, "%#O", n->op); | 914 fmtprint(f, "%#O", n->op); |
915 break; | 915 break; |
916 | 916 |
| 917 case OEMPTY: |
| 918 break; |
| 919 |
917 case OLABEL: | 920 case OLABEL: |
918 fmtprint(f, "%N: ", n->left); | 921 fmtprint(f, "%N: ", n->left); |
919 break; | 922 break; |
920 ·········· | 923 ·········· |
921 } | 924 } |
922 | 925 |
923 if(extrablock) | 926 if(extrablock) |
924 fmtstrcpy(f, "}"); | 927 fmtstrcpy(f, "}"); |
925 | 928 |
926 return 0; | 929 return 0; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 [OAS2FUNC] = -1, | 1014 [OAS2FUNC] = -1, |
1012 [OAS2MAPR] = -1, | 1015 [OAS2MAPR] = -1, |
1013 [OAS2RECV] = -1, | 1016 [OAS2RECV] = -1, |
1014 [OASOP] = -1, | 1017 [OASOP] = -1, |
1015 [OBREAK] = -1, | 1018 [OBREAK] = -1, |
1016 [OCASE] = -1, | 1019 [OCASE] = -1, |
1017 [OCONTINUE] = -1, | 1020 [OCONTINUE] = -1, |
1018 [ODCL] = -1, | 1021 [ODCL] = -1, |
1019 [ODCLFIELD] = -1, | 1022 [ODCLFIELD] = -1, |
1020 [ODEFER] = -1, | 1023 [ODEFER] = -1, |
| 1024 [OEMPTY] = -1, |
1021 [OFALL] = -1, | 1025 [OFALL] = -1, |
1022 [OFOR] = -1, | 1026 [OFOR] = -1, |
1023 [OIF] = -1, | 1027 [OIF] = -1, |
1024 [OLABEL] = -1, | 1028 [OLABEL] = -1, |
1025 [OPROC] = -1, | 1029 [OPROC] = -1, |
1026 [ORANGE] = -1, | 1030 [ORANGE] = -1, |
1027 [ORETURN] = -1, | 1031 [ORETURN] = -1, |
1028 [OSELECT] = -1, | 1032 [OSELECT] = -1, |
1029 [OSWITCH] = -1, | 1033 [OSWITCH] = -1, |
1030 [OXCASE] = -1, | 1034 [OXCASE] = -1, |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1565 dumplist(char *s, NodeList *l) | 1569 dumplist(char *s, NodeList *l) |
1566 { | 1570 { |
1567 print("%s\n%+H\n", s, l); | 1571 print("%s\n%+H\n", s, l); |
1568 } | 1572 } |
1569 | 1573 |
1570 void | 1574 void |
1571 dump(char *s, Node *n) | 1575 dump(char *s, Node *n) |
1572 { | 1576 { |
1573 print("%s [%p]\n%+N\n", s, n, n); | 1577 print("%s [%p]\n%+N\n", s, n, n); |
1574 } | 1578 } |
LEFT | RIGHT |