Skip to content

Commit e3e14ed

Browse files
authored
add a comment to lib/src/display.dart (#289)
1 parent 9fced22 commit e3e14ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/jot/lib/src/display.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
// ignore_for_file: implementation_imports
66

7+
// Note: This file was copied from package:analyzer's
8+
// `lib/src/dart/element/display_string_builder.dart` file and adopted to
9+
// make the output correct from the POV of dart format. It will need to be
10+
// updated periodically from the upstream source-of-truth.
11+
//
12+
// We use this file to generate reasonable looking source code from Elements
13+
// - something that looks like what the user might have written - which we then
14+
// normalize via dart format.
15+
716
import 'package:analyzer/dart/element/element.dart';
817
import 'package:analyzer/dart/element/nullability_suffix.dart';
918
import 'package:analyzer/dart/element/type.dart';

0 commit comments

Comments
 (0)