| 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'; |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 * tests. | 785 * tests. |
| 786 */ | 786 */ |
| 787 class KernelLibraryBuilderProxy implements KernelLibraryBuilder { | 787 class KernelLibraryBuilderProxy implements KernelLibraryBuilder { |
| 788 @override | 788 @override |
| 789 final uri = Uri.parse('file:///test.dart'); | 789 final uri = Uri.parse('file:///test.dart'); |
| 790 | 790 |
| 791 @override | 791 @override |
| 792 Uri get fileUri => uri; | 792 Uri get fileUri => uri; |
| 793 | 793 |
| 794 @override | 794 @override |
| 795 void deprecated_addCompileTimeError(int charOffset, Object message, | |
| 796 {Uri fileUri, bool silent: false, bool wasHandled: false}) { | |
| 797 fail('$message'); | |
| 798 } | |
| 799 | |
| 800 @override | |
| 801 void addCompileTimeError(Message message, int charOffset, Uri uri, | 795 void addCompileTimeError(Message message, int charOffset, Uri uri, |
| 802 {bool silent: false, bool wasHandled: false}) { | 796 {bool silent: false, bool wasHandled: false}) { |
| 803 fail('${message.message}'); | 797 fail('${message.message}'); |
| 804 } | 798 } |
| 805 | 799 |
| 806 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 800 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 807 } | 801 } |
| 808 | 802 |
| 809 /** | 803 /** |
| 810 * Proxy implementation of the analyzer parser, implemented in terms of the | 804 * Proxy implementation of the analyzer parser, implemented in terms of the |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 } | 1017 } |
| 1024 | 1018 |
| 1025 @override | 1019 @override |
| 1026 @failingTest | 1020 @failingTest |
| 1027 void test_parsePartOfDirective_uri() { | 1021 void test_parsePartOfDirective_uri() { |
| 1028 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by | 1022 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by |
| 1029 // Fasta. | 1023 // Fasta. |
| 1030 super.test_parsePartOfDirective_uri(); | 1024 super.test_parsePartOfDirective_uri(); |
| 1031 } | 1025 } |
| 1032 } | 1026 } |
| OLD | NEW |