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:analyzer/dart/ast/token.dart' as analyzer; | 5 import 'package:analyzer/dart/ast/token.dart' as analyzer; |
6 import 'package:analyzer/src/generated/parser.dart' as analyzer; | 6 import 'package:analyzer/src/generated/parser.dart' as analyzer; |
7 import 'package:front_end/src/fasta/fasta_codes.dart'; | 7 import 'package:front_end/src/fasta/fasta_codes.dart'; |
8 import 'package:front_end/src/fasta/parser/identifier_context.dart' | 8 import 'package:front_end/src/fasta/parser/identifier_context.dart' |
9 show IdentifierContext; | 9 show IdentifierContext; |
10 import 'package:front_end/src/fasta/parser/listener.dart' as fasta; | 10 import 'package:front_end/src/fasta/parser.dart' as fasta; |
11 import 'package:front_end/src/fasta/parser/parser.dart' as fasta; | |
12 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; | 11 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; |
13 import 'package:front_end/src/fasta/util/link.dart'; | 12 import 'package:front_end/src/fasta/util/link.dart'; |
14 import 'package:front_end/src/scanner/token.dart'; | 13 import 'package:front_end/src/scanner/token.dart'; |
15 import 'package:test/test.dart'; | 14 import 'package:test/test.dart'; |
16 | 15 |
17 /** | 16 /** |
18 * Proxy implementation of the fasta parser listener that | 17 * Proxy implementation of the fasta parser listener that |
19 * asserts begin/end pairs of events and forwards all events | 18 * asserts begin/end pairs of events and forwards all events |
20 * to the specified listener. | 19 * to the specified listener. |
21 */ | 20 */ |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 } | 759 } |
761 | 760 |
762 @override | 761 @override |
763 void endForStatementBody(analyzer.Token token) { | 762 void endForStatementBody(analyzer.Token token) { |
764 _end('ForStatementBody'); | 763 _end('ForStatementBody'); |
765 listener.endForStatementBody(token); | 764 listener.endForStatementBody(token); |
766 } | 765 } |
767 | 766 |
768 @override | 767 @override |
769 void endFormalParameter(analyzer.Token thisKeyword, analyzer.Token nameToken, | 768 void endFormalParameter(analyzer.Token thisKeyword, analyzer.Token nameToken, |
770 fasta.FormalParameterType kind, fasta.MemberKind memberKind) { | 769 fasta.FormalParameterKind kind, fasta.MemberKind memberKind) { |
771 _end('FormalParameter'); | 770 _end('FormalParameter'); |
772 listener.endFormalParameter(thisKeyword, nameToken, kind, memberKind); | 771 listener.endFormalParameter(thisKeyword, nameToken, kind, memberKind); |
773 } | 772 } |
774 | 773 |
775 @override | 774 @override |
776 void endFormalParameters(int count, analyzer.Token beginToken, | 775 void endFormalParameters(int count, analyzer.Token beginToken, |
777 analyzer.Token endToken, fasta.MemberKind kind) { | 776 analyzer.Token endToken, fasta.MemberKind kind) { |
778 _end('FormalParameters'); | 777 _end('FormalParameters'); |
779 listener.endFormalParameters(count, beginToken, endToken, kind); | 778 listener.endFormalParameters(count, beginToken, endToken, kind); |
780 } | 779 } |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 @override | 1561 @override |
1563 set suppressParseErrors(bool value) { | 1562 set suppressParseErrors(bool value) { |
1564 listener.suppressParseErrors = value; | 1563 listener.suppressParseErrors = value; |
1565 // TODO(danrubel): implement suppressParseErrors | 1564 // TODO(danrubel): implement suppressParseErrors |
1566 } | 1565 } |
1567 | 1566 |
1568 // TODO(danrubel): implement uri | 1567 // TODO(danrubel): implement uri |
1569 @override | 1568 @override |
1570 Uri get uri => listener.uri; | 1569 Uri get uri => listener.uri; |
1571 } | 1570 } |
OLD | NEW |