| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library fasta.outline_builder; | 5 library fasta.outline_builder; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' show | 7 import 'package:kernel/ast.dart' show |
| 8 AsyncMarker, | 8 AsyncMarker, |
| 9 ProcedureKind; | 9 ProcedureKind; |
| 10 | 10 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 push(popList(count) ?? NullValue.TypeVariables); | 365 push(popList(count) ?? NullValue.TypeVariables); |
| 366 } | 366 } |
| 367 | 367 |
| 368 @override | 368 @override |
| 369 void handleVoidKeyword(Token token) { | 369 void handleVoidKeyword(Token token) { |
| 370 debugEvent("VoidKeyword"); | 370 debugEvent("VoidKeyword"); |
| 371 push(library.addVoidType(token.charOffset)); | 371 push(library.addVoidType(token.charOffset)); |
| 372 } | 372 } |
| 373 | 373 |
| 374 @override | 374 @override |
| 375 void endFormalParameter(Token thisKeyword) { | 375 void endFormalParameter(Token thisKeyword, Token period) { |
| 376 debugEvent("FormalParameter"); | 376 debugEvent("FormalParameter"); |
| 377 String name = pop(); | 377 String name = pop(); |
| 378 TypeBuilder type = pop(); | 378 TypeBuilder type = pop(); |
| 379 int modifiers = Modifier.validate(pop()); | 379 int modifiers = Modifier.validate(pop()); |
| 380 List<MetadataBuilder> metadata = pop(); | 380 List<MetadataBuilder> metadata = pop(); |
| 381 // TODO(ahe): Needs begin token. | 381 // TODO(ahe): Needs begin token. |
| 382 push(library.addFormalParameter(metadata, modifiers, type, name, | 382 push(library.addFormalParameter(metadata, modifiers, type, name, |
| 383 thisKeyword != null, thisKeyword?.charOffset ?? -1)); | 383 thisKeyword != null, thisKeyword?.charOffset ?? -1)); |
| 384 } | 384 } |
| 385 | 385 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 Link<Token> handleMemberName(Link<Token> identifiers) { | 616 Link<Token> handleMemberName(Link<Token> identifiers) { |
| 617 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 617 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
| 618 return removeNativeClause(identifiers); | 618 return removeNativeClause(identifiers); |
| 619 } | 619 } |
| 620 | 620 |
| 621 @override | 621 @override |
| 622 void debugEvent(String name) { | 622 void debugEvent(String name) { |
| 623 // printEvent(name); | 623 // printEvent(name); |
| 624 } | 624 } |
| 625 } | 625 } |
| OLD | NEW |