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

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

Issue 1694873002: Add support for requesting units from resynthesizer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 702107052ea93ff18fd952ca4a44cd4a50942d53..b75499d4152b5a8ec5f2f99d1106f6012e7a697d 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -2535,6 +2535,14 @@ f() {}''');
comparePropertyAccessorElements(resynthesized, original, 'C.setter f');
}
+ test_getElement_unit() {
+ Source source = addSource('class C { f() {} }');
+ CompilationUnitElement original = resolve2(source).definingCompilationUnit;
+ expect(original, isNotNull);
+ CompilationUnitElement resynthesized = validateGetElement(original);
+ compareCompilationUnitElements(resynthesized, original);
+ }
+
test_getter_documented() {
checkLibrary('''
// Extra comment so doc comment offset != 0

Powered by Google App Engine
This is Rietveld 408576698