rubysrc2cpg
rubysrc2cpg
API
io.joern.rubysrc2cpg
astcreation
AntlrParser
AstCreator
AstCreatorHelper
AstIterExt
TerminalNodeExt
AstForControlStructuresCreator
AstForDeclarationsCreator
AstForExpressionsCreator
AstForFunctionsCreator
AstForHereDocsCreator
AstForPrimitivesCreator
AstForStatementsCreator
BlockContextExt
AstForTypesCreator
ClassDefinitionPrimaryContextExt
ClassOrModuleReferenceContextExt
GlobalTypes
ResourceManagedParser
RubyOperators
RubyScope
parser
AstPrinter
HereDocHandling
HereDocHandling
InterpolationHandling
QuotedLiteralHandling
RegexLiteralHandling
RubyLexerBase
RubyLexerPostProcessor
passes
AstCreationPass
AstPackagePass
ConfigFileCreationPass
Defines
IdentifierToCallPass
ImportResolverPass
RubyTypeHintCallLinker
RubyTypeRecoveryPass
utils
MethodTableModel
ModuleModel
PackageContext
PackageTable
TypeDeclModel
Config
Main
RubySrc2Cpg
RubySrc2Cpg
rubysrc2cpg
/
io.joern.rubysrc2cpg
/
io.joern.rubysrc2cpg.astcreation
/
AstForStatementsCreator
AstForStatementsCreator
io.joern.rubysrc2cpg.astcreation.AstForStatementsCreator
trait
AstForStatementsCreator
(
filename
:
String
)(
implicit
withSchemaValidation
:
ValidationMode
)
Attributes
Graph
Reset zoom
Hide graph
Show graph
Supertypes
class
Object
trait
Matchable
class
Any
Known subtypes
class
AstCreator
Self type
AstCreator
Members list
Clear all
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
In this article
Attributes
Members list
Type members
Classlikes
Value members
Concrete methods
Implicits
Implicits