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

Function stopParseSubscript

packages/babel-parser/src/parser/expression.ts:894–901  ·  view source on GitHub ↗
(
    this: Parser,
    base: N.Expression,
    state: N.ParseSubscriptState,
  )

Source from the content-addressed store, hash-verified

892 }
893
894 stopParseSubscript(
895 this: Parser,
896 base: N.Expression,
897 state: N.ParseSubscriptState,
898 ) {
899 state.stop = true;
900 return base;
901 }
902
903 // base[?Yield, ?Await] [ Expression[+In, ?Yield, ?Await] ]
904 // base[?Yield, ?Await] . IdentifierName

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected