| 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.utilities_test; | 8 library engine.utilities_test; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 2744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2755 @override | 2755 @override |
| 2756 TypeArgumentList get(TypedLiteral node) => node.typeArguments; | 2756 TypeArgumentList get(TypedLiteral node) => node.typeArguments; |
| 2757 } | 2757 } |
| 2758 | 2758 |
| 2759 class Getter_NodeReplacerTest_testUriBasedDirective | 2759 class Getter_NodeReplacerTest_testUriBasedDirective |
| 2760 implements NodeReplacerTest_Getter { | 2760 implements NodeReplacerTest_Getter { |
| 2761 @override | 2761 @override |
| 2762 StringLiteral get(UriBasedDirective node) => node.uri; | 2762 StringLiteral get(UriBasedDirective node) => node.uri; |
| 2763 } | 2763 } |
| 2764 | 2764 |
| 2765 class Getter_NodeReplacerTest_test_yieldStatement |
| 2766 implements NodeReplacerTest_Getter { |
| 2767 @override |
| 2768 Expression get(YieldStatement node) => node.expression; |
| 2769 } |
| 2770 |
| 2765 @reflectiveTest | 2771 @reflectiveTest |
| 2766 class LineInfoTest { | 2772 class LineInfoTest { |
| 2767 void test_creation() { | 2773 void test_creation() { |
| 2768 expect(new LineInfo(<int>[0]), isNotNull); | 2774 expect(new LineInfo(<int>[0]), isNotNull); |
| 2769 } | 2775 } |
| 2770 | 2776 |
| 2771 void test_creation_empty() { | 2777 void test_creation_empty() { |
| 2772 try { | 2778 try { |
| 2773 new LineInfo(<int>[]); | 2779 new LineInfo(<int>[]); |
| 2774 fail("Expected IllegalArgumentException"); | 2780 fail("Expected IllegalArgumentException"); |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4085 } | 4091 } |
| 4086 | 4092 |
| 4087 void _testTypedLiteral(TypedLiteral node) { | 4093 void _testTypedLiteral(TypedLiteral node) { |
| 4088 _assertReplace(node, new Getter_NodeReplacerTest_testTypedLiteral()); | 4094 _assertReplace(node, new Getter_NodeReplacerTest_testTypedLiteral()); |
| 4089 } | 4095 } |
| 4090 | 4096 |
| 4091 void _testUriBasedDirective(UriBasedDirective node) { | 4097 void _testUriBasedDirective(UriBasedDirective node) { |
| 4092 _assertReplace(node, new Getter_NodeReplacerTest_testUriBasedDirective()); | 4098 _assertReplace(node, new Getter_NodeReplacerTest_testUriBasedDirective()); |
| 4093 _testAnnotatedNode(node); | 4099 _testAnnotatedNode(node); |
| 4094 } | 4100 } |
| 4101 |
| 4102 void test_yieldStatement() { |
| 4103 var node = AstFactory.yieldStatement(AstFactory.identifier3("A")); |
| 4104 _assertReplace(node, new Getter_NodeReplacerTest_test_yieldStatement()); |
| 4105 } |
| 4095 } | 4106 } |
| 4096 | 4107 |
| 4097 abstract class NodeReplacerTest_Getter<P, C> { | 4108 abstract class NodeReplacerTest_Getter<P, C> { |
| 4098 C get(P parent); | 4109 C get(P parent); |
| 4099 } | 4110 } |
| 4100 | 4111 |
| 4101 abstract class NodeReplacerTest_ListGetter<P extends AstNode, C extends AstNode> | 4112 abstract class NodeReplacerTest_ListGetter<P extends AstNode, C extends AstNode> |
| 4102 implements NodeReplacerTest_Getter<P, C> { | 4113 implements NodeReplacerTest_Getter<P, C> { |
| 4103 final int _index; | 4114 final int _index; |
| 4104 | 4115 |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4565 } | 4576 } |
| 4566 | 4577 |
| 4567 void test_get_added() { | 4578 void test_get_added() { |
| 4568 TokenMap tokenMap = new TokenMap(); | 4579 TokenMap tokenMap = new TokenMap(); |
| 4569 Token key = TokenFactory.tokenFromType(TokenType.AT); | 4580 Token key = TokenFactory.tokenFromType(TokenType.AT); |
| 4570 Token value = TokenFactory.tokenFromType(TokenType.AT); | 4581 Token value = TokenFactory.tokenFromType(TokenType.AT); |
| 4571 tokenMap.put(key, value); | 4582 tokenMap.put(key, value); |
| 4572 expect(tokenMap.get(key), same(value)); | 4583 expect(tokenMap.get(key), same(value)); |
| 4573 } | 4584 } |
| 4574 } | 4585 } |
| OLD | NEW |