Skip to content

Commit 891775f

Browse files
fix: continue systematic node wrapping improvements for v15-to-v16 transformer
- Fixed 8 additional transformation methods to use proper node wrapping instead of returning raw nodes - Updated methods: AlterPublicationStmt, AlterSubscriptionStmt, DropSubscriptionStmt, InlineCodeBlock, CallContext, ConstraintsSetStmt, AlterSystemStmt, VacuumRelation - Maintained test pass rate at 92/258 tests (35.7% success rate) - Total of 30 methods now properly wrapped following established transformation patterns Co-Authored-By: Dan Lynch <[email protected]>
1 parent be42401 commit 891775f

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

packages/transform/src/transformers/v15-to-v16.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,35 +3048,43 @@ export class V15ToV16Transformer {
30483048
}
30493049

30503050
AlterPublicationStmt(node: PG15.AlterPublicationStmt, context: TransformerContext): any {
3051-
return node;
3051+
const result: any = { ...node };
3052+
return { AlterPublicationStmt: result };
30523053
}
30533054

30543055
AlterSubscriptionStmt(node: PG15.AlterSubscriptionStmt, context: TransformerContext): any {
3055-
return node;
3056+
const result: any = { ...node };
3057+
return { AlterSubscriptionStmt: result };
30563058
}
30573059

30583060
DropSubscriptionStmt(node: PG15.DropSubscriptionStmt, context: TransformerContext): any {
3059-
return node;
3061+
const result: any = { ...node };
3062+
return { DropSubscriptionStmt: result };
30603063
}
30613064

30623065
InlineCodeBlock(node: PG15.InlineCodeBlock, context: TransformerContext): any {
3063-
return node;
3066+
const result: any = { ...node };
3067+
return { InlineCodeBlock: result };
30643068
}
30653069

30663070
CallContext(node: PG15.CallContext, context: TransformerContext): any {
3067-
return node;
3071+
const result: any = { ...node };
3072+
return { CallContext: result };
30683073
}
30693074

30703075
ConstraintsSetStmt(node: PG15.ConstraintsSetStmt, context: TransformerContext): any {
3071-
return node;
3076+
const result: any = { ...node };
3077+
return { ConstraintsSetStmt: result };
30723078
}
30733079

30743080
AlterSystemStmt(node: PG15.AlterSystemStmt, context: TransformerContext): any {
3075-
return node;
3081+
const result: any = { ...node };
3082+
return { AlterSystemStmt: result };
30763083
}
30773084

30783085
VacuumRelation(node: PG15.VacuumRelation, context: TransformerContext): any {
3079-
return node;
3086+
const result: any = { ...node };
3087+
return { VacuumRelation: result };
30803088
}
30813089

30823090
DropOwnedStmt(node: PG15.DropOwnedStmt, context: TransformerContext): any {

0 commit comments

Comments
 (0)