Index: packages/dart_style/test/regression/0000/0000.stmt |
diff --git a/packages/dart_style/test/regression/0000/0000.stmt b/packages/dart_style/test/regression/0000/0000.stmt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8edbac49ff1ab7d68cbfe8bc16284bcc23ce7a27 |
--- /dev/null |
+++ b/packages/dart_style/test/regression/0000/0000.stmt |
@@ -0,0 +1,78 @@ |
+>>> |
+_log(new LogEntry(error.transform, error.transform.primaryId, LogLevel.ERROR, |
+ message, null), arg); |
+<<< |
+_log( |
+ new LogEntry(error.transform, error.transform.primaryId, LogLevel.ERROR, |
+ message, null), |
+ arg); |
+>>> (indent 4) |
+ expect(date_format |
+ .parsePattern("hh:mm:ss") |
+ .map((x) => x.pattern) |
+ .toList(), orderedEquals(["hh", ":", "mm", ":", "ss"])); |
+<<< |
+ expect(date_format.parsePattern("hh:mm:ss").map((x) => x.pattern).toList(), |
+ orderedEquals(["hh", ":", "mm", ":", "ss"])); |
+>>> (indent 4) |
+ classElement.forEachInstanceField( |
+ (ClassElement enclosingClass, VariableElement member) { |
+ HInstruction value = fieldValues[member]; |
+ if (value == null) { |
+ // Uninitialized native fields are pre-initialized by the native |
+ // implementation. |
+ assert(isNativeUpgradeFactory); |
+ } else { |
+ fields.add(member); |
+ DartType type = localsHandler.substInContext(member.type); |
+ constructorArguments.add(potentiallyCheckOrTrustType(value, type)); |
+ } |
+ }, includeSuperAndInjectedMembers: true); |
+<<< |
+ classElement.forEachInstanceField( |
+ (ClassElement enclosingClass, VariableElement member) { |
+ HInstruction value = fieldValues[member]; |
+ if (value == null) { |
+ // Uninitialized native fields are pre-initialized by the native |
+ // implementation. |
+ assert(isNativeUpgradeFactory); |
+ } else { |
+ fields.add(member); |
+ DartType type = localsHandler.substInContext(member.type); |
+ constructorArguments.add(potentiallyCheckOrTrustType(value, type)); |
+ } |
+ }, includeSuperAndInjectedMembers: true); |
+>>> (indent 6) |
+ HLoopBlockInformation info = new HLoopBlockInformation( |
+ HLoopBlockInformation.loopType(loop), |
+ wrapExpressionGraph(initializerGraph), |
+ wrapExpressionGraph(conditionExpression), |
+ wrapStatementGraph(bodyGraph), wrapExpressionGraph(updateGraph), |
+ conditionBlock.loopInformation.target, |
+ conditionBlock.loopInformation.labels, |
+ sourceFileLocationForBeginToken(loop), |
+ sourceFileLocationForEndToken(loop)); |
+<<< |
+ HLoopBlockInformation info = new HLoopBlockInformation( |
+ HLoopBlockInformation.loopType(loop), |
+ wrapExpressionGraph(initializerGraph), |
+ wrapExpressionGraph(conditionExpression), |
+ wrapStatementGraph(bodyGraph), |
+ wrapExpressionGraph(updateGraph), |
+ conditionBlock.loopInformation.target, |
+ conditionBlock.loopInformation.labels, |
+ sourceFileLocationForBeginToken(loop), |
+ sourceFileLocationForEndToken(loop)); |
+>>> (indent 6) |
+ handleSwitch(node, new NullJumpHandler(compiler), buildExpression, |
+ node.cases, getConstants, (_) => false, // No case is default. |
+ buildSwitchCase); |
+<<< |
+ handleSwitch( |
+ node, |
+ new NullJumpHandler(compiler), |
+ buildExpression, |
+ node.cases, |
+ getConstants, |
+ (_) => false, // No case is default. |
+ buildSwitchCase); |