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

Function isStringModuleExportName

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected