@@ -14,11 +14,13 @@ class _ExportGraphNode {
1414 /// It returns a "canonical" library element
1515 ///
1616 /// That's one of the passed in the arguments, which is the closest if we go up the graph.
17- _ExportGraphNode canonicalLibraryElement (Iterable <LibraryElement > libraryElements) {
17+ _ExportGraphNode canonicalLibraryElement (
18+ Iterable <LibraryElement > libraryElements) {
1819 if (libraryElements.contains (libraryElement)) {
1920 return this ;
2021 } else {
21- return exportedBy.toList ().firstWhere ((l) => l.canonicalLibraryElement (libraryElements) != null );
22+ return exportedBy.toList ().firstWhere (
23+ (l) => l.canonicalLibraryElement (libraryElements) != null );
2224 }
2325 }
2426}
@@ -27,15 +29,17 @@ class _ExportGraphNode {
2729/// the library element from the arguments, adds it to the index, then goes through all
2830/// the libraries this library element exports, adds them to the index too and also connects
2931/// them to build a graph.
30- void _buildSubGraph (Map <String , _ExportGraphNode > map, LibraryElement libraryElement) {
32+ void _buildSubGraph (
33+ Map <String , _ExportGraphNode > map, LibraryElement libraryElement) {
3134 if (! map.containsKey (libraryElement.source.fullName)) {
3235 map[libraryElement.source.fullName] = new _ExportGraphNode (libraryElement);
3336 }
3437 final node = map[libraryElement.source.fullName];
3538 libraryElement.exports.forEach ((ExportElement export) {
3639 final exportedLibraryElement = export.exportedLibrary;
3740 if (! map.containsKey (exportedLibraryElement.source.fullName)) {
38- map[exportedLibraryElement.source.fullName] = new _ExportGraphNode (exportedLibraryElement);
41+ map[exportedLibraryElement.source.fullName] =
42+ new _ExportGraphNode (exportedLibraryElement);
3943 }
4044 final childNode = map[exportedLibraryElement.source.fullName];
4145 childNode.exportedBy.add (node);
@@ -62,7 +66,9 @@ class ExportGraph {
6266 LibraryElement canonicalLibraryElement (Element element) {
6367 if (map.containsKey (element.library.source.fullName)) {
6468 final node = map[element.library.source.fullName];
65- return node.canonicalLibraryElement (packageLibraryElements)? .libraryElement;
69+ return node
70+ .canonicalLibraryElement (packageLibraryElements)
71+ ? .libraryElement;
6672 } else {
6773 return element.library;
6874 }
0 commit comments