OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:front_end/src/fasta/fasta_codes.dart'; | 5 import 'package:front_end/src/fasta/fasta_codes.dart'; |
6 import 'package:front_end/src/fasta/parser/identifier_context.dart' | 6 import 'package:front_end/src/fasta/parser/identifier_context.dart' |
7 show IdentifierContext; | 7 show IdentifierContext; |
8 import 'package:front_end/src/fasta/parser.dart' as fasta; | 8 import 'package:front_end/src/fasta/parser.dart' as fasta; |
9 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; | 9 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; |
10 import 'package:front_end/src/fasta/util/link.dart'; | 10 import 'package:front_end/src/fasta/util/link.dart'; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 void end(String event) { | 54 void end(String event) { |
55 expectIn(event); | 55 expectIn(event); |
56 _stack.removeLast(); | 56 _stack.removeLast(); |
57 } | 57 } |
58 | 58 |
59 ForwardingTestListener(this.listener); | 59 ForwardingTestListener(this.listener); |
60 | 60 |
61 @override | 61 @override |
| 62 Uri get uri => listener.uri; |
| 63 |
| 64 @override |
62 void beginArguments(Token token) { | 65 void beginArguments(Token token) { |
63 listener.beginArguments(token); | 66 listener.beginArguments(token); |
64 begin('Arguments'); | 67 begin('Arguments'); |
65 } | 68 } |
66 | 69 |
67 @override | 70 @override |
68 void beginAssert(Token assertKeyword, fasta.Assert kind) { | 71 void beginAssert(Token assertKeyword, fasta.Assert kind) { |
69 listener.beginAssert(assertKeyword, kind); | 72 listener.beginAssert(assertKeyword, kind); |
70 begin('Assert'); | 73 begin('Assert'); |
71 } | 74 } |
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 return listener.replaceTokenWithGenericCommentTypeAssign( | 1545 return listener.replaceTokenWithGenericCommentTypeAssign( |
1543 tokenToStartReplacing, tokenWithComment); | 1546 tokenToStartReplacing, tokenWithComment); |
1544 // TODO(danrubel): implement replaceTokenWithGenericCommentTypeAssign | 1547 // TODO(danrubel): implement replaceTokenWithGenericCommentTypeAssign |
1545 } | 1548 } |
1546 | 1549 |
1547 @override | 1550 @override |
1548 set suppressParseErrors(bool value) { | 1551 set suppressParseErrors(bool value) { |
1549 listener.suppressParseErrors = value; | 1552 listener.suppressParseErrors = value; |
1550 // TODO(danrubel): implement suppressParseErrors | 1553 // TODO(danrubel): implement suppressParseErrors |
1551 } | 1554 } |
1552 | |
1553 // TODO(danrubel): implement uri | |
1554 @override | |
1555 Uri get uri => listener.uri; | |
1556 } | 1555 } |
OLD | NEW |