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:front_end/src/fasta/problems.dart' | 5 import 'package:front_end/src/fasta/problems.dart' |
6 show internalProblem, unsupported; | 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'; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 pop(); // Type variables | 333 pop(); // Type variables |
334 String name = pop(); | 334 String name = pop(); |
335 TypeName returnType = pop(); | 335 TypeName returnType = pop(); |
336 List<Annotation> metadata = pop(); | 336 List<Annotation> metadata = pop(); |
337 Comment comment = pop(); | 337 Comment comment = pop(); |
338 push(new MethodDeclaration( | 338 push(new MethodDeclaration( |
339 comment, metadata, getOrSet?.lexeme == 'get', name, returnType)); | 339 comment, metadata, getOrSet?.lexeme == 'get', name, returnType)); |
340 } | 340 } |
341 | 341 |
342 @override | 342 @override |
343 void endSend(Token beginToken, Token endToken) { | 343 void handleSend(Token beginToken, Token endToken) { |
344 debugEvent("Send"); | 344 debugEvent("Send"); |
345 pop(); // Arguments | 345 pop(); // Arguments |
346 pop(); // Type arguments | 346 pop(); // Type arguments |
347 pop(); // Receiver | 347 pop(); // Receiver |
348 push(new UnknownExpression()); | 348 push(new UnknownExpression()); |
349 } | 349 } |
350 | 350 |
351 @override | 351 @override |
352 void endShow(Token showKeyword) { | 352 void endShow(Token showKeyword) { |
353 debugEvent("Show"); | 353 debugEvent("Show"); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 final String name; | 471 final String name; |
472 | 472 |
473 final List<TypeName> typeArguments; | 473 final List<TypeName> typeArguments; |
474 | 474 |
475 TypeName(this.name, this.typeArguments); | 475 TypeName(this.name, this.typeArguments); |
476 } | 476 } |
477 | 477 |
478 /// "Mini AST" representation of an expression which summary code generation | 478 /// "Mini AST" representation of an expression which summary code generation |
479 /// need not be concerned about. | 479 /// need not be concerned about. |
480 class UnknownExpression extends Expression {} | 480 class UnknownExpression extends Expression {} |
OLD | NEW |