@@ -170,15 +170,14 @@ class PackageGraph with CommentReferable, Nameable {
170170 e.canonicalModelElement == null ||
171171 e is Library ||
172172 e.enclosingElement! .isCanonical) {
173- for (var d in e.documentationFrom
174- .where ((d) => d.hasDocumentationComment)) {
173+ for (var d
174+ in e.documentationFrom .where ((d) => d.hasDocumentationComment)) {
175175 if (d.needsPrecache && ! precachedElements.contains (d)) {
176176 precachedElements.add (d as ModelElement );
177177 futures.add (d.precacheLocalDocs ());
178178 // [TopLevelVariable]s get their documentation from getters and
179179 // setters, so should be precached if either has a template.
180- if (e is TopLevelVariable &&
181- ! precachedElements.contains (e)) {
180+ if (e is TopLevelVariable && ! precachedElements.contains (e)) {
182181 precachedElements.add (e);
183182 futures.add (e.precacheLocalDocs ());
184183 }
@@ -647,7 +646,8 @@ class PackageGraph with CommentReferable, Nameable {
647646 checkAndAddContainer (modelElement, container);
648647 }
649648 } else if (container is Mixin ) {
650- for (var modelElement in container.superclassConstraints.modelElements) {
649+ for (var modelElement
650+ in container.superclassConstraints.modelElements) {
651651 checkAndAddContainer (modelElement, container);
652652 }
653653 }
@@ -752,8 +752,7 @@ class PackageGraph with CommentReferable, Nameable {
752752 // TODO(keertip): Find a better way to exclude members of extensions
753753 // when libraries are specified using the "--include" flag.
754754 if (library != null && library.isDocumented) {
755- return getModelFor (e, library,
756- enclosingContainer: preferredClass);
755+ return getModelFor (e, library, enclosingContainer: preferredClass);
757756 }
758757 }
759758 // TODO(jcollins-g): The data structures should be changed to eliminate
@@ -778,8 +777,7 @@ class PackageGraph with CommentReferable, Nameable {
778777 var setterElement = setter2 == null
779778 ? null
780779 : getModelFor (setter2, library) as Accessor ;
781- canonicalModelElement = getModelForPropertyInducingElement (
782- e, library,
780+ canonicalModelElement = getModelForPropertyInducingElement (e, library,
783781 getter: getterElement, setter: setterElement);
784782 } else {
785783 canonicalModelElement = getModelFor (e, library);
@@ -791,8 +789,7 @@ class PackageGraph with CommentReferable, Nameable {
791789 }
792790 }
793791 // Prefer fields and top-level variables.
794- if (e is PropertyAccessorElement2 &&
795- canonicalModelElement is Accessor ) {
792+ if (e is PropertyAccessorElement2 && canonicalModelElement is Accessor ) {
796793 canonicalModelElement = canonicalModelElement.enclosingCombo;
797794 }
798795 return canonicalModelElement;
@@ -804,8 +801,8 @@ class PackageGraph with CommentReferable, Nameable {
804801 var elem = modelElement.element;
805802 var candidates = < ModelElement > {};
806803 if (lib != null ) {
807- var constructedWithKey = allConstructedModelElements[
808- ConstructedModelElementsKey (elem, null )];
804+ var constructedWithKey =
805+ allConstructedModelElements[ ConstructedModelElementsKey (elem, null )];
809806 if (constructedWithKey != null ) {
810807 candidates.add (constructedWithKey);
811808 }
0 commit comments