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

Unified Diff: pkg/analyzer/test/generated/incremental_resolver_test.dart

Issue 759353002: Fix for incremental resolution of top-level and class-member accessors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/generated/incremental_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
index 7b0f0fe39ba08e05798273ea458ac2c2cc5abb65..e201be05c8b4333791311acfcffa64d092e3ccad 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -1678,6 +1678,16 @@ class IncrementalResolverTest extends ResolverTestCase {
LibraryElement library;
CompilationUnit unit;
+ void test_classMemberAccessor_body() {
+ _resolveUnit(r'''
+class A {
+ int get test {
+ return 1 + 2;
+ }
+}''');
+ _resolve(_editString('+', '*'), _isFunctionBody);
+ }
+
void test_constructor_body() {
_resolveUnit(r'''
class A {
@@ -1805,6 +1815,14 @@ class B extends A {
_resolve(_editString('+', '*'), _isFunctionBody);
}
+ void test_topLevelAccessor_body() {
+ _resolveUnit(r'''
+int get test {
+ return 1 + 2;
+}''');
+ _resolve(_editString('+', '*'), _isFunctionBody);
+ }
+
void test_topLevelFunction_label_add() {
_resolveUnit(r'''
int main(int a, int b) {

Powered by Google App Engine
This is Rietveld 408576698