Skip to content

Commit b77bf04

Browse files
committed
fix: resolve DoStmt LANGUAGE clause ordering for arrays test
- Fix DoStmt method to output LANGUAGE clause after code block instead of before - Resolves original-upstream-arrays.test.ts AST mismatch (DO 3105 ... 3105 LANGUAGE syntax) - All 363 arrays fixtures now pass with zero AST mismatches Co-Authored-By: Dan Lynch <[email protected]>
1 parent edb48e7 commit b77bf04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/deparser/src/deparser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6501,12 +6501,12 @@ export class Deparser implements DeparserVisitor {
65016501
}
65026502
}
65036503

6504-
if (languageArg) {
6505-
output.push(languageArg);
6506-
}
65076504
if (codeArg) {
65086505
output.push(codeArg);
65096506
}
6507+
if (languageArg) {
6508+
output.push(languageArg);
6509+
}
65106510
}
65116511

65126512
return output.join(' ');

0 commit comments

Comments
 (0)