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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/glue.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_backend/codegen/glue.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
index 5b3f57243b6465ee6a16ebeeed4199ad884c2bc2..eafef0ef96adb4c16754950dd01d15a8cf8e10d9 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -4,30 +4,21 @@
library code_generator_dependencies;
-import '../backend_helpers.dart' show
- BackendHelpers;
+import '../backend_helpers.dart' show BackendHelpers;
import '../js_backend.dart';
import '../../common.dart';
-import '../../common/codegen.dart' show
- CodegenRegistry;
-import '../../compiler.dart' show
- Compiler;
+import '../../common/codegen.dart' show CodegenRegistry;
+import '../../compiler.dart' show Compiler;
import '../../constants/values.dart';
-import '../../dart_types.dart' show
- DartType,
- TypeVariableType,
- InterfaceType;
-import '../../enqueue.dart' show
- CodegenEnqueuer;
+import '../../dart_types.dart' show DartType, TypeVariableType, InterfaceType;
+import '../../enqueue.dart' show CodegenEnqueuer;
import '../../elements/elements.dart';
import '../../js_emitter/js_emitter.dart';
import '../../js/js.dart' as js;
import '../../native/native.dart' show NativeBehavior;
-import '../../universe/selector.dart' show
- Selector;
-import '../../world.dart' show
- ClassWorld;
+import '../../universe/selector.dart' show Selector;
+import '../../world.dart' show ClassWorld;
import '../../types/types.dart';
/// Encapsulates the dependencies of the function-compiler to the compiler,
@@ -148,7 +139,7 @@ class Glue {
}
js.Expression prototypeAccess(ClassElement e,
- {bool hasBeenInstantiated: false}) {
+ {bool hasBeenInstantiated: false}) {
return _emitter.prototypeAccess(e,
hasBeenInstantiated: hasBeenInstantiated);
}
@@ -232,12 +223,10 @@ class Glue {
}
js.Expression generateTypeRepresentation(DartType dartType,
- List<js.Expression> arguments,
- CodegenRegistry registry) {
+ List<js.Expression> arguments, CodegenRegistry registry) {
int variableIndex = 0;
- js.Expression representation = _backend.rtiEncoder.getTypeRepresentation(
- dartType,
- (_) => arguments[variableIndex++]);
+ js.Expression representation = _backend.rtiEncoder
+ .getTypeRepresentation(dartType, (_) => arguments[variableIndex++]);
assert(variableIndex == arguments.length);
// Representation contains JavaScript Arrays.
registry.registerInstantiatedClass(_helpers.jsArrayClass);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698