AstCreatorHelper

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

Attributes

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

Members list

Type members

Classlikes

implicit class TerminalNodeExt(n: TerminalNode)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

protected def astForAssignment(lhs: NewNode, rhs: NewNode, lineNumber: Option[Integer], colNumber: Option[Integer]): Ast
protected def astForControlStructure(parserTypeName: String, node: TerminalNode, controlStructureType: String, code: String): Ast
protected def astForFieldAccess(ctx: ParserRuleContext, baseNode: NewNode): Ast
override def code(node: ParserRuleContext): String

Attributes

Definition Classes
protected def column(ctx: ParserRuleContext): Option[Integer]
protected def columnEnd(ctx: ParserRuleContext): Option[Integer]
protected def createIdentifierWithScope(ctx: ParserRuleContext, name: String, code: String, typeFullName: String, dynamicTypeHints: Seq[String]): NewIdentifier
protected def createIdentifierWithScope(name: String, code: String, typeFullName: String, dynamicTypeHints: Seq[String], lineNumber: Option[Integer], columnNumber: Option[Integer]): NewIdentifier
protected def createLiteralNode(code: String, typeFullName: String, dynamicTypeHints: Seq[String], lineNumber: Option[Int], columnNumber: Option[Int]): NewLiteral
protected def createMethodParameterIn(name: String, lineNumber: Option[Integer], colNumber: Option[Integer], typeFullName: String, order: Int, index: Int): NewMethodParameterIn
protected def createOpCall(node: TerminalNode, operation: String, code: String, typeFullName: String): NewCall
protected def createThisIdentifier(ctx: ParserRuleContext, typeFullName: String, dynamicTypeHints: List[String]): NewIdentifier
protected def getOperatorName(token: Token): String
protected def getUnusedVariableNames(usedVariableNames: HashMap[String, Int], variableName: String): String
protected def isBuiltin(x: String): Boolean
protected def line(ctx: ParserRuleContext): Option[Integer]
protected def lineEnd(ctx: ParserRuleContext): Option[Integer]
protected def newFieldIdentifier(ctx: ParserRuleContext): NewFieldIdentifier
protected def prefixAsBuiltin(x: String): String
protected def returnNode(node: TerminalNode, code: String): NewReturn
protected def text(ctx: ParserRuleContext): String

Implicits

Implicits

final implicit def TerminalNodeExt(n: TerminalNode): TerminalNodeExt