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

Unified Diff: pkg/compiler/lib/src/js_emitter/native_generator.dart

Issue 2990223002: Reformat untouched files. (Closed)
Patch Set: Created 3 years, 4 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/native_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/native_generator.dart b/pkg/compiler/lib/src/js_emitter/native_generator.dart
index 65ae253f3bc4f92771375c983ea5910da0c83b85..d0b49dd48813711762869475d838cbac2473aad2 100644
--- a/pkg/compiler/lib/src/js_emitter/native_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/native_generator.dart
@@ -34,8 +34,7 @@ class NativeGenerator {
jsAst.Expression dispatchPropertyNameAccess =
generateEmbeddedGlobalAccess(embeddedNames.DISPATCH_PROPERTY_NAME);
- return js.statement(
- '''
+ return js.statement('''
!function() {
var intern = #internStringFunction;
@@ -63,15 +62,14 @@ class NativeGenerator {
#dispatchPropertyName = #getIsolateTag("dispatch_record");
}
}();
- ''',
- {
- 'initializeDispatchProperty':
- backendUsage.needToInitializeDispatchProperty,
- 'internStringFunction': internStringFunction,
- 'getIsolateTag': getIsolateTagAccess,
- 'isolateTag': isolateTagAccess,
- 'dispatchPropertyName': dispatchPropertyNameAccess
- });
+ ''', {
+ 'initializeDispatchProperty':
+ backendUsage.needToInitializeDispatchProperty,
+ 'internStringFunction': internStringFunction,
+ 'getIsolateTag': getIsolateTagAccess,
+ 'isolateTag': isolateTagAccess,
+ 'dispatchPropertyName': dispatchPropertyNameAccess
+ });
}
static String generateIsolateTagRoot() {
@@ -155,8 +153,7 @@ class NativeGenerator {
jsAst.Expression leafTagsAccess) {
jsAst.Expression subclassRead =
subclassReadGenerator(js('subclasses[i]', []));
- return js.statement(
- '''
+ return js.statement('''
// The native info looks like this:
//
// HtmlElement: {
@@ -204,15 +201,14 @@ class NativeGenerator {
}
}
}
- ''',
- {
- 'info': infoAccess,
- 'constructor': constructorAccess,
- 'subclassRead': subclassRead,
- 'interceptorsByTagAccess': interceptorsByTagAccess,
- 'leafTagsAccess': leafTagsAccess,
- 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME,
- 'allowNativesSubclassing': true
- });
+ ''', {
+ 'info': infoAccess,
+ 'constructor': constructorAccess,
+ 'subclassRead': subclassRead,
+ 'interceptorsByTagAccess': interceptorsByTagAccess,
+ 'leafTagsAccess': leafTagsAccess,
+ 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME,
+ 'allowNativesSubclassing': true
+ });
}
}

Powered by Google App Engine
This is Rietveld 408576698