What version of OpenRewrite are you using?
Current main = cd4edc6
What is the smallest, simplest way to reproduce the problem?
Add the following section:
`
for (
let i = 0; i < numberOfConnections; i++
) {}
`
to rewrite-javascript/rewrite/test/javascript/whitespace-attachment.test.ts
What did you see instead?
FAIL test/javascript/whitespace-attachment.test.ts > whitespace should be attached to the outermost element > for (
let i = 0; i < numberOfConnections; i++
) {}
AssertionError: expected [ Array(1) ] to deeply equal []
- Expected
+ Received
- []
+ [
+ "J.VariableDeclarations has child J.Modifier starting with whitespace |
+ |. The whitespace should rather be attached to J.VariableDeclarations around J.Modifier{Text(
+ ), Text(let)}.",
+ ]
What version of OpenRewrite are you using?
Current main = cd4edc6
What is the smallest, simplest way to reproduce the problem?
Add the following section:
to
rewrite-javascript/rewrite/test/javascript/whitespace-attachment.test.tsWhat did you see instead?