* - html`...` * - HTML comment block
(path)
| 107 | * - HTML comment block |
| 108 | */ |
| 109 | function isEmbedHtml(path) { |
| 110 | return ( |
| 111 | hasLanguageComment(path, "HTML") || |
| 112 | path.match( |
| 113 | (node) => node.type === "TemplateLiteral", |
| 114 | (node, name) => |
| 115 | node.type === "TaggedTemplateExpression" && |
| 116 | node.tag.type === "Identifier" && |
| 117 | node.tag.name === "html" && |
| 118 | name === "quasi", |
| 119 | ) |
| 120 | ); |
| 121 | } |
| 122 | |
| 123 | const printEmbedHtml = printEmbedHtmlLike.bind(undefined, "html"); |
| 124 | const printEmbedAngular = printEmbedHtmlLike.bind(undefined, "angular"); |
nothing calls this directly
no test coverage detected
searching dependent graphs…