MCPcopy Create free account
hub / github.com/NativeScript/android / readInterfaceNames

Function readInterfaceNames

test-app/build-tools/jsparser/js_parser.js:164–182  ·  view source on GitHub ↗
(data, err)

Source from the content-addressed store, hash-verified

162 * After reading interface names runs the visiting api
163 */
164function readInterfaceNames(data, err) {
165 return new Promise(function (resolve, reject) {
166 fs.createReadStream(interfacesNamesFilePath)
167 .pipe(split())
168 .on("data", function (line) {
169 // skip empty lines
170 if (/\S/.test(line)) {
171 interfaceNames.push(line.toString().trim());
172 }
173 })
174 .on("error", function (e) {
175 return reject(false);
176 })
177 .on("close", function (e) {
178 inputDir = path.normalize(inputDir);
179 return resolve(inputDir);
180 });
181 });
182}
183
184/*
185 * Traverses a given input directory and attempts to visit every ".js" and ".mjs" file.

Callers

nothing calls this directly

Calls 2

testMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected