Skip to content

Commit

Permalink
Update grinder_tools.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Oct 28, 2015
1 parent 6f344de commit c067674
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/grinder_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,23 @@ class TestRunner {
}
}

/// An interface into the DDC (`dev_compiler`).
/// A class to drive the Dart Dev Compiler (DDC, from the `dev_compiler` package).
class DevCompiler {
final PubApp _ddc = new PubApp.global('dev_compiler');

DevCompiler();

/// Analyze the given file or files with DDC.
void analyze(dynamic files, {bool htmlOutput: false}) {
_ddc.run(_args(files, htmlOutput: htmlOutput));
}

/// Analyze the given file or files with DDC.
Future analyzeAsync(dynamic files, {bool htmlOutput: false}) {
return _ddc.runAsync(_args(files, htmlOutput: htmlOutput));
}

/// Compile the given file with DDC and generate the output to [outDir].
void compile(dynamic files, Directory outDir, {
bool forceCompile: false,
bool htmlOutput: false
Expand All @@ -163,6 +166,7 @@ class DevCompiler {
htmlOutput: htmlOutput));
}

/// Compile the given file with DDC and generate the output to [outDir].
Future compileAsync(dynamic files, Directory outDir, {
bool forceCompile: false,
bool htmlOutput: false
Expand Down

0 comments on commit c067674

Please sign in to comment.