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

Side by Side Diff: lib/kernel.dart

Issue 2108193002: Change error handling. (Closed) Base URL: git@github.com:dart-lang/rasta.git@master
Patch Set: Address comments 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
« no previous file with comments | « dart_vm_standalone/rasta_errors.dart ('k') | lib/unresolved.dart » ('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) 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 } 636 }
637 637
638 bool get isInternalStateConsistent { 638 bool get isInternalStateConsistent {
639 if (workQueue.isNotEmpty) { 639 if (workQueue.isNotEmpty) {
640 print("Kernel workQueue isn't empty."); 640 print("Kernel workQueue isn't empty.");
641 return false; 641 return false;
642 } 642 }
643 return compiler.isInternalStateConsistent; 643 return compiler.isInternalStateConsistent;
644 } 644 }
645 645
646 ir.Procedure getDynamicErrorHandler() { 646 ir.Procedure getUnresolvedConstructorBuilder() {
647 LibraryElement internal = 647 LibraryElement internal =
648 compiler.libraryLoader.lookupLibrary(Uri.parse("dart:_internal")); 648 compiler.libraryLoader.lookupLibrary(Uri.parse("dart:core"));
649 FunctionElement function = 649 FunctionElement function =
650 internal.implementation.localLookup("_dynamicError"); 650 internal.implementation.localLookup("_unresolvedConstructorError");
651 return functionToIr(function);
652 }
653
654 ir.Procedure getMalformedTypeErrorBuilder() {
655 LibraryElement internal =
656 compiler.libraryLoader.lookupLibrary(Uri.parse("dart:core"));
657 FunctionElement function =
658 internal.implementation.localLookup("_malformedTypeError");
651 return functionToIr(function); 659 return functionToIr(function);
652 } 660 }
653 } 661 }
654 662
655 class ConstructorTarget { 663 class ConstructorTarget {
656 final ConstructorElement element; 664 final ConstructorElement element;
657 final DartType type; 665 final DartType type;
658 666
659 ConstructorTarget(this.element, this.type); 667 ConstructorTarget(this.element, this.type);
660 668
661 String toString() => "ConstructorTarget($element, $type)"; 669 String toString() => "ConstructorTarget($element, $type)";
662 } 670 }
OLDNEW
« no previous file with comments | « dart_vm_standalone/rasta_errors.dart ('k') | lib/unresolved.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698