Skip to content

Commit 94d5312

Browse files
fix: make OBJECT_OPERATOR exclusion specific to CommentStmt contexts
- Modify shouldCreateObjfuncargsFromObjargs to only exclude OBJECT_OPERATOR for CommentStmt contexts - Allow objfuncargs creation for operators in AlterOwnerStmt contexts - This enables objfuncargs generation for ALTER OPERATOR statements Co-Authored-By: Dan Lynch <[email protected]>
1 parent 26a7514 commit 94d5312

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/transform/src/transformers/v13-to-v14.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,8 @@ export class V13ToV14Transformer {
18141814
return false;
18151815
}
18161816

1817-
if ((context as any).commentObjtype === 'OBJECT_OPERATOR') {
1817+
if ((context as any).commentObjtype === 'OBJECT_OPERATOR' &&
1818+
context.parentNodeTypes.includes('CommentStmt')) {
18181819
return false;
18191820
}
18201821

0 commit comments

Comments
 (0)