mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 18:08:29 +00:00
18 lines
441 B
JavaScript
18 lines
441 B
JavaScript
const { SourceUnit } = require('../source-type');
|
|
const ParseProblem = require('../parsetypes/parse-problem');
|
|
|
|
/**
|
|
* @param {SourceUnit} unit
|
|
*/
|
|
module.exports = function(mod, unit) {
|
|
/** @type {ParseProblem[]} */
|
|
const probs = [];
|
|
|
|
unit.imports.forEach(i => {
|
|
if (!i.resolved)
|
|
probs.push(ParseProblem.Warning(i.nameTokens, `Unresolved import: ${i.package_name}`));
|
|
})
|
|
|
|
return probs;
|
|
}
|