()
| 951 | } |
| 952 | |
| 953 | func (n *Node) Label() *Node { |
| 954 | switch n.Kind { |
| 955 | case KindLabeledStatement: |
| 956 | return n.AsLabeledStatement().Label |
| 957 | case KindBreakStatement: |
| 958 | return n.AsBreakStatement().Label |
| 959 | case KindContinueStatement: |
| 960 | return n.AsContinueStatement().Label |
| 961 | } |
| 962 | panic("Unhandled case in Node.Label: " + n.Kind.String()) |
| 963 | } |
| 964 | |
| 965 | func (n *Node) Attributes() *Node { |
| 966 | switch n.Kind { |
no test coverage detected