MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isCompilerIntrinsicCall

Method isCompilerIntrinsicCall

compiler/companion/src/JSXProcessor.ts:326–336  ·  view source on GitHub ↗
(node: ts.Node, intrisicCallName: string)

Source from the content-addressed store, hash-verified

324 }
325
326 private isCompilerIntrinsicCall(node: ts.Node, intrisicCallName: string): node is ts.CallExpression {
327 if (!ts.isCallExpression(node)) {
328 return false;
329 }
330
331 if (!ts.isIdentifier(node.expression)) {
332 return false;
333 }
334
335 return node.expression.text === intrisicCallName;
336 }
337
338 private isNamedSlotsExpression(expression: ts.Node): expression is ts.CallExpression {
339 return this.isCompilerIntrinsicCall(expression, '$namedSlots');

Callers 2

Calls 1

isIdentifierMethod · 0.80

Tested by

no test coverage detected