MCPcopy Create free account
hub / github.com/ampproject/amphtml / CallExpression

Function CallExpression

build-system/eslint-rules/html-template.js:157–173  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

155
156 return {
157 CallExpression(node) {
158 if (/test-/.test(context.getFilename())) {
159 return;
160 }
161
162 const {callee} = node;
163 if (callee.type !== 'Identifier') {
164 return;
165 }
166
167 if (staticTemplateTags.has(callee.name)) {
168 return tagCannotBeCalled(node);
169 }
170 if (staticTemplateFactoryFns.has(callee.name)) {
171 return factoryUsage(node);
172 }
173 },
174
175 TaggedTemplateExpression(node) {
176 const {tag} = node;

Callers

nothing calls this directly

Calls 4

tagCannotBeCalledFunction · 0.85
factoryUsageFunction · 0.85
testMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected