MCPcopy Create free account
hub / github.com/andywer/postguard / TaggedTemplateExpression

Function TaggedTemplateExpression

src/babel/parse-file.ts:58–67  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

56 tableSchemas.push(parseTableDefinition(path, sourceFile))
57 },
58 TaggedTemplateExpression(path) {
59 const tag = path.get("tag")
60 if (!tag.isIdentifier()) return
61
62 const importSpecifier = getReferencedNamedImport(tag, "sql")
63 if (!importSpecifier) return
64
65 const query = parseQuery(path.get("quasi"), sourceFile)
66 queries.push(createQueryInvocation(query, path, sourceFile))
67 }
68 })
69
70 return {

Callers

nothing calls this directly

Calls 3

getReferencedNamedImportFunction · 0.90
parseQueryFunction · 0.90
createQueryInvocationFunction · 0.90

Tested by

no test coverage detected