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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 int modifiers = Modifier.validate(pop()); | 565 int modifiers = Modifier.validate(pop()); |
566 List<MetadataBuilder> metadata = pop(); | 566 List<MetadataBuilder> metadata = pop(); |
567 library.addFields(metadata, modifiers, type, names); | 567 library.addFields(metadata, modifiers, type, names); |
568 } | 568 } |
569 | 569 |
570 @override | 570 @override |
571 void endTypeVariable(Token token, Token extendsOrSuper) { | 571 void endTypeVariable(Token token, Token extendsOrSuper) { |
572 debugEvent("endTypeVariable"); | 572 debugEvent("endTypeVariable"); |
573 TypeBuilder bound = pop(); | 573 TypeBuilder bound = pop(); |
574 String name = pop(); | 574 String name = pop(); |
| 575 // TODO(paulberry): type variable metadata should not be ignored. See |
| 576 // dartbug.com/28981. |
| 577 /* List<MetadataBuilder> metadata = */ pop(); |
575 push(library.addTypeVariable(name, bound, token.charOffset)); | 578 push(library.addTypeVariable(name, bound, token.charOffset)); |
576 } | 579 } |
577 | 580 |
578 @override | 581 @override |
579 void endPartOf(Token partKeyword, Token semicolon) { | 582 void endPartOf(Token partKeyword, Token semicolon) { |
580 debugEvent("endPartOf"); | 583 debugEvent("endPartOf"); |
581 String name = pop(); | 584 String name = pop(); |
582 List<MetadataBuilder> metadata = pop(); | 585 List<MetadataBuilder> metadata = pop(); |
583 library.addPartOf(metadata, name); | 586 library.addPartOf(metadata, name); |
584 } | 587 } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 Link<Token> handleMemberName(Link<Token> identifiers) { | 703 Link<Token> handleMemberName(Link<Token> identifiers) { |
701 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 704 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
702 return removeNativeClause(identifiers); | 705 return removeNativeClause(identifiers); |
703 } | 706 } |
704 | 707 |
705 @override | 708 @override |
706 void debugEvent(String name) { | 709 void debugEvent(String name) { |
707 // printEvent(name); | 710 // printEvent(name); |
708 } | 711 } |
709 } | 712 } |
OLD | NEW |