@@ -3,6 +3,7 @@ import io.joern.rubysrc2cpg.parser.RubyParser._
33import io .joern .rubysrc2cpg .parser .{RubyLexer , RubyParser }
44import io .joern .x2cpg .Ast .storeInDiffGraph
55import io .joern .x2cpg .datastructures .Global
6+ import io .joern .x2cpg .Defines .DynamicCallUnknownFullName
67import io .joern .x2cpg .{Ast , AstCreatorBase , AstNodeBuilder }
78import io .shiftleft .codepropertygraph .generated .{
89 ControlStructureTypes ,
@@ -20,7 +21,6 @@ import overflowdb.BatchedUpdate
2021import java .util
2122import scala .collection .mutable
2223import scala .collection .mutable .ListBuffer
23- import scala .io .Source
2424import scala .jdk .CollectionConverters ._
2525
2626class AstCreator (filename : String , global : Global )
@@ -41,8 +41,7 @@ class AstCreator(filename: String, global: Global)
4141 }
4242
4343 object MethodFullNames {
44- val UnknownFullName = " <unknownfullname>"
45- val OperatorPrefix = " <operator>."
44+ val OperatorPrefix = " <operator>."
4645 }
4746
4847 private val logger = LoggerFactory .getLogger(this .getClass)
@@ -569,7 +568,7 @@ class AstCreator(filename: String, global: Global)
569568 .name(Operators .arrayInitializer)
570569 .methodFullName(Operators .arrayInitializer)
571570 .signature(Operators .arrayInitializer)
572- .typeFullName(MethodFullNames . UnknownFullName )
571+ .typeFullName(DynamicCallUnknownFullName )
573572 .dispatchType(DispatchTypes .STATIC_DISPATCH )
574573 .code(ctx.getText)
575574 Seq (callAst(callNode, expAsts))
@@ -587,7 +586,7 @@ class AstCreator(filename: String, global: Global)
587586 .name(ctx.COMMA ().getText)
588587 .methodFullName(Operators .arrayInitializer)
589588 .signature(Operators .arrayInitializer)
590- .typeFullName(MethodFullNames . UnknownFullName )
589+ .typeFullName(DynamicCallUnknownFullName )
591590 .dispatchType(DispatchTypes .STATIC_DISPATCH )
592591 .code(ctx.getText)
593592 .lineNumber(ctx.COMMA ().getSymbol.getLine)
@@ -1200,7 +1199,7 @@ class AstCreator(filename: String, global: Global)
12001199 .name(name)
12011200 .methodFullName(methodFullName)
12021201 .signature(localIdentifier.getText())
1203- .typeFullName(MethodFullNames . UnknownFullName )
1202+ .typeFullName(DynamicCallUnknownFullName )
12041203 .dispatchType(DispatchTypes .STATIC_DISPATCH )
12051204 .code(localIdentifier.getText())
12061205 .lineNumber(line)
@@ -1940,7 +1939,7 @@ class AstCreator(filename: String, global: Global)
19401939 val callNode = NewCall ()
19411940 .name(getActualMethodName(methodCallNode.name))
19421941 .code(ctx.getText)
1943- .methodFullName(MethodFullNames . UnknownFullName )
1942+ .methodFullName(DynamicCallUnknownFullName )
19441943 .signature(" " )
19451944 .dispatchType(DispatchTypes .STATIC_DISPATCH )
19461945 .typeFullName(Defines .Any )
0 commit comments