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

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

Issue 770253003: Update local functions methods/functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46f7c8afe9b3bd00dd6a2cf4235fe4bfdce239e9..daf68fde7a16ceee67a4b8d6b18222a814b77989 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -1891,6 +1891,16 @@ class B extends A {
_resolve(_editString('+', '*'), _isExpression);
}
+ void test_function_localFunction_add() {
+ _resolveUnit(r'''
+int main() {
+ return 0;
+}
+callIt(f) {}
+''');
+ _resolve(_editString('return 0;', 'callIt((p) {});'), _isBlock);
+ }
+
void test_functionBody_body() {
_resolveUnit(r'''
main(int a, int b) {
@@ -1935,6 +1945,18 @@ class A {
_resolve(_editString('return', 'label: return'), _isBlock);
}
+ void test_method_localFunction_add() {
+ _resolveUnit(r'''
+class A {
+ int m() {
+ return 0;
+ }
+}
+callIt(f) {}
+''');
+ _resolve(_editString('return 0;', 'callIt((p) {});'), _isBlock);
+ }
+
void test_method_localVariable_add() {
_resolveUnit(r'''
class A {
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698