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

Function isLineTerminator

packages/babel-parser/src/parser/util.ts:151–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 isLineTerminator(): boolean {
152 return this.eat(tt.semi) || this.canInsertSemicolon();
153 }
154
155 // Consume a semicolon, or, failing that, see if we are allowed to
156 // pretend that there is a semicolon at this position.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected