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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dart2js/Dart2JSCompiler.java

Issue 13042008: Make the generate javascript and generate dartdoc actions work with the new model. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dartdoc/DartdocGenerator.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dart2js/Dart2JSCompiler.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dart2js/Dart2JSCompiler.java (revision 20556)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dart2js/Dart2JSCompiler.java (working copy)
@@ -17,7 +17,6 @@
import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.core.MessageConsole;
import com.google.dart.tools.core.internal.util.ResourceUtil;
-import com.google.dart.tools.core.model.DartLibrary;
import com.google.dart.tools.core.model.DartSdkManager;
import com.google.dart.tools.core.pub.IPackageRootProvider;
import com.google.dart.tools.core.utilities.general.StringUtilities;
@@ -98,18 +97,18 @@
* the given dart library, optionally poll the given monitor to check for user cancellation, and
* write any output to the given console.
*
- * @param library
+ * @param file
* @param monitor
* @param console
* @throws OperationCanceledException
*/
- public static CompilationResult compileLibrary(DartLibrary library, IProgressMonitor monitor,
+ public static CompilationResult compileLibrary(IFile file, IProgressMonitor monitor,
final MessageConsole console) throws CoreException {
long startTime = System.currentTimeMillis();
- IPath path = library.getCorrespondingResource().getLocation();
+ IPath path = file.getLocation();
- final IPath inputPath = library.getCorrespondingResource().getLocation();
+ final IPath inputPath = file.getLocation();
final IPath outputPath = getJsAppArtifactPath(path);
Dart2JSCompiler compiler = new Dart2JSCompiler();
@@ -119,7 +118,7 @@
try {
CompilationResult result = compiler.compile(inputPath, outputPath, monitor, console);
- refreshResources(library.getCorrespondingResource());
+ refreshResources(file);
displayCompilationResult(compiler, result, outputPath, startTime, console);
return result;
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dartdoc/DartdocGenerator.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698