()
| 983 | } |
| 984 | |
| 985 | func (n *Node) ModuleSpecifier() *Expression { |
| 986 | switch n.Kind { |
| 987 | case KindImportDeclaration, KindJSImportDeclaration: |
| 988 | return n.AsImportDeclaration().ModuleSpecifier |
| 989 | case KindExportDeclaration: |
| 990 | return n.AsExportDeclaration().ModuleSpecifier |
| 991 | case KindJSDocImportTag: |
| 992 | return n.AsJSDocImportTag().ModuleSpecifier |
| 993 | } |
| 994 | panic("Unhandled case in Node.ModuleSpecifier: " + n.Kind.String()) |
| 995 | } |
| 996 | |
| 997 | func (n *Node) ImportClause() *Node { |
| 998 | switch n.Kind { |
no test coverage detected