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

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

Issue 11066055: Update types to unbreak build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 const bool REPORT_EXCESS_RESOLUTION = false; 10 const bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 if (element === null) { 741 if (element === null) {
742 element = currentElement; 742 element = currentElement;
743 } 743 }
744 Token position = element.position(); 744 Token position = element.position();
745 Uri uri = element.getCompilationUnit().script.uri; 745 Uri uri = element.getCompilationUnit().script.uri;
746 return (position === null) 746 return (position === null)
747 ? new SourceSpan(uri, 0, 0) 747 ? new SourceSpan(uri, 0, 0)
748 : spanFromTokens(position, position, uri); 748 : spanFromTokens(position, position, uri);
749 } 749 }
750 750
751 Script readScript(Uri uri, [LibraryTag node]) { 751 Script readScript(Uri uri, [Node node]) {
752 unimplemented('Compiler.readScript'); 752 unimplemented('Compiler.readScript');
753 } 753 }
754 754
755 String get legDirectory { 755 String get legDirectory {
756 unimplemented('Compiler.legDirectory'); 756 unimplemented('Compiler.legDirectory');
757 } 757 }
758 758
759 // TODO(karlklose): split into findHelperFunction and findHelperClass and 759 // TODO(karlklose): split into findHelperFunction and findHelperClass and
760 // add a check that the element has the expected kind. 760 // add a check that the element has the expected kind.
761 Element findHelper(SourceString name) 761 Element findHelper(SourceString name)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 * information in the generated error message. 848 * information in the generated error message.
849 */ 849 */
850 bool invariant(Spannable spannable, var condition, {String message: null}) { 850 bool invariant(Spannable spannable, var condition, {String message: null}) {
851 // TODO(johnniwinther): Use [spannable] and [message] to provide better 851 // TODO(johnniwinther): Use [spannable] and [message] to provide better
852 // information on assertion errors. 852 // information on assertion errors.
853 if (condition is Function){ 853 if (condition is Function){
854 condition = condition(); 854 condition = condition();
855 } 855 }
856 return spannable != null && condition; 856 return spannable != null && condition;
857 } 857 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/apiimpl.dart ('k') | dart/lib/compiler/implementation/scanner/scanner_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698