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

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

Issue 1577413002: Patch together getters/setters in different parts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 df83138a36e0d64f82ef8c59239228ecff267cca..5c383dc91ebe8aa73ce94edf2c4c17b51b6325f3 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -1381,6 +1381,22 @@ typedef F();''');
var x;''');
}
+ test_variable_getterInLib_setterInPart() {
+ addNamedSource('/a.dart', 'part of my.lib; void set x(int _) {}');
+ checkLibrary('library my.lib; part "a.dart"; int get x => 42;');
+ }
+
+ test_variable_getterInPart_setterInLib() {
+ addNamedSource('/a.dart', 'part of my.lib; int get x => 42;');
+ checkLibrary('library my.lib; part "a.dart"; void set x(int _) {}');
+ }
+
+ test_variable_getterInPart_setterInPart() {
+ addNamedSource('/a.dart', 'part of my.lib; int get x => 42;');
+ addNamedSource('/b.dart', 'part of my.lib; void set x(int _) {}');
+ checkLibrary('library my.lib; part "a.dart"; part "b.dart";');
Paul Berry 2016/01/13 16:12:01 I'd recommend adding another test which is the sam
+ }
+
test_variable_implicit_type() {
checkLibrary('var x;');
}
« pkg/analyzer/lib/src/generated/resolver.dart ('K') | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698