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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/resolution/class_members.dart

Issue 206193002: Remove cancel and make crash exit with code 253. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 resolution.compute_members; 5 library resolution.compute_members;
6 6
7 import '../elements/elements.dart' 7 import '../elements/elements.dart'
8 show Element, 8 show Element,
9 Name, 9 Name,
10 PublicName, 10 PublicName,
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 MessageKind.INVALID_OVERRIDE_METHOD, 541 MessageKind.INVALID_OVERRIDE_METHOD,
542 MessageKind.INVALID_OVERRIDDEN_METHOD); 542 MessageKind.INVALID_OVERRIDDEN_METHOD);
543 } 543 }
544 } 544 }
545 } 545 }
546 } 546 }
547 } 547 }
548 } 548 }
549 549
550 void reportErrorWithContext(Element errorneousElement, 550 void reportErrorWithContext(Element errorneousElement,
551 MessageKind errorMessage, 551 MessageKind errorMessage,
552 Element contextElement, 552 Element contextElement,
553 MessageKind contextMessage) { 553 MessageKind contextMessage) {
554 compiler.reportError( 554 compiler.reportError(
555 errorneousElement, 555 errorneousElement,
556 errorMessage, 556 errorMessage,
557 {'memberName': contextElement.name, 557 {'memberName': contextElement.name,
558 'className': contextElement.getEnclosingClass().name}); 558 'className': contextElement.getEnclosingClass().name});
559 compiler.reportInfo(contextElement, contextMessage); 559 compiler.reportInfo(contextElement, contextMessage);
560 } 560 }
561 561
562 static void computeClassMembers(Compiler compiler, BaseClassElementX cls) { 562 static void computeClassMembers(Compiler compiler, BaseClassElementX cls) {
563 if (cls.classMembers != null) return; 563 if (cls.classMembers != null) return;
564 MembersCreator creator = new MembersCreator(compiler, cls); 564 MembersCreator creator = new MembersCreator(compiler, cls);
565 creator.computeMembers(); 565 creator.computeMembers();
566 cls.classMembers = creator.classMembers; 566 cls.classMembers = creator.classMembers;
567 cls.interfaceMembers = creator.interfaceMembers; 567 cls.interfaceMembers = creator.interfaceMembers;
568 } 568 }
569 } 569 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698