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

Unified Diff: pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.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
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() {}
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/js_emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698