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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.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/full_emitter/nsm_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
index 1b88e49459b3de6fae4d74d479fb13a81446c0fa..ec21bb7f75fb172a847cb7387fb00c374f8031d5 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
@@ -180,8 +180,7 @@ class NsmEmitter extends CodeEmitterHelper {
.staticFunctionAccess(
closedWorld.commonElements.createInvocationMirror);
if (useDiffEncoding) {
- statements.add(js.statement(
- '''{
+ statements.add(js.statement('''{
var objectClassObject = processedClasses.collected[#objectClass],
nameSequences = #diffEncoding.split("."),
shortNames = [];
@@ -221,11 +220,10 @@ class NsmEmitter extends CodeEmitterHelper {
Array.prototype.push.apply(shortNames, sequence.shift());
}
}
- }''',
- {
- 'objectClass': js.quoteName(namer.className(objectClass)),
- 'diffEncoding': sortedShorts
- }));
+ }''', {
+ 'objectClass': js.quoteName(namer.className(objectClass)),
+ 'diffEncoding': sortedShorts
+ }));
} else {
// No useDiffEncoding version.
statements.add(js.statement(
@@ -250,8 +248,7 @@ class NsmEmitter extends CodeEmitterHelper {
? true
: js('j < #', js.number(interceptedSelectors.length));
- statements.add(js.statement(
- '''
+ statements.add(js.statement('''
// If we are loading a deferred library the object class will not be in
// the collectedClasses so objectClassObject is undefined, and we skip
// setting up the names.
@@ -298,13 +295,12 @@ class NsmEmitter extends CodeEmitterHelper {
})(#names[j], shortName, type);
}
}
- }''',
- {
- 'noSuchMethodName': namer.noSuchMethodName,
- 'createInvocationMirror': createInvocationMirror,
- 'names': minify ? 'shortNames' : 'longNames',
- 'isIntercepted': isIntercepted
- }));
+ }''', {
+ 'noSuchMethodName': namer.noSuchMethodName,
+ 'createInvocationMirror': createInvocationMirror,
+ 'names': minify ? 'shortNames' : 'longNames',
+ 'isIntercepted': isIntercepted
+ }));
return statements;
}

Powered by Google App Engine
This is Rietveld 408576698