| Index: pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart
|
| diff --git a/pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart b/pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart
|
| index 19b5e83ba2b24ddd3c9ebabfb48670e59195e6e9..f410bb076ef11aec2c0b028a09c2f506b0a774ba 100644
|
| --- a/pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart
|
| +++ b/pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart
|
| @@ -117,9 +117,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList() async {
|
| // ArgumentList MethodInvocation ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| bool hasLength(int expected) { }
|
| void baz() { }''');
|
| @@ -144,9 +142,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_imported_function() async {
|
| // ArgumentList MethodInvocation ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| bool hasLength(int expected) { }
|
| expect(arg) { }
|
| @@ -172,9 +168,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_InstanceCreationExpression_functionalArg() async {
|
| // ArgumentList InstanceCreationExpression ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| class A { A(f()) { } }
|
| bool hasLength(int expected) { }
|
| @@ -202,9 +196,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_InstanceCreationExpression_typedefArg() async {
|
| // ArgumentList InstanceCreationExpression ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| typedef Funct();
|
| class A { A(Funct f) { } }
|
| @@ -233,9 +225,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_local_function() async {
|
| // ArgumentList MethodInvocation ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| bool hasLength(int expected) { }
|
| void baz() { }''');
|
| @@ -261,9 +251,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_local_method() async {
|
| // ArgumentList MethodInvocation ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| bool hasLength(int expected) { }
|
| void baz() { }''');
|
| @@ -289,9 +277,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_MethodInvocation_functionalArg() async {
|
| // ArgumentList MethodInvocation ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| class A { A(f()) { } }
|
| bool hasLength(int expected) { }
|
| @@ -319,9 +305,7 @@ void main() {new A().f^}''');
|
|
|
| test_ArgumentList_MethodInvocation_methodArg() async {
|
| // ArgumentList MethodInvocation ExpressionStatement Block
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| class A { A(f()) { } }
|
| bool hasLength(int expected) { }
|
| @@ -348,9 +332,7 @@ void main() {new A().f^}''');
|
| test_ArgumentList_namedParam() async {
|
| // SimpleIdentifier NamedExpression ArgumentList MethodInvocation
|
| // ExpressionStatement
|
| - addSource(
|
| - '/libA.dart',
|
| - '''
|
| + addSource('/libA.dart', '''
|
| library A;
|
| bool hasLength(int expected) { }''');
|
| addTestSource('''
|
| @@ -527,29 +509,21 @@ void main() {new A().f^}''');
|
|
|
| test_Block() async {
|
| // Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| export "dart:math" hide max;
|
| class A {int x;}
|
| @deprecated D1() {int x;}
|
| class _B {boo() { partBoo() {}} }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| String T1;
|
| var _T2;
|
| class C { }
|
| class D { }''');
|
| - addSource(
|
| - '/testEEF.dart',
|
| - '''
|
| + addSource('/testEEF.dart', '''
|
| class EE { }
|
| class F { }''');
|
| addSource('/testG.dart', 'class G { }');
|
| - addSource(
|
| - '/testH.dart',
|
| - '''
|
| + addSource('/testH.dart', '''
|
| class H { }
|
| int T3;
|
| var _T4;'''); // not imported
|
| @@ -627,29 +601,21 @@ void main() {new A().f^}''');
|
|
|
| test_Block_final() async {
|
| // Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| export "dart:math" hide max;
|
| class A {int x;}
|
| @deprecated D1() {int x;}
|
| class _B {boo() { partBoo() {}} }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| String T1;
|
| var _T2;
|
| class C { }
|
| class D { }''');
|
| - addSource(
|
| - '/testEEF.dart',
|
| - '''
|
| + addSource('/testEEF.dart', '''
|
| class EE { }
|
| class F { }''');
|
| addSource('/testG.dart', 'class G { }');
|
| - addSource(
|
| - '/testH.dart',
|
| - '''
|
| + addSource('/testH.dart', '''
|
| class H { }
|
| int T3;
|
| var _T4;'''); // not imported
|
| @@ -747,29 +713,21 @@ void main() {new A().f^}''');
|
|
|
| test_Block_final_final() async {
|
| // Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| export "dart:math" hide max;
|
| class A {int x;}
|
| @deprecated D1() {int x;}
|
| class _B {boo() { partBoo() {}} }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| String T1;
|
| var _T2;
|
| class C { }
|
| class D { }''');
|
| - addSource(
|
| - '/testEEF.dart',
|
| - '''
|
| + addSource('/testEEF.dart', '''
|
| class EE { }
|
| class F { }''');
|
| addSource('/testG.dart', 'class G { }');
|
| - addSource(
|
| - '/testH.dart',
|
| - '''
|
| + addSource('/testH.dart', '''
|
| class H { }
|
| int T3;
|
| var _T4;'''); // not imported
|
| @@ -853,29 +811,21 @@ void main() {new A().f^}''');
|
|
|
| test_Block_final_var() async {
|
| // Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| export "dart:math" hide max;
|
| class A {int x;}
|
| @deprecated D1() {int x;}
|
| class _B {boo() { partBoo() {}} }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| String T1;
|
| var _T2;
|
| class C { }
|
| class D { }''');
|
| - addSource(
|
| - '/testEEF.dart',
|
| - '''
|
| + addSource('/testEEF.dart', '''
|
| class EE { }
|
| class F { }''');
|
| addSource('/testG.dart', 'class G { }');
|
| - addSource(
|
| - '/testH.dart',
|
| - '''
|
| + addSource('/testH.dart', '''
|
| class H { }
|
| int T3;
|
| var _T4;'''); // not imported
|
| @@ -958,29 +908,21 @@ void main() {new A().f^}''');
|
| }
|
|
|
| test_Block_identifier_partial() async {
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| export "dart:math" hide max;
|
| class A {int x;}
|
| @deprecated D1() {int x;}
|
| class _B { }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| String T1;
|
| var _T2;
|
| class C { }
|
| class D { }''');
|
| - addSource(
|
| - '/testEEF.dart',
|
| - '''
|
| + addSource('/testEEF.dart', '''
|
| class EE { }
|
| class F { }''');
|
| addSource('/testG.dart', 'class G { }');
|
| - addSource(
|
| - '/testH.dart',
|
| - '''
|
| + addSource('/testH.dart', '''
|
| class H { }
|
| class D3 { }
|
| int T3;
|
| @@ -1045,9 +987,7 @@ void main() {new A().f^}''');
|
|
|
| test_Block_inherited_imported() async {
|
| // Block BlockFunctionBody MethodDeclaration ClassDeclaration
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| class F { var f1; f2() { } get f3 => 0; set f4(fx) { } var _pf; }
|
| class E extends F { var e1; e2() { } }
|
| @@ -1100,29 +1040,21 @@ void main() {new A().f^}''');
|
| }
|
|
|
| test_Block_local_function() async {
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| export "dart:math" hide max;
|
| class A {int x;}
|
| @deprecated D1() {int x;}
|
| class _B {boo() { partBoo() {}} }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| String T1;
|
| var _T2;
|
| class C { }
|
| class D { }''');
|
| - addSource(
|
| - '/testEEF.dart',
|
| - '''
|
| + addSource('/testEEF.dart', '''
|
| class EE { }
|
| class F { }''');
|
| addSource('/testG.dart', 'class G { }');
|
| - addSource(
|
| - '/testH.dart',
|
| - '''
|
| + addSource('/testH.dart', '''
|
| class H { }
|
| int T3;
|
| var _T4;'''); // not imported
|
| @@ -1173,9 +1105,7 @@ void main() {new A().f^}''');
|
|
|
| test_CascadeExpression_method1() async {
|
| // PropertyAccess CascadeExpression ExpressionStatement Block
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart";
|
| @@ -1199,9 +1129,7 @@ void main() {new A().f^}''');
|
|
|
| test_CascadeExpression_selector1() async {
|
| // PropertyAccess CascadeExpression ExpressionStatement Block
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart";
|
| @@ -1225,9 +1153,7 @@ void main() {new A().f^}''');
|
|
|
| test_CascadeExpression_selector2() async {
|
| // SimpleIdentifier PropertyAccess CascadeExpression ExpressionStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart";
|
| @@ -1249,9 +1175,7 @@ void main() {new A().f^}''');
|
|
|
| test_CascadeExpression_selector2_withTrailingReturn() async {
|
| // PropertyAccess CascadeExpression ExpressionStatement Block
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart";
|
| @@ -1340,9 +1264,7 @@ void main() {new A().f^}''');
|
|
|
| test_ClassDeclaration_body() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart" as x;
|
| @@ -1361,9 +1283,7 @@ void main() {new A().f^}''');
|
|
|
| test_ClassDeclaration_body_final() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart" as x;
|
| @@ -1382,9 +1302,7 @@ void main() {new A().f^}''');
|
|
|
| test_ClassDeclaration_body_final_field() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart" as x;
|
| @@ -1403,9 +1321,7 @@ void main() {new A().f^}''');
|
|
|
| test_ClassDeclaration_body_final_field2() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart" as Soo;
|
| @@ -1424,9 +1340,7 @@ void main() {new A().f^}''');
|
|
|
| test_ClassDeclaration_body_final_final() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart" as x;
|
| @@ -1445,9 +1359,7 @@ void main() {new A().f^}''');
|
|
|
| test_ClassDeclaration_body_final_var() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| class B { }''');
|
| addTestSource('''
|
| import "testB.dart" as x;
|
| @@ -1466,23 +1378,17 @@ void main() {new A().f^}''');
|
|
|
| test_Combinator_hide() async {
|
| // SimpleIdentifier HideCombinator ImportDirective
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| library libAB;
|
| part '/partAB.dart';
|
| class A { }
|
| class B { }''');
|
| - addSource(
|
| - '/partAB.dart',
|
| - '''
|
| + addSource('/partAB.dart', '''
|
| part of libAB;
|
| var T1;
|
| PB F1() => new PB();
|
| class PB { }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| class C { }
|
| class D { }''');
|
| addTestSource('''
|
| @@ -1495,25 +1401,19 @@ void main() {new A().f^}''');
|
|
|
| test_Combinator_show() async {
|
| // SimpleIdentifier HideCombinator ImportDirective
|
| - addSource(
|
| - '/testAB.dart',
|
| - '''
|
| + addSource('/testAB.dart', '''
|
| library libAB;
|
| part '/partAB.dart';
|
| class A { }
|
| class B { }''');
|
| - addSource(
|
| - '/partAB.dart',
|
| - '''
|
| + addSource('/partAB.dart', '''
|
| part of libAB;
|
| var T1;
|
| PB F1() => new PB();
|
| typedef PB2 F2(int blat);
|
| class Clz = Object with Object;
|
| class PB { }''');
|
| - addSource(
|
| - '/testCD.dart',
|
| - '''
|
| + addSource('/testCD.dart', '''
|
| class C { }
|
| class D { }''');
|
| addTestSource('''
|
| @@ -1526,9 +1426,7 @@ void main() {new A().f^}''');
|
|
|
| test_ConditionalExpression_elseExpression() async {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -1547,9 +1445,7 @@ void main() {new A().f^}''');
|
|
|
| test_ConditionalExpression_elseExpression_empty() async {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -1574,9 +1470,7 @@ void main() {new A().f^}''');
|
|
|
| test_ConditionalExpression_partial_thenExpression() async {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -1595,9 +1489,7 @@ void main() {new A().f^}''');
|
|
|
| test_ConditionalExpression_partial_thenExpression_empty() async {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -1622,9 +1514,7 @@ void main() {new A().f^}''');
|
|
|
| test_ConditionalExpression_thenExpression() async {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -1644,9 +1534,7 @@ void main() {new A().f^}''');
|
| test_ConstructorName_importedClass() async {
|
| // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
|
| // InstanceCreationExpression
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| int T1;
|
| F1() { }
|
| @@ -1670,9 +1558,7 @@ void main() {new A().f^}''');
|
| test_ConstructorName_importedFactory() async {
|
| // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
|
| // InstanceCreationExpression
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| int T1;
|
| F1() { }
|
| @@ -1832,9 +1718,7 @@ void main() {new A().f^}''');
|
|
|
| test_ExpressionStatement_identifier() async {
|
| // SimpleIdentifier ExpressionStatement Block
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| _B F1() { }
|
| class A {int x;}
|
| class _B { }''');
|
| @@ -1860,9 +1744,7 @@ void main() {new A().f^}''');
|
|
|
| test_ExpressionStatement_name() async {
|
| // ExpressionStatement Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| B T1;
|
| class B{}''');
|
| addTestSource('''
|
| @@ -2038,9 +1920,7 @@ void main() {new A().f^}''');
|
|
|
| test_FunctionDeclaration_returnType_afterComment() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2069,9 +1949,7 @@ void main() {new A().f^}''');
|
|
|
| test_FunctionDeclaration_returnType_afterComment2() async {
|
| // FunctionDeclaration ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2100,9 +1978,7 @@ void main() {new A().f^}''');
|
|
|
| test_FunctionDeclaration_returnType_afterComment3() async {
|
| // FunctionDeclaration ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2271,9 +2147,7 @@ void f(C<int> c) {
|
|
|
| test_IndexExpression() async {
|
| // ExpressionStatement Block
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -2298,9 +2172,7 @@ void f(C<int> c) {
|
|
|
| test_IndexExpression2() async {
|
| // SimpleIdentifier IndexExpression ExpressionStatement Block
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -2319,9 +2191,7 @@ void f(C<int> c) {
|
|
|
| test_InstanceCreationExpression_imported() async {
|
| // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {A(this.x) { } int x;}''');
|
| @@ -2362,9 +2232,7 @@ void f(C<int> c) {
|
|
|
| test_InterpolationExpression() async {
|
| // SimpleIdentifier InterpolationExpression StringInterpolation
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2393,9 +2261,7 @@ void f(C<int> c) {
|
|
|
| test_InterpolationExpression_block() async {
|
| // SimpleIdentifier InterpolationExpression StringInterpolation
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2461,9 +2327,7 @@ void f(C<int> c) {
|
|
|
| test_IsExpression() async {
|
| // SimpleIdentifier TypeName IsExpression IfStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| foo() { }
|
| class X {X.c(); X._d(); z() {}}''');
|
| @@ -2535,9 +2399,7 @@ void f(C<int> c) {
|
| }
|
|
|
| test_keyword2() async {
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| int newT1;
|
| int T1;
|
| @@ -2656,9 +2518,7 @@ void f(C<int> c) {
|
|
|
| test_MapLiteralEntry() async {
|
| // MapLiteralEntry MapLiteral VariableDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2685,9 +2545,7 @@ void f(C<int> c) {
|
|
|
| test_MapLiteralEntry1() async {
|
| // MapLiteralEntry MapLiteral VariableDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2707,9 +2565,7 @@ void f(C<int> c) {
|
|
|
| test_MapLiteralEntry2() async {
|
| // SimpleIdentifier MapLiteralEntry MapLiteral VariableDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2839,9 +2695,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_body_static() async {
|
| // Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testC.dart',
|
| - '''
|
| + addSource('/testC.dart', '''
|
| class C {
|
| c1() {}
|
| var c2;
|
| @@ -2920,9 +2774,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2950,9 +2802,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType_afterComment() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2980,9 +2830,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType_afterComment2() async {
|
| // MethodDeclaration ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -3010,9 +2858,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType_afterComment3() async {
|
| // MethodDeclaration ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -3209,16 +3055,12 @@ void main() {C.^ print("something");}''');
|
|
|
| test_partFile_TypeName() async {
|
| // SimpleIdentifier TypeName ConstructorName
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| int T1;
|
| F1() { }
|
| class X {X.c(); X._d(); z() {}}''');
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| library libA;
|
| import "testB.dart";
|
| part "$testFile";
|
| @@ -3245,16 +3087,12 @@ void main() {C.^ print("something");}''');
|
|
|
| test_partFile_TypeName2() async {
|
| // SimpleIdentifier TypeName ConstructorName
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| int T1;
|
| F1() { }
|
| class X {X.c(); X._d(); z() {}}''');
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| part of libA;
|
| class B { }''');
|
| addTestSource('''
|
| @@ -3281,9 +3119,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_class_const() async {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement Block
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| class I {
|
| static const scI = 'boo';
|
| @@ -3329,9 +3165,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_class_imported() async {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| class I {X get f => new A();get _g => new A();}
|
| class A implements I {
|
| @@ -3407,9 +3241,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_library() async {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| var T1;
|
| class X { }
|
| @@ -3435,9 +3267,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_library_typesOnly() async {
|
| // SimpleIdentifier PrefixedIdentifier TypeName
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| var T1;
|
| class X { }
|
| @@ -3463,9 +3293,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_library_typesOnly2() async {
|
| // SimpleIdentifier PrefixedIdentifier TypeName
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| var T1;
|
| class X { }
|
| @@ -3491,9 +3319,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_parameter() async {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| class _W {M y; var _z;}
|
| class X extends _W {}
|
| @@ -3511,9 +3337,7 @@ void main() {C.^ print("something");}''');
|
|
|
| test_PrefixedIdentifier_prefix() async {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| class A {static int bar = 10;}
|
| _B() {}''');
|
| addTestSource('''
|
| @@ -4082,9 +3906,7 @@ class C1 extends C2 implements C3 {
|
|
|
| test_TypeArgumentList() async {
|
| // SimpleIdentifier BinaryExpression ExpressionStatement
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| class C1 {int x;}
|
| F1() => 0;
|
| typedef String T1(int blat);''');
|
| @@ -4109,9 +3931,7 @@ class C1 extends C2 implements C3 {
|
|
|
| test_TypeArgumentList2() async {
|
| // TypeName TypeArgumentList TypeName
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| class C1 {int x;}
|
| F1() => 0;
|
| typedef String T1(int blat);''');
|
| @@ -4132,9 +3952,7 @@ class C1 extends C2 implements C3 {
|
| test_VariableDeclaration_name() async {
|
| // SimpleIdentifier VariableDeclaration VariableDeclarationList
|
| // VariableDeclarationStatement Block
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| foo() { }
|
| class _B { }
|
| @@ -4159,9 +3977,7 @@ class C1 extends C2 implements C3 {
|
| test_VariableDeclarationStatement_RHS() async {
|
| // SimpleIdentifier VariableDeclaration VariableDeclarationList
|
| // VariableDeclarationStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| foo() { }
|
| class _B { }
|
| @@ -4185,9 +4001,7 @@ class C1 extends C2 implements C3 {
|
| test_VariableDeclarationStatement_RHS_missing_semicolon() async {
|
| // VariableDeclaration VariableDeclarationList
|
| // VariableDeclarationStatement
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| foo1() { }
|
| void bar1() { }
|
|
|