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

Unified Diff: benchmark/before.dart.txt

Issue 987223002: Discard unused nesting levels. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « benchmark/after.dart.txt ('k') | lib/src/chunk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: benchmark/before.dart.txt
diff --git a/benchmark/before.dart.txt b/benchmark/before.dart.txt
index 8a0e05312dba0a695b17fd8b9e29c5d976bab256..a54241462e0fae352a37264b9a4b7000f0369ee7 100644
--- a/benchmark/before.dart.txt
+++ b/benchmark/before.dart.txt
@@ -94,6 +94,35 @@ class BacktrackingSolver {
tag == 'input' && (name == 'value' || name =='checked') ||
tag == 'select' && (name == 'selectedindex' || name == 'value') ||
tag == 'textarea' && name == 'value');
+
+ // Even more deeply nested pathological example.
+ if (javaBooleanAnd(
+ javaBooleanAnd(
+ javaBooleanAnd(
+ javaBooleanAnd(
+ javaBooleanAnd(
+ javaBooleanAnd(
+ javaBooleanAnd(
+ javaBooleanAnd(),
+ _isEqualTokens(
+ node.period,
+ toNode.period)),
+ _isEqualNodes(
+ node.name,
+ toNode.name)),
+ _isEqualNodes(
+ node.parameters,
+ toNode.parameters)),
+ _isEqualTokens(
+ node.separator,
+ toNode.separator)),
+ _isEqualNodeLists(node.initializers, toNode.initializers)),
+ _isEqualNodes(
+ node.redirectedConstructor,
+ toNode.redirectedConstructor)),
+ _isEqualNodes(node.body, toNode.body))) {
+ toNode.element = node.element;
+ }
}
/// Run the solver.
« no previous file with comments | « benchmark/after.dart.txt ('k') | lib/src/chunk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698