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

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

Issue 2977693002: Remove deprecated methods from ClassBuilder. (Closed)
Patch Set: Spelling of unnamed. 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 | « no previous file | pkg/front_end/lib/src/fasta/builder/class_builder.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';
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698