AstForStatementsCreator

io.joern.rubysrc2cpg.astcreation.AstForStatementsCreator
trait AstForStatementsCreator(filename: String)(implicit withSchemaValidation: ValidationMode)

Attributes

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

Members list

Type members

Classlikes

implicit protected class BlockContextExt(val ctx: BlockContext)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

protected def astForBlock(ctx: BlockContext, blockMethodName: Option[String]): Seq[Ast]
protected def astForBodyStatementContext(ctx: BodyStatementContext, isMethodBody: Boolean): Seq[Ast]
protected def astForCommand(ctx: CommandContext): Seq[Ast]
protected def astForCompoundStatement(ctx: CompoundStatementContext, isMethodBody: Boolean, canConsiderAsLeaf: Boolean): Seq[Ast]
protected def astForDoBlock(ctx: DoBlockContext, blockMethodName: Option[String]): Seq[Ast]
protected def astForExpressionOrCommand(ctx: ExpressionOrCommandContext): Seq[Ast]
protected def astForStatements(ctx: StatementsContext, isMethodBody: Boolean, canConsiderAsLeaf: Boolean): Seq[Ast]
protected def lastStmtAsReturnAst(ctx: ParserRuleContext, lastStmtAst: Ast, maybeCode: Option[String]): Ast

If the last statement is a return, this is returned. If not, then a return node is created.

If the last statement is a return, this is returned. If not, then a return node is created.

Attributes

protected def resolveRelativePath(currentFile: String, argsAst: Seq[Ast], callNode: NewCall): Seq[Ast]

Implicits

Implicits

final implicit protected def BlockContextExt(ctx: BlockContext): BlockContextExt