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

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

Issue 11967010: Internal libraries supported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 Element element = instruction.sourceElement; 961 Element element = instruction.sourceElement;
962 if (element == null) element = currentElement; 962 if (element == null) element = currentElement;
963 var position = instruction.sourcePosition; 963 var position = instruction.sourcePosition;
964 if (position == null) return spanFromElement(element); 964 if (position == null) return spanFromElement(element);
965 Token token = position.token; 965 Token token = position.token;
966 if (token == null) return spanFromElement(element); 966 if (token == null) return spanFromElement(element);
967 Uri uri = element.getCompilationUnit().script.uri; 967 Uri uri = element.getCompilationUnit().script.uri;
968 return spanFromTokens(token, token, uri); 968 return spanFromTokens(token, token, uri);
969 } 969 }
970 970
971 Uri resolveScriptUri(Uri importingUri, Uri uri, [Node node]) {
ahe 2013/01/18 11:03:10 I think this should be documented here, not in the
Johnni Winther 2013/01/21 09:27:54 Done.
972 unimplemented('Compiler.resolveScriptUri');
973 }
974
971 Script readScript(Uri uri, [Node node]) { 975 Script readScript(Uri uri, [Node node]) {
972 unimplemented('Compiler.readScript'); 976 unimplemented('Compiler.readScript');
973 } 977 }
974 978
975 String get legDirectory { 979 String get legDirectory {
976 unimplemented('Compiler.legDirectory'); 980 unimplemented('Compiler.legDirectory');
977 } 981 }
978 982
979 // TODO(karlklose): split into findHelperFunction and findHelperClass and 983 // TODO(karlklose): split into findHelperFunction and findHelperClass and
980 // add a check that the element has the expected kind. 984 // add a check that the element has the expected kind.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 // TODO(johnniwinther): Use [spannable] and [message] to provide better 1107 // TODO(johnniwinther): Use [spannable] and [message] to provide better
1104 // information on assertion errors. 1108 // information on assertion errors.
1105 if (condition is Function){ 1109 if (condition is Function){
1106 condition = condition(); 1110 condition = condition();
1107 } 1111 }
1108 if (spannable == null || !condition) { 1112 if (spannable == null || !condition) {
1109 throw new SpannableAssertionFailure(spannable, message); 1113 throw new SpannableAssertionFailure(spannable, message);
1110 } 1114 }
1111 return true; 1115 return true;
1112 } 1116 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698