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

Function parseExpression

scripts/babel-plugin-toggle-boolean-flag/plugin.ts:21–24  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

19 }
20
21 function parseExpression(source: string) {
22 // eslint-disable-next-line regexp/no-useless-assertions
23 return template.expression(source, { placeholderPattern: /(?!.)./ })({});
24 }
25
26 function evaluate(test: t.Expression, value: boolean): any {
27 const res = {

Callers 1

ImportDeclarationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected