AstForFunctionsCreator

io.joern.rubysrc2cpg.deprecated.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 astForBlockFunction(ctxStmt: StatementsContext, ctxParam: Option[BlockParameterContext], blockMethodName: String, lineStart: Int, lineEnd: Int, colStart: Int, colEnd: Int): Seq[Ast]
def astForDefinedMethodNameOrSymbolContext(ctx: DefinedMethodNameOrSymbolContext): Seq[Ast]
protected def astForMethodDefinitionContext(ctx: MethodDefinitionContext): Seq[Ast]
protected def astForMethodNameContext(ctx: MethodNameContext): Seq[Ast]
protected def astForProcDefinitionContext(ctx: ProcDefinitionContext): Seq[Ast]
protected def methodForClosureStyleFn(ctx: ParserRuleContext): NewMethod
protected def resolveAlias(name: String): String

Attributes

Returns

the method name if found as an alias, or the given name if not found.

Concrete fields

protected val UNRESOLVED_YIELD: String
protected val YIELD_SUFFIX: String
protected val blockMethods: ListBuffer[Ast]
protected val methodAliases: HashMap[String, String]
protected val methodDefInArgument: ListBuffer[Ast]
protected val methodNameAsIdentifierStack: Stack[Ast]
protected val methodNameToMethod: HashMap[String, NewMethod]
protected val methodNamesWithYield: HashSet[String]