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/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
6 import 'package:analyzer/dart/ast/token.dart' as analyzer; | 6 import 'package:analyzer/dart/ast/token.dart' as analyzer; |
7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
8 import 'package:analyzer/error/error.dart'; | 8 import 'package:analyzer/error/error.dart'; |
9 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 9 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
10 import 'package:analyzer/src/fasta/ast_builder.dart'; | 10 import 'package:analyzer/src/fasta/ast_builder.dart'; |
11 import 'package:analyzer/src/fasta/element_store.dart'; | 11 import 'package:analyzer/src/fasta/element_store.dart'; |
12 import 'package:analyzer/src/generated/parser.dart' as analyzer; | 12 import 'package:analyzer/src/generated/parser.dart' as analyzer; |
13 import 'package:analyzer/src/generated/utilities_dart.dart'; | 13 import 'package:analyzer/src/generated/utilities_dart.dart'; |
14 import 'package:analyzer/src/string_source.dart'; | 14 import 'package:analyzer/src/string_source.dart'; |
| 15 import 'package:front_end/src/fasta/fasta_codes.dart' show Message; |
15 import 'package:front_end/src/fasta/kernel/kernel_builder.dart'; | 16 import 'package:front_end/src/fasta/kernel/kernel_builder.dart'; |
16 import 'package:front_end/src/fasta/kernel/kernel_library_builder.dart'; | 17 import 'package:front_end/src/fasta/kernel/kernel_library_builder.dart'; |
17 import 'package:front_end/src/fasta/parser/identifier_context.dart' | 18 import 'package:front_end/src/fasta/parser/identifier_context.dart' |
18 show IdentifierContext; | 19 show IdentifierContext; |
19 import 'package:front_end/src/fasta/parser/parser.dart' as fasta; | 20 import 'package:front_end/src/fasta/parser/parser.dart' as fasta; |
20 import 'package:front_end/src/fasta/scanner/string_scanner.dart'; | 21 import 'package:front_end/src/fasta/scanner/string_scanner.dart'; |
21 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; | 22 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; |
22 import 'package:test/test.dart'; | 23 import 'package:test/test.dart'; |
23 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 24 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
24 | 25 |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 | 790 |
790 @override | 791 @override |
791 Uri get fileUri => uri; | 792 Uri get fileUri => uri; |
792 | 793 |
793 @override | 794 @override |
794 void deprecated_addCompileTimeError(int charOffset, Object message, | 795 void deprecated_addCompileTimeError(int charOffset, Object message, |
795 {Uri fileUri, bool silent: false, bool wasHandled: false}) { | 796 {Uri fileUri, bool silent: false, bool wasHandled: false}) { |
796 fail('$message'); | 797 fail('$message'); |
797 } | 798 } |
798 | 799 |
| 800 @override |
| 801 void addCompileTimeError(Message message, int charOffset, Uri uri, |
| 802 {bool silent: false, bool wasHandled: false}) { |
| 803 fail('${message.message}'); |
| 804 } |
| 805 |
799 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 806 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
800 } | 807 } |
801 | 808 |
802 /** | 809 /** |
803 * Proxy implementation of the analyzer parser, implemented in terms of the | 810 * Proxy implementation of the analyzer parser, implemented in terms of the |
804 * Fasta parser. | 811 * Fasta parser. |
805 * | 812 * |
806 * This allows many of the analyzer parser tests to be run on Fasta, even if | 813 * This allows many of the analyzer parser tests to be run on Fasta, even if |
807 * they call into the analyzer parser class directly. | 814 * they call into the analyzer parser class directly. |
808 */ | 815 */ |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 } | 1023 } |
1017 | 1024 |
1018 @override | 1025 @override |
1019 @failingTest | 1026 @failingTest |
1020 void test_parsePartOfDirective_uri() { | 1027 void test_parsePartOfDirective_uri() { |
1021 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by | 1028 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by |
1022 // Fasta. | 1029 // Fasta. |
1023 super.test_parsePartOfDirective_uri(); | 1030 super.test_parsePartOfDirective_uri(); |
1024 } | 1031 } |
1025 } | 1032 } |
OLD | NEW |