mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
updated validation to use new JavaTypes module instead of MTIs
This commit is contained in:
@@ -3,13 +3,14 @@ const ParseProblem = require('../parsetypes/parse-problem');
|
||||
|
||||
/**
|
||||
* @param {ModuleBlock} mod
|
||||
* @param {{unresolved:*[]}} imports
|
||||
*/
|
||||
module.exports = function(mod, imports) {
|
||||
/** @type {ParseProblem[]} */
|
||||
const probs = [];
|
||||
|
||||
imports.unresolved.forEach(i => {
|
||||
probs.push(ParseProblem.Warning(i, `Unresolved import: ${i.name}`));
|
||||
imports.unresolved.forEach(import_tokens => {
|
||||
probs.push(ParseProblem.Warning(import_tokens, `Unresolved import: ${import_tokens.name}`));
|
||||
})
|
||||
|
||||
return probs;
|
||||
|
||||
Reference in New Issue
Block a user