AstCreatorHelper

io.joern.rubysrc2cpg.astcreation.AstCreatorHelper
trait AstCreatorHelper(implicit withSchemaValidation: ValidationMode)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AstCreator
Self type

Members list

Value members

Concrete methods

protected def astForAssignment(lhs: NewNode, rhs: NewNode, lineNumber: Option[Int], columnNumber: Option[Int]): Ast
protected def astForAssignment(lhs: Ast, rhs: Ast, lineNumber: Option[Int], columnNumber: Option[Int], code: Option[String]): Ast
override def code(node: RubyNode): String

Attributes

Definition Classes
override def column(node: RubyNode): Option[Int]

Attributes

Definition Classes
override def columnEnd(node: RubyNode): Option[Int]

Attributes

Definition Classes
protected def computeFullName(name: String, counter: Option[Int]): String

Ensures a unique full name is assigned based on the current scope.

Ensures a unique full name is assigned based on the current scope.

Value parameters

counter

an optional counter, used to create unique instances in the case of redefinitions.

name

the name of the entity.

Attributes

Returns

a unique full name.

protected def handleVariableOccurrence(node: RubyNode): Ast
protected def isBuiltin(x: String): Boolean
protected def isBundledClass(x: String): Boolean
override def line(node: RubyNode): Option[Int]

Attributes

Definition Classes
override def lineEnd(node: RubyNode): Option[Int]

Attributes

Definition Classes
protected def memberForMethod(method: NewMethod, astParentType: Option[String], astParentFullName: Option[String]): NewMember
protected def pathSep: String
protected def prefixAsBundledType(x: String): String
protected def prefixAsKernelDefined(x: String): String

Concrete fields

protected val AssignmentOperatorNames: Map[String, String]
protected val BinaryOperatorNames: Map[String, String]
protected val UnaryOperatorNames: Map[String, String]