Fix converter import prefixes missing in modular mode

This commit is contained in:
Peter Leibiger 2022-12-13 01:39:46 +01:00
parent 16e6aaf4fe
commit bf3f15909c
No known key found for this signature in database
GPG Key ID: 855A3ADD4CC39135
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ abstract class _NodeOrWriter {
final buffer = StringBuffer();
for (final lexeme in code.elements) {
if (lexeme is DartTopLevelSymbol) {
if (lexeme is AnnotatedDartCode) {
buffer.write(dartCode(lexeme));
} else if (lexeme is DartTopLevelSymbol) {
final uri = lexeme.importUri;
if (uri != null) {