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

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

Issue 10827318: Fix test in previous commit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class ClassElementParser extends PartialParser { 5 class ClassElementParser extends PartialParser {
6 ClassElementParser(Listener listener) : super(listener); 6 ClassElementParser(Listener listener) : super(listener);
7 7
8 Token parseClassBody(Token token) => fullParseClassBody(token); 8 Token parseClassBody(Token token) => fullParseClassBody(token);
9 } 9 }
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 assert(this.supertype === null); 48 assert(this.supertype === null);
49 assert(this.defaultClass === null); 49 assert(this.defaultClass === null);
50 assert(this.interfaces === null); 50 assert(this.interfaces === null);
51 assert(this.allSupertypes === null); 51 assert(this.allSupertypes === null);
52 assert(this.backendMembers.isEmpty()); 52 assert(this.backendMembers.isEmpty());
53 53
54 // Native is only used in DOM/HTML library for which we don't 54 // Native is only used in DOM/HTML library for which we don't
55 // support patching. 55 // support patching.
56 assert(this.nativeName === null); 56 assert(this.nativeName === null);
57 57
58 Link<Element> elementList = this.members; 58 Link<Element> elementList = this.localMembers;
59 while (!elementList.isEmpty()) { 59 while (!elementList.isEmpty()) {
60 result.addMember(elementList.head.cloneTo(result, listener), listener); 60 result.addMember(elementList.head.cloneTo(result, listener), listener);
61 elementList = elementList.tail; 61 elementList = elementList.tail;
62 } 62 }
63 63
64 result.cachedNode = cachedNode; 64 result.cachedNode = cachedNode;
65 return result; 65 return result;
66 } 66 }
67 } 67 }
68 68
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 void endInitializers(int count, Token beginToken, Token endToken) { 161 void endInitializers(int count, Token beginToken, Token endToken) {
162 pushNode(null); 162 pushNode(null);
163 } 163 }
164 164
165 void addMember(Element memberElement) { 165 void addMember(Element memberElement) {
166 enclosingElement.addMember(memberElement, listener); 166 enclosingElement.addMember(memberElement, listener);
167 } 167 }
168 } 168 }
OLDNEW
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698