File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
joern-cli/frontends/swiftsrc2cpg/src/main/scala/io/joern/swiftsrc2cpg/astcreation Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -349,11 +349,6 @@ trait AstForDeclSyntaxCreator(implicit withSchemaValidation: ValidationMode) {
349349 // adding all static members and retrieving their initialization calls
350350 val staticMemberInits = allClassMembers.filter(isStaticMember)
351351
352- methodAstParentStack.pop()
353- typeRefIdStack.pop()
354- scope.popScope()
355- scope.popScope()
356-
357352 if (staticMemberInits.nonEmpty) {
358353 val init = staticInitMethodAstAndBlock(
359354 node,
@@ -367,6 +362,11 @@ trait AstForDeclSyntaxCreator(implicit withSchemaValidation: ValidationMode) {
367362 diffGraph.addEdge(typeDeclNode_, init.method, EdgeTypes .AST )
368363 }
369364
365+ methodAstParentStack.pop()
366+ typeRefIdStack.pop()
367+ scope.popScope()
368+ scope.popScope()
369+
370370 Ast (typeDeclNode_)
371371 }
372372
@@ -490,11 +490,6 @@ trait AstForDeclSyntaxCreator(implicit withSchemaValidation: ValidationMode) {
490490 // adding all static members and retrieving their initialization calls
491491 val staticMemberInits = allClassMembers.filter(isStaticMember)
492492
493- methodAstParentStack.pop()
494- typeRefIdStack.pop()
495- scope.popScope()
496- scope.popScope()
497-
498493 if (staticMemberInits.nonEmpty) {
499494 val init = staticInitMethodAstAndBlock(
500495 node,
@@ -508,6 +503,11 @@ trait AstForDeclSyntaxCreator(implicit withSchemaValidation: ValidationMode) {
508503 diffGraph.addEdge(typeDeclNode_, init.method, EdgeTypes .AST )
509504 }
510505
506+ methodAstParentStack.pop()
507+ typeRefIdStack.pop()
508+ scope.popScope()
509+ scope.popScope()
510+
511511 Ast (typeDeclNode_)
512512 }
513513
You can’t perform that action at this time.
0 commit comments