Skip to content

Commit 4aaeaf6

Browse files
committed
1 parent 2722aed commit 4aaeaf6

File tree

112 files changed

+116
-14952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+116
-14952
lines changed

pkg/dev_compiler/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ tool/generated_sdk/
1717

1818
# Or our test outputs
1919
test/codegen/actual/
20-
test/dart_codegen/actual/
2120

2221
# Include when developing application packages.
2322
pubspec.lock

pkg/dev_compiler/lib/devc.dart

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import 'src/analysis_context.dart';
2323
import 'src/checker/checker.dart';
2424
import 'src/checker/rules.dart';
2525
import 'src/codegen/code_generator.dart' show CodeGenerator;
26-
import 'src/codegen/dart_codegen.dart';
2726
import 'src/codegen/html_codegen.dart';
2827
import 'src/codegen/js_codegen.dart';
2928
import 'src/dependency_graph.dart';
@@ -91,16 +90,11 @@ class Compiler implements AbstractCompiler {
9190

9291
Compiler._(this.options, this.context, this._reporter, this.rules,
9392
this._checker, this._entryNode) {
94-
if (options.dumpSrcDir != null) {
95-
_generators.add(new EmptyDartGenerator(this));
96-
}
9793
if (options.outputDir != null) {
98-
_generators.add(
99-
options.outputDart ? new DartGenerator(this) : new JSGenerator(this));
94+
_generators.add(new JSGenerator(this));
10095
}
10196
// TODO(sigmund): refactor to support hashing of the dart output?
102-
_hashing =
103-
options.enableHashing && _generators.length == 1 && !options.outputDart;
97+
_hashing = options.enableHashing && _generators.length == 1;
10498
}
10599

106100
Uri get entryPointUri => _entryNode.uri;
@@ -134,15 +128,13 @@ class Compiler implements AbstractCompiler {
134128
var filename = path.basename(node.uri.path);
135129
String outputFile = path.join(options.outputDir, filename);
136130
new File(outputFile).writeAsStringSync(output);
137-
138-
if (options.outputDart) return;
139131
}
140132

141133
void _buildResourceFile(ResourceSourceNode node) {
142134
// ResourceSourceNodes files that just need to be copied over to the output
143135
// location. These can be external dependencies or pieces of the
144136
// dev_compiler runtime.
145-
if (options.outputDir == null || options.outputDart) return;
137+
if (options.outputDir == null) return;
146138
var filepath = resourceOutputPath(node.uri, _entryNode.uri);
147139
assert(filepath != null);
148140
filepath = path.join(options.outputDir, filepath);

pkg/dev_compiler/lib/runtime/dart_logging_runtime.dart

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)