MCPcopy Create free account
hub / github.com/angular/angular / isTemplateNode

Function isTemplateNode

packages/language-service/src/utils/index.ts:103–106  ·  view source on GitHub ↗
(node: TmplAstNode | AST)

Source from the content-addressed store, hash-verified

101}
102
103export function isTemplateNode(node: TmplAstNode | AST): node is TmplAstNode {
104 // Template node implements the Node interface so we cannot use instanceof.
105 return node.sourceSpan instanceof ParseSourceSpan;
106}
107
108export function isExpressionNode(node: TmplAstNode | AST): node is AST {
109 return node instanceof AST;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected