AstNodeBuilder

io.joern.swiftsrc2cpg.astcreation.AstNodeBuilder
trait AstNodeBuilder(implicit withSchemaValidation: ValidationMode)

Attributes

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

Members list

Value members

Concrete methods

def callNode(node: SwiftNode, code: String, name: String, dispatchType: String): NewCall
protected def codeOf(node: NewNode): String
protected def createAssignmentCallAst(destId: NewNode, sourceId: NewNode, code: String, line: Option[Integer], column: Option[Integer]): Ast
protected def createAssignmentCallAst(dest: Ast, source: Ast, code: String, line: Option[Integer], column: Option[Integer]): Ast
protected def createFieldAccessCallAst(baseNode: NewNode, partNode: NewNode, line: Option[Integer], column: Option[Integer]): Ast
protected def createFieldAccessCallAst(baseAst: Ast, partNode: NewNode, line: Option[Integer], column: Option[Integer]): Ast
protected def createFieldIdentifierNode(name: String, line: Option[Integer], column: Option[Integer]): NewFieldIdentifier
protected def createFunctionTypeAndTypeDeclAst(node: SwiftNode, methodNode: NewMethod, methodName: String, methodFullName: String): Ast
protected def createIndexAccessCallAst(baseNode: NewNode, partNode: NewNode, line: Option[Integer], column: Option[Integer]): Ast
protected def createIndexAccessCallAst(baseAst: Ast, partAst: Ast, line: Option[Integer], column: Option[Integer], additionalArgsAst: Seq[Ast]): Ast
protected def createJumpTarget(switchCase: SwitchCaseSyntax | IfConfigDeclSyntax): NewJumpTarget
protected def createStaticCallNode(code: String, callName: String, fullName: String, line: Option[Integer], column: Option[Integer]): NewCall
protected def identifierNode(node: SwiftNode, name: String): NewIdentifier
protected def identifierNode(node: SwiftNode, name: String, dynamicTypeHints: Seq[String]): NewIdentifier
protected def literalNode(node: SwiftNode, code: String, dynamicTypeOption: Option[String]): NewLiteral
protected def setOrderExplicitly(ast: Ast, order: Int): Unit
def staticInitMethodAstAndBlock(initAsts: List[Ast], fullName: String, signature: Option[String], returnType: String, fileName: Option[String], lineNumber: Option[Integer], columnNumber: Option[Integer]): AstAndMethod
protected def typeHintForThisExpression(): Seq[String]