Skip to content

Commit 7fbcacc

Browse files
authored
Don't emit library in allElements (#247)
Fixes #245 The library is available through `element` and most Generators will want to make a distinction anyway.
1 parent 491e88e commit 7fbcacc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/src/library.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ class LibraryReader {
2626
ClassElement findType(String name) =>
2727
element.getType(name) ?? _namespace.get(name) as ClassElement;
2828

29-
/// All of the declarations in this library, including the [LibraryElement] as
30-
/// the first item.
29+
/// All of the declarations in this library.
3130
Iterable<Element> get allElements sync* {
32-
yield element;
3331
for (var cu in element.units) {
3432
for (var compUnitMember in cu.unit.declarations) {
3533
yield* _getElements(compUnitMember);

0 commit comments

Comments
 (0)