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

Side by Side Diff: pkg/compiler/lib/src/parser/partial_elements.dart

Issue 2112503002: Implement super in mixins. (Closed) Base URL: sso://user/ahe/dart-sdk@malformed
Patch Set: Remove experimenting code. Created 4 years, 5 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.parser.partial_elements; 5 library dart2js.parser.partial_elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Parsing, Resolution; 8 import '../common/resolution.dart' show Parsing, Resolution;
9 import '../dart_types.dart' show DynamicType; 9 import '../dart_types.dart' show DynamicType;
10 import '../elements/elements.dart' 10 import '../elements/elements.dart'
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 if (node.type != null) { 265 if (node.type != null) {
266 type = resolution.reporter.withCurrentElement(element, () { 266 type = resolution.reporter.withCurrentElement(element, () {
267 return resolution.resolveTypeAnnotation(element, node.type); 267 return resolution.resolveTypeAnnotation(element, node.type);
268 }); 268 });
269 } else { 269 } else {
270 type = const DynamicType(); 270 type = const DynamicType();
271 } 271 }
272 assert(type != null); 272 assert(type != null);
273 return type; 273 return type;
274 } 274 }
275
276 PartialFieldList copy() {
277 return new PartialFieldList(beginToken, endToken, modifiers, hasParseError);
278 }
275 } 279 }
276 280
277 class PartialTypedefElement extends TypedefElementX with PartialElement { 281 class PartialTypedefElement extends TypedefElementX with PartialElement {
278 PartialTypedefElement( 282 PartialTypedefElement(
279 String name, Element enclosing, Token beginToken, Token endToken) 283 String name, Element enclosing, Token beginToken, Token endToken)
280 : super(name, enclosing) { 284 : super(name, enclosing) {
281 this.beginToken = beginToken; 285 this.beginToken = beginToken;
282 this.endToken = endToken; 286 this.endToken = endToken;
283 } 287 }
284 288
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } on ParserError catch (e) { 457 } on ParserError catch (e) {
454 partial.hasParseError = true; 458 partial.hasParseError = true;
455 return new ErrorNode(element.position, e.reason); 459 return new ErrorNode(element.position, e.reason);
456 } 460 }
457 Node node = listener.popNode(); 461 Node node = listener.popNode();
458 assert(listener.nodes.isEmpty); 462 assert(listener.nodes.isEmpty);
459 return node; 463 return node;
460 }); 464 });
461 }); 465 });
462 } 466 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/resolution/class_hierarchy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698