| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser_test; | 8 library engine.parser_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2595 void test_insert_end() { | 2595 void test_insert_end() { |
| 2596 // "class A {}" | 2596 // "class A {}" |
| 2597 // "class A {} class B {}" | 2597 // "class A {} class B {}" |
| 2598 _assertParse("class A {}", "", " class B {}", ""); | 2598 _assertParse("class A {}", "", " class B {}", ""); |
| 2599 } | 2599 } |
| 2600 | 2600 |
| 2601 void test_insert_final_before_field_declaration() { | 2601 void test_insert_final_before_field_declaration() { |
| 2602 _assertParse('class C { ', '', 'final ', 'int x; }'); | 2602 _assertParse('class C { ', '', 'final ', 'int x; }'); |
| 2603 } | 2603 } |
| 2604 | 2604 |
| 2605 void test_insert_function_parameter() { |
| 2606 _assertParse('class C { void f(', '', 'arg', ') {} }'); |
| 2607 } |
| 2608 |
| 2605 void test_insert_insideClassBody() { | 2609 void test_insert_insideClassBody() { |
| 2606 // "class C {C(); }" | 2610 // "class C {C(); }" |
| 2607 // "class C { C(); }" | 2611 // "class C { C(); }" |
| 2608 _assertParse("class C {", "", " ", "C(); }"); | 2612 _assertParse("class C {", "", " ", "C(); }"); |
| 2609 } | 2613 } |
| 2610 | 2614 |
| 2611 void test_insert_insideIdentifier() { | 2615 void test_insert_insideIdentifier() { |
| 2612 // "f() => cob;" | 2616 // "f() => cob;" |
| 2613 // "f() => cow.b;" | 2617 // "f() => cow.b;" |
| 2614 _assertParse("f() => co", "", "w.", "b;"); | 2618 _assertParse("f() => co", "", "w.", "b;"); |
| (...skipping 8221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10836 // Parse the source. | 10840 // Parse the source. |
| 10837 // | 10841 // |
| 10838 Parser parser = new Parser(null, listener); | 10842 Parser parser = new Parser(null, listener); |
| 10839 return invokeParserMethodImpl( | 10843 return invokeParserMethodImpl( |
| 10840 parser, | 10844 parser, |
| 10841 methodName, | 10845 methodName, |
| 10842 <Object>[tokenStream], | 10846 <Object>[tokenStream], |
| 10843 tokenStream) as Token; | 10847 tokenStream) as Token; |
| 10844 } | 10848 } |
| 10845 } | 10849 } |
| OLD | NEW |