Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: pkg/front_end/lib/src/fasta/source/outline_builder.dart

Issue 2998933002: move endMetadataStar (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/unhandled_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698