Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: pkg/analyzer/test/generated/parser_fasta_test.dart

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: Merged with 4df146dd9a465d63344330bf3e45524b927c92ec Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/fasta/mock_type.dart ('k') | pkg/analyzer/tool/summary/mini_ast.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 * tests. 784 * tests.
785 */ 785 */
786 class KernelLibraryBuilderProxy implements KernelLibraryBuilder { 786 class KernelLibraryBuilderProxy implements KernelLibraryBuilder {
787 @override 787 @override
788 final uri = Uri.parse('file:///test.dart'); 788 final uri = Uri.parse('file:///test.dart');
789 789
790 @override 790 @override
791 Uri get fileUri => uri; 791 Uri get fileUri => uri;
792 792
793 @override 793 @override
794 void addCompileTimeError(int charOffset, Object message, 794 void deprecated_addCompileTimeError(int charOffset, Object message,
795 {Uri fileUri, bool silent: false, bool wasHandled: false}) { 795 {Uri fileUri, bool silent: false, bool wasHandled: false}) {
796 fail('$message'); 796 fail('$message');
797 } 797 }
798 798
799 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 799 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
800 } 800 }
801 801
802 /** 802 /**
803 * Proxy implementation of the analyzer parser, implemented in terms of the 803 * Proxy implementation of the analyzer parser, implemented in terms of the
804 * Fasta parser. 804 * Fasta parser.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 } 1016 }
1017 1017
1018 @override 1018 @override
1019 @failingTest 1019 @failingTest
1020 void test_parsePartOfDirective_uri() { 1020 void test_parsePartOfDirective_uri() {
1021 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by 1021 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by
1022 // Fasta. 1022 // Fasta.
1023 super.test_parsePartOfDirective_uri(); 1023 super.test_parsePartOfDirective_uri();
1024 } 1024 }
1025 } 1025 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/mock_type.dart ('k') | pkg/analyzer/tool/summary/mini_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698