Skip to content

Commit 4168d4c

Browse files
committed
address comments
1 parent aa86e7e commit 4168d4c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/src/model/canonicalization.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ final class _Canonicalization {
8686
}
8787
}
8888

89+
// Copied from package analyzer ElementLocationImpl.fromElement.
8990
String _getElementLocation(Element2 element) {
90-
var components = <String>[];
91+
var components = <String>[];
9192
Element2? ancestor = element;
9293
while (ancestor != null) {
9394
if (ancestor is! ElementImpl2) {
@@ -110,7 +111,7 @@ final class _Canonicalization {
110111
}
111112
}
112113
}
113-
var buffer = StringBuffer();
114+
var buffer = StringBuffer();
114115
var length = components.length;
115116
for (var i = 0; i < length; i++) {
116117
if (i > 0) {
@@ -267,5 +268,3 @@ enum _Reason {
267268

268269
const _Reason(this.text);
269270
}
270-
271-

0 commit comments

Comments
 (0)