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

Side by Side Diff: lib/kernel.dart

Issue 2205263002: Implement fall-through errors. (Closed) Base URL: git@github.com:dart-lang/rasta.git@errors
Patch Set: Created 4 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library rasta.kernel; 5 library rasta.kernel;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'dart:collection' show 10 import 'dart:collection' show
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 return getDartCoreMethod('_unresolvedSuperSetterError'); 675 return getDartCoreMethod('_unresolvedSuperSetterError');
676 } 676 }
677 677
678 ir.Procedure getUnresolvedSuperMethodBuilder() { 678 ir.Procedure getUnresolvedSuperMethodBuilder() {
679 return getDartCoreMethod('_unresolvedSuperMethodError'); 679 return getDartCoreMethod('_unresolvedSuperMethodError');
680 } 680 }
681 681
682 ir.Procedure getGenericNoSuchMethodBuilder() { 682 ir.Procedure getGenericNoSuchMethodBuilder() {
683 return getDartCoreMethod('_genericNoSuchMethod'); 683 return getDartCoreMethod('_genericNoSuchMethod');
684 } 684 }
685
686 ir.Procedure getFallThroughErrorBuilder() {
687 return getDartCoreMethod('_fallThroughError');
688 }
685 } 689 }
686 690
687 class ConstructorTarget { 691 class ConstructorTarget {
688 final ConstructorElement element; 692 final ConstructorElement element;
689 final DartType type; 693 final DartType type;
690 694
691 ConstructorTarget(this.element, this.type); 695 ConstructorTarget(this.element, this.type);
692 696
693 String toString() => "ConstructorTarget($element, $type)"; 697 String toString() => "ConstructorTarget($element, $type)";
694 } 698 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698