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

Side by Side Diff: pkg/analyzer/tool/summary/mini_ast.dart

Issue 2975823002: Remove all deprecated fasta message methods from analyzer. (Closed)
Patch Set: 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
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:front_end/src/fasta/deprecated_problems.dart' 5 import 'package:front_end/src/fasta/problems.dart'
6 show deprecated_internalProblem; 6 show internalProblem, unsupported;
7 import 'package:front_end/src/fasta/messages.dart' show Message; 7 import 'package:front_end/src/fasta/messages.dart' show Message;
8 import 'package:front_end/src/fasta/parser/identifier_context.dart'; 8 import 'package:front_end/src/fasta/parser/identifier_context.dart';
9 import 'package:front_end/src/fasta/parser/parser.dart'; 9 import 'package:front_end/src/fasta/parser/parser.dart';
10 import 'package:front_end/src/fasta/source/stack_listener.dart'; 10 import 'package:front_end/src/fasta/source/stack_listener.dart';
11 import 'package:front_end/src/scanner/token.dart'; 11 import 'package:front_end/src/scanner/token.dart';
12 12
13 /// "Mini AST" representation of a declaration which can accept annotations. 13 /// "Mini AST" representation of a declaration which can accept annotations.
14 class AnnotatedNode { 14 class AnnotatedNode {
15 final Comment documentationComment; 15 final Comment documentationComment;
16 16
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 class MiniAstBuilder extends StackListener { 151 class MiniAstBuilder extends StackListener {
152 bool inMetadata = false; 152 bool inMetadata = false;
153 153
154 final compilationUnit = new CompilationUnit(); 154 final compilationUnit = new CompilationUnit();
155 155
156 @override 156 @override
157 Uri get uri => null; 157 Uri get uri => null;
158 158
159 @override 159 @override
160 void addCompileTimeError(Message message, int charOffset) { 160 void addCompileTimeError(Message message, int charOffset) {
161 deprecated_internalProblem(message.message, uri, charOffset); 161 internalProblem(message, charOffset, uri);
162 } 162 }
163 163
164 @override 164 @override
165 void beginMetadata(Token token) { 165 void beginMetadata(Token token) {
166 inMetadata = true; 166 inMetadata = true;
167 } 167 }
168 168
169 @override 169 @override
170 void beginMetadataStar(Token token) { 170 void beginMetadataStar(Token token) {
171 debugEvent("beginMetadataStar"); 171 debugEvent("beginMetadataStar");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 @override 209 @override
210 void endCombinators(int count) { 210 void endCombinators(int count) {
211 debugEvent("Combinators"); 211 debugEvent("Combinators");
212 } 212 }
213 213
214 @override 214 @override
215 void endConditionalUris(int count) { 215 void endConditionalUris(int count) {
216 debugEvent("ConditionalUris"); 216 debugEvent("ConditionalUris");
217 if (count != 0) { 217 if (count != 0) {
218 deprecated_internalProblem( 218 unsupported("Conditional URIs", -1, null);
219 'Conditional URIs are not supported by summary codegen');
220 } 219 }
221 } 220 }
222 221
223 @override 222 @override
224 void endConstructorReference( 223 void endConstructorReference(
225 Token start, Token periodBeforeName, Token endToken) { 224 Token start, Token periodBeforeName, Token endToken) {
226 debugEvent("ConstructorReference"); 225 debugEvent("ConstructorReference");
227 String constructorName = popIfNotNull(periodBeforeName); 226 String constructorName = popIfNotNull(periodBeforeName);
228 pop(); // Type arguments 227 pop(); // Type arguments
229 String name = pop(); 228 String name = pop();
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 final String name; 471 final String name;
473 472
474 final List<TypeName> typeArguments; 473 final List<TypeName> typeArguments;
475 474
476 TypeName(this.name, this.typeArguments); 475 TypeName(this.name, this.typeArguments);
477 } 476 }
478 477
479 /// "Mini AST" representation of an expression which summary code generation 478 /// "Mini AST" representation of an expression which summary code generation
480 /// need not be concerned about. 479 /// need not be concerned about.
481 class UnknownExpression extends Expression {} 480 class UnknownExpression extends Expression {}
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/mock_type.dart ('k') | pkg/front_end/lib/src/fasta/fasta_codes_generated.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698