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/fasta/ast_builder.dart'; | 9 import 'package:analyzer/src/fasta/ast_builder.dart'; |
10 import 'package:analyzer/src/fasta/element_store.dart'; | 10 import 'package:analyzer/src/fasta/element_store.dart'; |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 */ | 765 */ |
766 class KernelLibraryBuilderProxy implements KernelLibraryBuilder { | 766 class KernelLibraryBuilderProxy implements KernelLibraryBuilder { |
767 @override | 767 @override |
768 final uri = Uri.parse('file:///test.dart'); | 768 final uri = Uri.parse('file:///test.dart'); |
769 | 769 |
770 @override | 770 @override |
771 Uri get fileUri => uri; | 771 Uri get fileUri => uri; |
772 | 772 |
773 @override | 773 @override |
774 void addCompileTimeError(int charOffset, Object message, | 774 void addCompileTimeError(int charOffset, Object message, |
775 {Uri fileUri, bool silent: false}) { | 775 {Uri fileUri, bool silent: false, bool wasHandled: false}) { |
776 fail('$message'); | 776 fail('$message'); |
777 } | 777 } |
778 | 778 |
779 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 779 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
780 } | 780 } |
781 | 781 |
782 /** | 782 /** |
783 * Proxy implementation of the analyzer parser, implemented in terms of the | 783 * Proxy implementation of the analyzer parser, implemented in terms of the |
784 * Fasta parser. | 784 * Fasta parser. |
785 * | 785 * |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 } | 996 } |
997 | 997 |
998 @override | 998 @override |
999 @failingTest | 999 @failingTest |
1000 void test_parsePartOfDirective_uri() { | 1000 void test_parsePartOfDirective_uri() { |
1001 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by | 1001 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by |
1002 // Fasta. | 1002 // Fasta. |
1003 super.test_parsePartOfDirective_uri(); | 1003 super.test_parsePartOfDirective_uri(); |
1004 } | 1004 } |
1005 } | 1005 } |
OLD | NEW |