(
this: Parser,
node: Undone<N.ImportDeclaration>,
)
| 3115 | } |
| 3116 | |
| 3117 | parseImportSourceAndAttributes( |
| 3118 | this: Parser, |
| 3119 | node: Undone<N.ImportDeclaration>, |
| 3120 | ): N.ImportDeclaration { |
| 3121 | node.specifiers ??= []; |
| 3122 | node.source = this.parseImportSource(); |
| 3123 | this.maybeParseImportAttributes(node); |
| 3124 | this.checkImportPhase(node); |
| 3125 | |
| 3126 | this.semicolon(); |
| 3127 | this.sawUnambiguousESM = true; |
| 3128 | return this.finishNode(node, "ImportDeclaration"); |
| 3129 | } |
| 3130 | |
| 3131 | parseImportSource(this: Parser): N.StringLiteral { |
| 3132 | if (!this.match(tt.string)) this.unexpected(); |
nothing calls this directly
no test coverage detected