File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 0.5.3+1
2+
3+ * Don't throw when running against a non-library asset and getting no
4+ LibraryElement
5+
16## 0.5.3
27
38* Add matchTypes method. As with anything imported from /src/ this is
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class GeneratorBuilder extends Builder {
3131 var id = buildStep.input.id;
3232 var resolver = await buildStep.resolve (id, resolveAllConstants: false );
3333 var lib = resolver.getLibrary (id);
34+ if (lib == null ) return ;
3435 await _generateForLibrary (lib, buildStep);
3536 resolver.release ();
3637 }
Original file line number Diff line number Diff line change 11name : source_gen
2- version : 0.5.3
2+ version : 0.5.3+1
33author :
Dart Team <[email protected] > 44description : Automatic sourcecode generation for Dart
55homepage : https://github.com/dart-lang/source_gen
You can’t perform that action at this time.
0 commit comments