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

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

Issue 1174643003: expose strong checker API, for use by analyzer_cli (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/dependency_graph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_codegen.dart
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
index ea4c24d84ea4039e30af4c544f1335827048cdea..20a1eccf4d49d92187b63aa90a9ec7f991c0259e 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -26,7 +26,7 @@ import 'package:dev_compiler/src/js/js_ast.dart' show js;
import 'package:dev_compiler/devc.dart' show AbstractCompiler;
import 'package:dev_compiler/src/checker/rules.dart';
import 'package:dev_compiler/src/info.dart';
-import 'package:dev_compiler/src/options.dart';
+import 'package:dev_compiler/src/options.dart' show CodegenOptions;
import 'package:dev_compiler/src/utils.dart';
import 'code_generator.dart';
@@ -51,7 +51,7 @@ const DSEND = 'dsend';
class JSCodegenVisitor extends GeneralizingAstVisitor {
final AbstractCompiler compiler;
- final CompilerOptions options;
+ final CodegenOptions options;
final TypeRules rules;
final LibraryInfo libraryInfo;
@@ -99,7 +99,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor {
JSCodegenVisitor(AbstractCompiler compiler, this.libraryInfo,
this._extensionTypes, this._fieldsNeedingStorage)
: compiler = compiler,
- options = compiler.options,
+ options = compiler.options.codegenOptions,
rules = compiler.rules,
root = compiler.entryPointUri {
_loader = new ModuleItemLoadOrder(_emitModuleItem);
« no previous file with comments | « lib/src/codegen/code_generator.dart ('k') | lib/src/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698