| 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 ProcedureKind; | 7 import 'package:kernel/ast.dart' show ProcedureKind; |
| 8 | 8 |
| 9 import '../../scanner/token.dart' show Token; | 9 import '../../scanner/token.dart' show Token; |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 push(new MetadataBuilder.fromConstructor( | 111 push(new MetadataBuilder.fromConstructor( |
| 112 library.addConstructorReference( | 112 library.addConstructorReference( |
| 113 typeName, typeArguments, postfix, charOffset), | 113 typeName, typeArguments, postfix, charOffset), |
| 114 arguments, | 114 arguments, |
| 115 library, | 115 library, |
| 116 beginToken.charOffset)); | 116 beginToken.charOffset)); |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 | 119 |
| 120 @override | 120 @override |
| 121 void endMetadataStar(int count, bool forParameter) { |
| 122 debugEvent("MetadataStar"); |
| 123 push(popList(count) ?? NullValue.Metadata); |
| 124 } |
| 125 |
| 126 @override |
| 121 void endHide(Token hideKeyword) { | 127 void endHide(Token hideKeyword) { |
| 122 debugEvent("Hide"); | 128 debugEvent("Hide"); |
| 123 List<String> names = pop(); | 129 List<String> names = pop(); |
| 124 push(new Combinator.hide(names, hideKeyword.charOffset, library.fileUri)); | 130 push(new Combinator.hide(names, hideKeyword.charOffset, library.fileUri)); |
| 125 } | 131 } |
| 126 | 132 |
| 127 @override | 133 @override |
| 128 void endShow(Token showKeyword) { | 134 void endShow(Token showKeyword) { |
| 129 debugEvent("Show"); | 135 debugEvent("Show"); |
| 130 List<String> names = pop(); | 136 List<String> names = pop(); |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 docToken = docToken.next; | 958 docToken = docToken.next; |
| 953 } | 959 } |
| 954 return buffer.toString(); | 960 return buffer.toString(); |
| 955 } | 961 } |
| 956 | 962 |
| 957 @override | 963 @override |
| 958 void debugEvent(String name) { | 964 void debugEvent(String name) { |
| 959 // printEvent(name); | 965 // printEvent(name); |
| 960 } | 966 } |
| 961 } | 967 } |
| OLD | NEW |