| 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/listener.dart' as fasta; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 _begin('FormalParameter'); | 232 _begin('FormalParameter'); |
| 233 } | 233 } |
| 234 | 234 |
| 235 @override | 235 @override |
| 236 void beginFormalParameters(analyzer.Token token, fasta.MemberKind kind) { | 236 void beginFormalParameters(analyzer.Token token, fasta.MemberKind kind) { |
| 237 listener.beginFormalParameters(token, kind); | 237 listener.beginFormalParameters(token, kind); |
| 238 _begin('FormalParameters'); | 238 _begin('FormalParameters'); |
| 239 } | 239 } |
| 240 | 240 |
| 241 @override | 241 @override |
| 242 void beginFunctionDeclaration(analyzer.Token token) { | 242 void beginLocalFunctionDeclaration(analyzer.Token token) { |
| 243 listener.beginFunctionDeclaration(token); | 243 listener.beginLocalFunctionDeclaration(token); |
| 244 _begin('FunctionDeclaration'); | 244 _begin('LocalFunctionDeclaration'); |
| 245 } | 245 } |
| 246 | 246 |
| 247 @override | 247 @override |
| 248 void beginFunctionExpression(analyzer.Token token) { | 248 void beginFunctionExpression(analyzer.Token token) { |
| 249 listener.beginFunctionExpression(token); | 249 listener.beginFunctionExpression(token); |
| 250 _begin('FunctionExpression'); | 250 _begin('FunctionExpression'); |
| 251 } | 251 } |
| 252 | 252 |
| 253 @override | 253 @override |
| 254 void beginFunctionName(analyzer.Token token) { | 254 void beginFunctionName(analyzer.Token token) { |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 } | 773 } |
| 774 | 774 |
| 775 @override | 775 @override |
| 776 void endFormalParameters(int count, analyzer.Token beginToken, | 776 void endFormalParameters(int count, analyzer.Token beginToken, |
| 777 analyzer.Token endToken, fasta.MemberKind kind) { | 777 analyzer.Token endToken, fasta.MemberKind kind) { |
| 778 _end('FormalParameters'); | 778 _end('FormalParameters'); |
| 779 listener.endFormalParameters(count, beginToken, endToken, kind); | 779 listener.endFormalParameters(count, beginToken, endToken, kind); |
| 780 } | 780 } |
| 781 | 781 |
| 782 @override | 782 @override |
| 783 void endFunctionDeclaration(analyzer.Token endToken) { | 783 void endLocalFunctionDeclaration(analyzer.Token endToken) { |
| 784 _end('FunctionDeclaration'); | 784 _end('LocalFunctionDeclaration'); |
| 785 listener.endFunctionDeclaration(endToken); | 785 listener.endLocalFunctionDeclaration(endToken); |
| 786 } | 786 } |
| 787 | 787 |
| 788 @override | 788 @override |
| 789 void endFunctionExpression(analyzer.Token beginToken, analyzer.Token token) { | 789 void endFunctionExpression(analyzer.Token beginToken, analyzer.Token token) { |
| 790 _end('FunctionExpression'); | 790 _end('FunctionExpression'); |
| 791 listener.endFunctionExpression(beginToken, token); | 791 listener.endFunctionExpression(beginToken, token); |
| 792 } | 792 } |
| 793 | 793 |
| 794 @override | 794 @override |
| 795 void endFunctionName(analyzer.Token beginToken, analyzer.Token token) { | 795 void endFunctionName(analyzer.Token beginToken, analyzer.Token token) { |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 @override | 1562 @override |
| 1563 set suppressParseErrors(bool value) { | 1563 set suppressParseErrors(bool value) { |
| 1564 listener.suppressParseErrors = value; | 1564 listener.suppressParseErrors = value; |
| 1565 // TODO(danrubel): implement suppressParseErrors | 1565 // TODO(danrubel): implement suppressParseErrors |
| 1566 } | 1566 } |
| 1567 | 1567 |
| 1568 // TODO(danrubel): implement uri | 1568 // TODO(danrubel): implement uri |
| 1569 @override | 1569 @override |
| 1570 Uri get uri => listener.uri; | 1570 Uri get uri => listener.uri; |
| 1571 } | 1571 } |
| OLD | NEW |