AstForFunctionsCreator

io.joern.rubysrc2cpg.astcreation.AstForFunctionsCreator
trait AstForFunctionsCreator(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 astForMethodDeclaration(node: MethodDeclaration, withRefsAndTypes: Boolean): Seq[Ast]

Creates method declaration related structures.

Creates method declaration related structures.

Value parameters

node

the node to create the AST structure from.

withRefsAndTypes

if true, will generate a type decl, type ref, and method ref. This is useful for lambda methods.

Attributes

Returns

a method declaration with additional refs and types if specified.

protected def astForParameter(node: RubyNode, index: Int): Ast