File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/transform/src/transformers Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -509,8 +509,9 @@ export class V13ToV14Transformer {
509509 const result : any = { ...node } ;
510510
511511 if ( result . objects !== undefined ) {
512- const childContext = {
512+ const childContext : TransformerContext = {
513513 ...context ,
514+ parentNodeTypes : [ ...( context . parentNodeTypes || [ ] ) , 'DropStmt' ] ,
514515 dropRemoveType : result . removeType
515516 } ;
516517 result . objects = Array . isArray ( result . objects )
@@ -1016,6 +1017,11 @@ export class V13ToV14Transformer {
10161017
10171018 if ( node . name !== undefined ) {
10181019 const isInDropContext = context . parentNodeTypes ?. includes ( 'DropStmt' ) ;
1020+ console . log ( 'FunctionParameter debug:' , {
1021+ name : node . name ,
1022+ parentNodeTypes : context . parentNodeTypes ,
1023+ isInDropContext
1024+ } ) ;
10191025 if ( ! isInDropContext ) {
10201026 result . name = node . name ;
10211027 }
You can’t perform that action at this time.
0 commit comments