Skip to content

Commit 23b1155

Browse files
pqCommit Queue
authored and
Commit Queue
committed
[element model] migrate eol_at_end_of_file
Bug: ihttps://github.com/dart-lang/linter/issues/5099 Change-Id: Ic5d34042543f561b19a4f73ae17a1d375ba69757 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/387624 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 52b1b9d commit 23b1155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/linter/lib/src/rules/eol_at_end_of_file.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class _Visitor extends SimpleAstVisitor<void> {
3636

3737
@override
3838
void visitCompilationUnit(CompilationUnit node) {
39-
var content = node.declaredElement?.source.contents.data;
39+
var content = node.declaredFragment?.source.contents.data;
4040
if (content != null &&
4141
content.isNotEmpty &&
4242
// TODO(srawlins): Re-implement this check without iterating over

0 commit comments

Comments
 (0)