Skip to content

Commit 010eea6

Browse files
authored
Use build test 3 (#761)
1 parent 54acb63 commit 010eea6

File tree

7 files changed

+121
-144
lines changed

7 files changed

+121
-144
lines changed

source_gen/lib/src/type_checker.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ class UnresolvedAnnotationException implements Exception {
315315
annotatedElement.library!,
316316
)
317317
as ParsedLibraryResult;
318-
final declaration = parsedLibrary.getElementDeclaration(annotatedElement);
318+
ElementDeclarationResult? declaration;
319+
try {
320+
declaration = parsedLibrary.getElementDeclaration(annotatedElement);
321+
} catch (_) {}
319322
if (declaration == null) {
320323
return null;
321324
}

source_gen/pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111
dependencies:
1212
analyzer: '>=6.9.0 <8.0.0'
1313
async: ^2.5.0
14-
build: '>=2.1.0 <2.5.0'
14+
build: ^2.5.0
1515
dart_style: '>=2.3.7 <4.0.0'
1616
glob: ^2.0.0
1717
path: ^1.8.0
@@ -22,7 +22,8 @@ dependencies:
2222
dev_dependencies:
2323
_test_annotations:
2424
path: ../_test_annotations
25-
build_test: ^2.0.0
25+
build_test: ^3.1.1
2626
dart_flutter_team_lints: ^3.1.0
27+
logging: ^1.0.0
2728
term_glyph: ^1.2.0
2829
test: ^1.16.0

0 commit comments

Comments
 (0)