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

Function isStringModuleExportName

packages/babel-parser/src/parser/statement.ts:3390–3398  ·  view source on GitHub ↗
(
    node: N.Identifier | N.StringLiteral,
  )

Source from the content-addressed store, hash-verified

3388 }
3389
3390 isStringModuleExportName(
3391 node: N.Identifier | N.StringLiteral,
3392 ): node is N.StringLiteral {
3393 return (
3394 node.type === "StringLiteral" ||
3395 // estree
3396 (node.type as string) === "Literal"
3397 );
3398 }
3399
3400 // This is used in flow and typescript plugin
3401 // Determine whether a parameter is a this param

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected