MCPcopy
hub / github.com/webpack/webpack / getTagData

Method getTagData

lib/javascript/JavascriptParser.js:5440–5449  ·  view source on GitHub ↗

* Returns tag data. * @param {string} name name * @param {Tag} tag tag info * @returns {TagData | undefined} tag data

(name, tag)

Source from the content-addressed store, hash-verified

5438 * @returns {TagData | undefined} tag data
5439 */
5440 getTagData(name, tag) {
5441 const info = this.scope.definitions.get(name);
5442 if (info instanceof VariableInfo) {
5443 let tagInfo = info.tagInfo;
5444 while (tagInfo !== undefined) {
5445 if (tagInfo.tag === tag) return tagInfo.data;
5446 tagInfo = tagInfo.next;
5447 }
5448 }
5449 }
5450
5451 /**
5452 * Processes the provided name.

Callers 11

handlerMethod · 0.80
handlerMethod · 0.80
addVariableUsageFunction · 0.80
tagTopLevelSymbolFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
findImportSpecifierFunction · 0.80
applyMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected