From bf3f15909c58e2dc3e43779fc0b1f91a18e54ec8 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Tue, 13 Dec 2022 01:39:46 +0100 Subject: [PATCH] Fix converter import prefixes missing in modular mode --- drift_dev/lib/src/writer/writer.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drift_dev/lib/src/writer/writer.dart b/drift_dev/lib/src/writer/writer.dart index 06e15656..01d67107 100644 --- a/drift_dev/lib/src/writer/writer.dart +++ b/drift_dev/lib/src/writer/writer.dart @@ -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) {