Skip to content

Commit

Permalink
[element model] migrate eol_at_end_of_file
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pq authored and Commit Queue committed Sep 30, 2024
1 parent 52b1b9d commit 23b1155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/linter/lib/src/rules/eol_at_end_of_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class _Visitor extends SimpleAstVisitor<void> {

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

0 comments on commit 23b1155

Please sign in to comment.