(node *ast.TokenNode, flags tokenEmitFlags)
| 973 | } |
| 974 | |
| 975 | func (p *Printer) emitTokenNodeEx(node *ast.TokenNode, flags tokenEmitFlags) { |
| 976 | if node == nil { |
| 977 | return |
| 978 | } |
| 979 | |
| 980 | switch { |
| 981 | case ast.IsKeywordKind(node.Kind): |
| 982 | p.emitKeywordNodeEx(node, flags) |
| 983 | case ast.IsPunctuationKind(node.Kind): |
| 984 | p.emitPunctuationNodeEx(node, flags) |
| 985 | default: |
| 986 | panic(fmt.Sprintf("unexpected TokenNode: %v", node.Kind)) |
| 987 | } |
| 988 | } |
| 989 | |
| 990 | // |
| 991 | // Literals |
no test coverage detected