Chromium Code Reviews| 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 177cf19e1b9f96a13ca4478c3c0620c4612b2dd2..72433ff63f3b4eb436feae1364a1bc9a61e02a1c 100644 |
| --- a/pkg/analyzer/test/generated/incremental_resolver_test.dart |
| +++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart |
| @@ -3803,23 +3803,6 @@ main() { |
| '''); |
| } |
| - void test_endOfLineComment_localFunction_inTopLevelVariable() { |
| - _resolveUnit(r''' |
| -typedef int Binary(one, two, three); |
| - |
| -int Global = f((a, b, c) { |
| - return 0; // Some comment |
| -}); |
| -'''); |
| - _updateAndValidate(r''' |
| -typedef int Binary(one, two, three); |
| - |
| -int Global = f((a, b, c) { |
| - return 0; // Some comment |
| -}); |
| -'''); |
| - } |
| - |
| void test_endOfLineComment_outBody_add() { |
| _resolveUnit(r''' |
| main() { |
| @@ -3933,6 +3916,48 @@ main() { |
| expectedSuccess: false); |
| } |
| + void test_false_constructor_initializer() { |
|
Brian Wilkerson
2016/01/20 14:53:56
Given the number of new cases that appear to have
|
| + _resolveUnit(r''' |
| +class Problem { |
| + final Map location; |
| + final String message; |
| + |
| + Problem(Map json) |
| + : location = json["location"], |
| + message = json["message"]; |
| +}'''); |
| + _updateAndValidate( |
| + r''' |
| +class Problem { |
| + final Map location; |
| + final String message; |
| + |
| + Problem(Map json) |
| + : location = json["location], |
| + message = json["message"]; |
| +}''', |
| + expectedSuccess: false); |
| + } |
| + |
| + void test_false_endOfLineComment_localFunction_inTopLevelVariable() { |
| + _resolveUnit(r''' |
| +typedef int Binary(one, two, three); |
| + |
| +int Global = f((a, b, c) { |
| + return 0; // Some comment |
| +}); |
| +'''); |
| + _updateAndValidate( |
| + r''' |
| +typedef int Binary(one, two, three); |
| + |
| +int Global = f((a, b, c) { |
| + return 0; // Some comment |
| +}); |
| +''', |
| + expectedSuccess: false); |
| + } |
| + |
| void test_false_expressionBody() { |
| _resolveUnit(r''' |
| class A { |
| @@ -3963,6 +3988,29 @@ class A { |
| expectedSuccess: false); |
| } |
| + void test_false_inBody_functionExpression() { |
| + _resolveUnit(r''' |
| +class C extends D { |
| + static final f = () { |
| + var x = 0; |
| + }(); |
| +} |
| + |
| +class D {} |
| +'''); |
| + _updateAndValidate( |
| + r''' |
| +class C extends D { |
| + static final f = () { |
| + var x = 01; |
| + }(); |
| +} |
| + |
| +class D {} |
| +''', |
| + expectedSuccess: false); |
| + } |
| + |
| void test_false_topLevelFunction_name() { |
| _resolveUnit(r''' |
| a() {} |
| @@ -4082,27 +4130,6 @@ class A { |
| '''); |
| } |
| - void test_inBody_functionExpression() { |
| - _resolveUnit(r''' |
| -class C extends D { |
| - static final f = () { |
| - var x = 0; |
| - }(); |
| -} |
| - |
| -class D {} |
| -'''); |
| - _updateAndValidate(r''' |
| -class C extends D { |
| - static final f = () { |
| - var x = 01; |
| - }(); |
| -} |
| - |
| -class D {} |
| -'''); |
| - } |
| - |
| void test_inBody_insertStatement() { |
| _resolveUnit(r''' |
| main() { |