| Index: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| index 42f7138c0fc414b7964ba0fe9a9c27ecd077f790..7aef3a3cb2d2453b75a82d80ab0b89abe6d12db4 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| @@ -416,7 +416,7 @@ class ProgramBuilder {
|
| FunctionElement fn = member;
|
| functionType = fn.type;
|
| } else if (member.isGetter) {
|
| - if (_compiler.trustTypeAnnotations) {
|
| + if (_compiler.options.trustTypeAnnotations) {
|
| GetterElement getter = member;
|
| DartType returnType = getter.type.returnType;
|
| if (returnType.isFunctionType) {
|
| @@ -522,7 +522,7 @@ class ProgramBuilder {
|
| ///
|
| /// Returns a class that contains the fields of a class.
|
| Class buildFieldsHackForIncrementalCompilation(ClassElement element) {
|
| - assert(_compiler.hasIncrementalSupport);
|
| + assert(_compiler.options.hasIncrementalSupport);
|
|
|
| List<Field> instanceFields = _buildFields(element, false);
|
| js.Name name = namer.className(element);
|
| @@ -694,7 +694,7 @@ class ProgramBuilder {
|
| return backend.isAccessibleByReflection(method) ||
|
| // During incremental compilation, we have to assume that reflection
|
| // *might* get enabled.
|
| - _compiler.hasIncrementalSupport;
|
| + _compiler.options.hasIncrementalSupport;
|
| }
|
|
|
| bool _methodCanBeApplied(FunctionElement method) {
|
| @@ -704,7 +704,7 @@ class ProgramBuilder {
|
|
|
| // TODO(herhut): Refactor incremental compilation and remove method.
|
| Method buildMethodHackForIncrementalCompilation(FunctionElement element) {
|
| - assert(_compiler.hasIncrementalSupport);
|
| + assert(_compiler.options.hasIncrementalSupport);
|
| if (element.isInstanceMember) {
|
| return _buildMethod(element);
|
| } else {
|
|
|