Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
index b2db5ab1e914075e4d70765917338019fad48a45..e3f287b89188ab127fea7d3411ed0aa1834d0fa3 100644 |
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
@@ -4,33 +4,21 @@ |
library dart2js.js_emitter.lazy_emitter; |
-import 'package:js_runtime/shared/embedded_names.dart' show |
- JsBuiltin, |
- METADATA, |
- TYPES; |
+import 'package:js_runtime/shared/embedded_names.dart' |
+ show JsBuiltin, METADATA, TYPES; |
import '../../common.dart'; |
-import '../../compiler.dart' show |
- Compiler; |
-import '../../constants/values.dart' show |
- ConstantValue; |
-import '../../elements/elements.dart' show |
- ClassElement, |
- Element, |
- FieldElement, |
- FunctionElement; |
+import '../../compiler.dart' show Compiler; |
+import '../../constants/values.dart' show ConstantValue; |
+import '../../elements/elements.dart' |
+ show ClassElement, Element, FieldElement, FunctionElement; |
import '../../js/js.dart' as js; |
-import '../../js_backend/js_backend.dart' show |
- JavaScriptBackend, |
- Namer; |
- |
-import '../js_emitter.dart' show |
- NativeEmitter; |
-import '../js_emitter.dart' as emitterTask show |
- Emitter; |
+import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer; |
+ |
+import '../js_emitter.dart' show NativeEmitter; |
+import '../js_emitter.dart' as emitterTask show Emitter; |
import '../model.dart'; |
-import '../program_builder/program_builder.dart' show |
- ProgramBuilder; |
+import '../program_builder/program_builder.dart' show ProgramBuilder; |
import 'model_emitter.dart'; |
@@ -97,8 +85,8 @@ class Emitter implements emitterTask.Emitter { |
@override |
js.Expression isolateLazyInitializerAccess(FieldElement element) { |
- return js.js('#.#', [namer.globalObjectFor(element), |
- namer.lazyInitializerName(element)]); |
+ return js.js('#.#', |
+ [namer.globalObjectFor(element), namer.lazyInitializerName(element)]); |
} |
@override |
@@ -122,8 +110,8 @@ class Emitter implements emitterTask.Emitter { |
} |
@override |
- js.PropertyAccess prototypeAccess(ClassElement element, |
- bool hasBeenInstantiated) { |
+ js.PropertyAccess prototypeAccess( |
+ ClassElement element, bool hasBeenInstantiated) { |
js.Expression constructor = |
hasBeenInstantiated ? constructorAccess(element) : typeAccess(element); |
return js.js('#.prototype', constructor); |
@@ -187,13 +175,12 @@ class Emitter implements emitterTask.Emitter { |
throw new UnsupportedError('createDartClosureFromNameOfStaticFunction'); |
default: |
- reporter.internalError(NO_LOCATION_SPANNABLE, |
- "Unhandled Builtin: $builtin"); |
+ reporter.internalError( |
+ NO_LOCATION_SPANNABLE, "Unhandled Builtin: $builtin"); |
return null; |
} |
} |
@override |
- void invalidateCaches() { |
- } |
+ void invalidateCaches() {} |
} |