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

Side by Side Diff: lib/compiler/implementation/scanner/class_element_parser.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of scanner;
6
5 class ClassElementParser extends PartialParser { 7 class ClassElementParser extends PartialParser {
6 ClassElementParser(Listener listener) : super(listener); 8 ClassElementParser(Listener listener) : super(listener);
7 9
8 Token parseClassBody(Token token) => fullParseClassBody(token); 10 Token parseClassBody(Token token) => fullParseClassBody(token);
9 } 11 }
10 12
11 class PartialClassElement extends ClassElement { 13 class PartialClassElement extends ClassElement {
12 final Token beginToken; 14 final Token beginToken;
13 final Token endToken; 15 final Token endToken;
14 ClassNode cachedNode; 16 ClassNode cachedNode;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 171 }
170 172
171 void addMember(Element memberElement) { 173 void addMember(Element memberElement) {
172 for (Link link = metadata; !link.isEmpty; link = link.tail) { 174 for (Link link = metadata; !link.isEmpty; link = link.tail) {
173 memberElement.addMetadata(link.head); 175 memberElement.addMetadata(link.head);
174 } 176 }
175 metadata = const Link<MetadataAnnotation>(); 177 metadata = const Link<MetadataAnnotation>();
176 enclosingElement.addMember(memberElement, listener); 178 enclosingElement.addMember(memberElement, listener);
177 } 179 }
178 } 180 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/scanner/array_based_scanner.dart ('k') | lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698