| Index: pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
|
| index 1622f89d4932b6da5b4f80a3251f62fd9de6a5ee..a47714ce074a77aba9e8f82b9892eeb12ddca805 100644
|
| --- a/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
|
| @@ -113,9 +113,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() { }''');
|
| @@ -140,9 +138,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) { }
|
| @@ -168,9 +164,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) { }
|
| @@ -198,9 +192,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) { } }
|
| @@ -229,9 +221,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() { }''');
|
| @@ -257,9 +247,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() { }''');
|
| @@ -285,9 +273,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) { }
|
| @@ -315,9 +301,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) { }
|
| @@ -344,9 +328,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('''
|
| @@ -523,29 +505,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
|
| @@ -623,29 +597,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
|
| @@ -743,29 +709,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
|
| @@ -849,29 +807,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
|
| @@ -954,29 +904,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;
|
| @@ -1041,9 +983,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() { } }
|
| @@ -1096,29 +1036,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
|
| @@ -1169,9 +1101,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";
|
| @@ -1195,9 +1125,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";
|
| @@ -1221,9 +1149,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";
|
| @@ -1245,9 +1171,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";
|
| @@ -1336,9 +1260,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;
|
| @@ -1357,9 +1279,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;
|
| @@ -1378,9 +1298,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;
|
| @@ -1399,9 +1317,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;
|
| @@ -1420,9 +1336,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;
|
| @@ -1441,9 +1355,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;
|
| @@ -1462,23 +1374,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('''
|
| @@ -1491,25 +1397,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('''
|
| @@ -1522,9 +1422,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;}''');
|
| @@ -1543,9 +1441,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;}''');
|
| @@ -1570,9 +1466,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;}''');
|
| @@ -1591,9 +1485,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;}''');
|
| @@ -1618,9 +1510,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;}''');
|
| @@ -1640,9 +1530,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() { }
|
| @@ -1666,9 +1554,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() { }
|
| @@ -1828,9 +1714,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 { }''');
|
| @@ -1856,9 +1740,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('''
|
| @@ -2034,9 +1916,7 @@ void main() {new A().f^}''');
|
|
|
| test_FunctionDeclaration_returnType_afterComment() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2065,9 +1945,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();
|
| @@ -2096,9 +1974,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();
|
| @@ -2267,9 +2143,7 @@ void f(C<int> c) {
|
|
|
| test_IndexExpression() async {
|
| // ExpressionStatement Block
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| class A {int x;}''');
|
| @@ -2294,9 +2168,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;}''');
|
| @@ -2315,9 +2187,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;}''');
|
| @@ -2358,9 +2228,7 @@ void f(C<int> c) {
|
|
|
| test_InterpolationExpression() async {
|
| // SimpleIdentifier InterpolationExpression StringInterpolation
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2389,9 +2257,7 @@ void f(C<int> c) {
|
|
|
| test_InterpolationExpression_block() async {
|
| // SimpleIdentifier InterpolationExpression StringInterpolation
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2457,9 +2323,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() {}}''');
|
| @@ -2531,9 +2395,7 @@ void f(C<int> c) {
|
| }
|
|
|
| test_keyword2() async {
|
| - addSource(
|
| - '/testB.dart',
|
| - '''
|
| + addSource('/testB.dart', '''
|
| lib B;
|
| int newT1;
|
| int T1;
|
| @@ -2652,9 +2514,7 @@ void f(C<int> c) {
|
|
|
| test_MapLiteralEntry() async {
|
| // MapLiteralEntry MapLiteral VariableDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2681,9 +2541,7 @@ void f(C<int> c) {
|
|
|
| test_MapLiteralEntry1() async {
|
| // MapLiteralEntry MapLiteral VariableDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2703,9 +2561,7 @@ void f(C<int> c) {
|
|
|
| test_MapLiteralEntry2() async {
|
| // SimpleIdentifier MapLiteralEntry MapLiteral VariableDeclaration
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2835,9 +2691,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_body_static() async {
|
| // Block BlockFunctionBody MethodDeclaration
|
| - addSource(
|
| - '/testC.dart',
|
| - '''
|
| + addSource('/testC.dart', '''
|
| class C {
|
| c1() {}
|
| var c2;
|
| @@ -2916,9 +2770,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2946,9 +2798,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType_afterComment() async {
|
| // ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -2976,9 +2826,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType_afterComment2() async {
|
| // MethodDeclaration ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -3006,9 +2854,7 @@ void main() {new C().^}''');
|
|
|
| test_MethodDeclaration_returnType_afterComment3() async {
|
| // MethodDeclaration ClassDeclaration CompilationUnit
|
| - addSource(
|
| - '/testA.dart',
|
| - '''
|
| + addSource('/testA.dart', '''
|
| int T1;
|
| F1() { }
|
| typedef D1();
|
| @@ -3205,16 +3051,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";
|
| @@ -3241,16 +3083,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('''
|
| @@ -3277,9 +3115,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';
|
| @@ -3325,9 +3161,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 {
|
| @@ -3403,9 +3237,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 { }
|
| @@ -3431,9 +3263,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 { }
|
| @@ -3459,9 +3289,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 { }
|
| @@ -3487,9 +3315,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 {}
|
| @@ -3507,9 +3333,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('''
|
| @@ -4078,9 +3902,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);''');
|
| @@ -4105,9 +3927,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);''');
|
| @@ -4128,9 +3948,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 { }
|
| @@ -4155,9 +3973,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 { }
|
| @@ -4181,9 +3997,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() { }
|
|
|