AstCreatorHelper

io.joern.c2cpg.astcreation.AstCreatorHelper
trait AstCreatorHelper(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 astForNode(node: IASTNode): Ast
protected def astsForComments(iASTTranslationUnit: IASTTranslationUnit): Seq[Ast]
protected def astsForDependenciesAndImports(iASTTranslationUnit: IASTTranslationUnit): Seq[Ast]
protected def cleanType(rawType: String): String
def createCallAst(callNode: NewCall, arguments: Seq[Ast], base: Option[Ast], receiver: Option[Ast]): Ast
protected def fileName(node: IASTNode): String
protected def functionTypeToSignature(typ: IFunctionType): String
protected def isIncludedNode(node: IASTNode): Boolean
protected def notHandledYet(node: IASTNode): Ast
protected def nullSafeAst(node: IASTExpression, argIndex: Int): Ast
protected def nullSafeAst(node: IASTInitializer): Ast
protected def nullSafeAst(node: IASTExpression): Ast
protected def nullSafeAst(node: IASTDeclaration): Seq[Ast]
protected def nullSafeAst(node: IASTStatement, argIndex: Int): Seq[Ast]
protected def nullSafeCode(node: IASTNode): String
protected def nullSafeFileLocation(node: IASTNode): Option[IASTFileLocation]
protected def nullSafeFileLocationLast(node: IASTNode): Option[IASTFileLocation]
protected def offsetToColumn(node: IASTNode, offset: Int): Int
protected def registerMethodDeclaration(fullName: String, methodInfo: MethodInfo): Unit
protected def registerMethodDefinition(fullName: String): Unit
protected def registerType(typeName: String): String
protected def safeGetBinding(name: IASTName): Option[IBinding]
protected def safeGetBinding(idExpression: IASTIdExpression): Option[IBinding]
protected def safeGetBinding(spec: IASTNamedTypeSpecifier): Option[IBinding]
protected def safeGetEvaluation(expr: ICPPASTExpression): Option[ICPPEvaluation]
protected def safeGetType(tpe: IType): String
protected def typeFor(node: IASTNode): String
protected def typeForDeclSpecifier(spec: IASTNode, index: Int): String
protected def uniqueName(target: String, name: String, fullName: String): (String, String)