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

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

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/code_generator.dart ('k') | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/dart_codegen.dart
diff --git a/lib/src/codegen/dart_codegen.dart b/lib/src/codegen/dart_codegen.dart
index 8bb7c0edc98a1fd233674951cbd487f878e7a9c6..eacf82ddabb8a32b513d896836f00e985be7182b 100644
--- a/lib/src/codegen/dart_codegen.dart
+++ b/lib/src/codegen/dart_codegen.dart
@@ -2,7 +2,7 @@
// 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.
-library ddc.src.codegen.dart_codegen;
+library dev_compiler.src.codegen.dart_codegen;
import 'dart:io' show File;
@@ -24,29 +24,29 @@ import 'ast_builder.dart';
import 'code_generator.dart' as codegenerator;
import 'reify_coercions.dart' as reifier;
-final _log = new logger.Logger('ddc.dartgenerator');
+final _log = new logger.Logger('dev_compiler.dart_codegen');
-class DdcRuntime {
- Identifier _ddcRuntimeId = AstBuilder.identifierFromString("DDC\$RT");
+class DevCompilerRuntime {
+ Identifier _runtimeId = AstBuilder.identifierFromString("DEVC\$RT");
Identifier _castId;
Identifier _typeToTypeId;
Identifier _wrapId;
- DdcRuntime() {
+ DevCompilerRuntime() {
_castId = _prefixId(AstBuilder.identifierFromString("cast"));
_typeToTypeId = _prefixId(AstBuilder.identifierFromString("type"));
_wrapId = _prefixId(AstBuilder.identifierFromString("wrap"));
}
String get importString {
- var name = _ddcRuntimeId;
+ var name = _runtimeId;
var uri = "package:dev_compiler/runtime/dart_logging_runtime.dart";
return "import '$uri' as $name;";
}
Identifier _prefixId(Identifier id) =>
- AstBuilder.prefixedIdentifier(_ddcRuntimeId, id);
+ AstBuilder.prefixedIdentifier(_runtimeId, id);
Identifier runtimeId(RuntimeOperation oper) {
if (oper.operation == "cast") return _castId;
@@ -276,7 +276,7 @@ class UnitGenerator extends UnitGeneratorCommon with ConversionVisitor<Object> {
final java_core.PrintWriter _out;
final String outDir;
Set<LibraryElement> _extraImports;
- final ddc = new DdcRuntime();
+ final _runtime = new DevCompilerRuntime();
LibraryElement _currentLibrary;
bool _qualifyNames = true;
Set<Identifier> _newIdentifiers;
@@ -337,7 +337,7 @@ class UnitGenerator extends UnitGeneratorCommon with ConversionVisitor<Object> {
if (ds['library'].length != 0) {
assert(ds['partof'].length == 0);
var es = buildExtraImportDirectives();
- es.add(ddc.importString);
+ es.add(_runtime.importString);
es.forEach(outputln);
}
visitListWithSeparatorAndPrefix(prefix, ds['partof'], " ");
@@ -357,7 +357,7 @@ class UnitGenerator extends UnitGeneratorCommon with ConversionVisitor<Object> {
@override
Object visitRuntimeOperation(RuntimeOperation oper) {
- var e = ddc.runtimeOperation(oper);
+ var e = _runtime.runtimeOperation(oper);
e.accept(this);
return null;
}
« no previous file with comments | « lib/src/codegen/code_generator.dart ('k') | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698