| 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 AsyncMarker, ProcedureKind; | 7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind; |
| 8 | 8 |
| 9 import '../parser/parser.dart' show FormalParameterType, optional; | 9 import '../parser/parser.dart' show FormalParameterType, optional; |
| 10 | 10 |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 debugEvent("endTopLevelFields"); | 484 debugEvent("endTopLevelFields"); |
| 485 List<String> names = popList(count); | 485 List<String> names = popList(count); |
| 486 TypeBuilder type = pop(); | 486 TypeBuilder type = pop(); |
| 487 int modifiers = Modifier.validate(pop()); | 487 int modifiers = Modifier.validate(pop()); |
| 488 List<MetadataBuilder> metadata = pop(); | 488 List<MetadataBuilder> metadata = pop(); |
| 489 library.addFields(metadata, modifiers, type, names); | 489 library.addFields(metadata, modifiers, type, names); |
| 490 checkEmpty(beginToken.charOffset); | 490 checkEmpty(beginToken.charOffset); |
| 491 } | 491 } |
| 492 | 492 |
| 493 @override | 493 @override |
| 494 void endFields(int count, Token beginToken, Token endToken) { | 494 void endFields( |
| 495 int count, Token covariantToken, Token beginToken, Token endToken) { |
| 495 debugEvent("Fields"); | 496 debugEvent("Fields"); |
| 496 List<String> names = popList(count); | 497 List<String> names = popList(count); |
| 497 TypeBuilder type = pop(); | 498 TypeBuilder type = pop(); |
| 498 int modifiers = Modifier.validate(pop()); | 499 int modifiers = Modifier.validate(pop()); |
| 499 List<MetadataBuilder> metadata = pop(); | 500 List<MetadataBuilder> metadata = pop(); |
| 500 library.addFields(metadata, modifiers, type, names); | 501 library.addFields(metadata, modifiers, type, names); |
| 501 } | 502 } |
| 502 | 503 |
| 503 @override | 504 @override |
| 504 void endTypeVariable(Token token, Token extendsOrSuper) { | 505 void endTypeVariable(Token token, Token extendsOrSuper) { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 Link<Token> handleMemberName(Link<Token> identifiers) { | 624 Link<Token> handleMemberName(Link<Token> identifiers) { |
| 624 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 625 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
| 625 return removeNativeClause(identifiers); | 626 return removeNativeClause(identifiers); |
| 626 } | 627 } |
| 627 | 628 |
| 628 @override | 629 @override |
| 629 void debugEvent(String name) { | 630 void debugEvent(String name) { |
| 630 // printEvent(name); | 631 // printEvent(name); |
| 631 } | 632 } |
| 632 } | 633 } |
| OLD | NEW |