Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 2223113002: Add line starts into unlinked units. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tweaks Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/summary/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index d3e94d34b9d12b3deb0c00839e69f165275d3629..d5f2876096b223e4295a130517c2a6e2f00fd568 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -8659,6 +8659,17 @@ library foo;''';
expectedTargetUnit: 2);
}
+ test_lineStarts() {
+ String text = '''
+int foo;
+class Test {}
+
+int bar;'''
+ .replaceAll('\r\n', '\n');
+ serializeLibraryText(text);
+ expect(unlinkedUnits[0].lineStarts, [0, 9, 23, 24]);
+ }
+
test_linked_reference_reuse() {
if (skipFullyLinkedData) {
return;

Powered by Google App Engine
This is Rietveld 408576698