MCPcopy Create free account
hub / github.com/babel/babel / parseInterpreterDirective

Function parseInterpreterDirective

packages/babel-parser/src/parser/statement.ts:177–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176
177 parseInterpreterDirective(): N.InterpreterDirective | null {
178 if (!this.match(tt.interpreterDirective)) {
179 return null;
180 }
181
182 const node = this.startNode<N.InterpreterDirective>();
183 node.value = this.state.value;
184 this.next();
185 return this.finishNode(node, "InterpreterDirective");
186 }
187
188 isLet(): boolean {
189 if (!this.isContextual(tt._let)) {

Callers

nothing calls this directly

Calls 3

matchMethod · 0.80
nextMethod · 0.80
finishNodeMethod · 0.80

Tested by

no test coverage detected