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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java

Issue 9677062: Step 1: Introduce a new method for source objects that will replace the current getUri (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java (revision 5427)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java (working copy)
@@ -156,6 +156,11 @@
}
@Override
+ public String getUniqueIdentifier() {
+ return dartSrc.getUniqueIdentifier();
+ }
+
+ @Override
public URI getUri() {
return dartSrc.getUri();
}
@@ -188,8 +193,8 @@
/**
* @see #warmUpCompiler()
*/
- public static void warmUpCompiler(CachingArtifactProvider rootProvider,
- DartCompilerListener listener) {
+ public static void warmUpCompiler(
+ CachingArtifactProvider rootProvider, DartCompilerListener listener) {
EditorLibraryManager sysLibMgr = SystemLibraryManagerProvider.getSystemLibraryManager();
String warmupSrcCode = "main() {print('success');}";
@@ -202,7 +207,7 @@
try {
CompilerConfiguration config = new DefaultCompilerConfiguration(options, sysLibMgr) {
- @Override
+ @Override
public CompilerMetrics getCompilerMetrics() {
return metrics;
}

Powered by Google App Engine
This is Rietveld 408576698