MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / attributeCallback

Function attributeCallback

Extension/gulpfile.js:150–154  ·  view source on GitHub ↗
(locId, locHint, attribute)

Source from the content-addressed store, hash-verified

148 localizationMetadataContents.messages.push(text);
149 };
150 let attributeCallback = (locId, locHint, attribute) => {
151 localizationJsonContents[locId] = attribute.value;
152 localizationMetadataContents.keys.push(locHint ? { key: locId, comment: [locHint] } : locId);
153 localizationMetadataContents.messages.push(attribute.value);
154 };
155 traverseHtml(file.contents.toString(), nodeCallback, attributeCallback, false);
156 this.queue(new vinyl({
157 path: path.join(file.path + '.nls.json'),

Callers 1

preFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected