visitImportExportDecl method
Implementation
@override
void visitImportExportDecl(ImportExportDecl node) {
if (!_currentSource.fullName
.startsWith(InternalIdentifier.anonymousScript)) {
// handle self import error.
final currentDir = path.dirname(_currentSource.fullName);
final fromPath = sourceContext.getAbsolutePath(
key: node.fromPath!, dirName: currentDir);
if (_currentSource.fullName == fromPath) {
final err = HTAnalysisError.importSelf(
filename: node.source!.fullName,
line: node.line,
column: node.column,
offset: node.offset,
length: node.length);
_currentErrors.add(err);
}
}
// TODO: duplicate import and
if (!node.isExport) {
// import statement
// if (node.)
} else {}
}