mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
17 lines
400 B
JavaScript
17 lines
400 B
JavaScript
const { ModuleBlock } = require('../parser9');
|
|
const ParseProblem = require('../parsetypes/parse-problem');
|
|
|
|
/**
|
|
* @param {ModuleBlock} mod
|
|
*/
|
|
module.exports = function(mod, imports) {
|
|
/** @type {ParseProblem[]} */
|
|
const probs = [];
|
|
|
|
imports.unresolved.forEach(i => {
|
|
probs.push(ParseProblem.Warning(i, `Unresolved import: ${i.name}`));
|
|
})
|
|
|
|
return probs;
|
|
}
|