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

Unified Diff: lib/src/codegen/html_codegen.dart

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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 | « lib/src/codegen/ast_builder.dart ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/html_codegen.dart
diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart
deleted file mode 100644
index fd5e4966226c641d847deecb0cbfc88ba5399218..0000000000000000000000000000000000000000
--- a/lib/src/codegen/html_codegen.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'package:html/dom.dart';
-import 'package:html/parser.dart' show parseFragment;
-import 'package:logging/logging.dart' show Logger;
-
-// TODO(jmesserly): the string interpolation in these could lead to injection
-// bugs. Not really a security issue since input is trusted, but the resulting
-// parse tree may not match expectations if interpolated strings contain quotes.
-
-/// A script tag that loads the .js code for a compiled library.
-Node libraryInclude(String jsUrl) =>
- parseFragment('<script src="$jsUrl"></script>\n');
-
-/// A script tag that invokes the main function on the entry point library.
-Node invokeMain(String mainLibraryName) {
- var code = mainLibraryName == null
- ? 'console.error("dev_compiler error: main was not generated");'
- // TODO(vsm): Can we simplify this?
- // See: https://github.com/dart-lang/dev_compiler/issues/164
- : "dart_library.start('$mainLibraryName');";
- return parseFragment('<script>$code</script>\n');
-}
-
-final _log = new Logger('dev_compiler.src.codegen.html_codegen');
« no previous file with comments | « lib/src/codegen/ast_builder.dart ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698