AstForHereDocsCreator

io.joern.rubysrc2cpg.deprecated.astcreation.AstForHereDocsCreator
trait AstForHereDocsCreator(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 astForHereDocArgument(ctx: HereDocArgumentContext): Seq[Ast]
protected def astForHereDocLiteral(ctx: HereDocLiteralContext): Ast
protected def scanStmtForHereDoc(stmt: Seq[Ast]): Seq[Ast]

Will determine, if we have recently met a here doc initializer, if this statement should be converted to a here doc literal or returned as-is.

Will determine, if we have recently met a here doc initializer, if this statement should be converted to a here doc literal or returned as-is.

Value parameters

stmt

the statement AST.

Attributes

Returns

the statement AST or nothing if this is determined to be a here doc body.