OverloadableScope

io.joern.x2cpg.datastructures.OverloadableScope

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TypedScope[M, _, _]

Members list

Value members

Concrete methods

protected def isOverloadedBy(method: M, argTypes: List[String]): Boolean

Determines if, by observing the given argument types, that the method's signature is a plausible match to the observed arguments.

Determines if, by observing the given argument types, that the method's signature is a plausible match to the observed arguments.

The default implementation only considers that the same number of arguments are added and does not account for variadic arguments nor polymorphism.

Value parameters

argTypes

the observed arguments from the call-site.

method

the method meta data.

Attributes

Returns

true if the method could be overloaded by a call with these argument types.

override def tryResolveMethodInvocation(callName: String, argTypes: List[String], typeFullName: Option[String])(implicit tag: ClassTag[M]): Option[M]

Attributes

Definition Classes