AstForDeclarationsCreator

io.joern.csharpsrc2cpg.astcreation.AstForDeclarationsCreator
trait AstForDeclarationsCreator(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 astForBlock(body: DotNetNodeInfo, code: Option[String], prefixAsts: List[Ast]): Ast
protected def astForClassDeclaration(classDecl: DotNetNodeInfo): Seq[Ast]
protected def astForConstructorDeclaration(constructorDecl: DotNetNodeInfo): Seq[Ast]
protected def astForEnumDeclaration(enumDecl: DotNetNodeInfo): Seq[Ast]
protected def astForEnumMemberDeclaration(enumMemberDecl: DotNetNodeInfo): Seq[Ast]

Creates enum members. These are associated with integer types, and by default, are int types.

Creates enum members. These are associated with integer types, and by default, are int types.

Attributes

See also
protected def astForFieldDeclaration(fieldDecl: DotNetNodeInfo): Seq[Ast]
protected def astForLocalDeclarationStatement(localDecl: DotNetNodeInfo): Seq[Ast]
protected def astForMethodDeclaration(methodDecl: DotNetNodeInfo): Seq[Ast]
protected def astForNamespaceDeclaration(namespace: DotNetNodeInfo): Seq[Ast]
protected def astForPropertyDeclaration(propertyDecl: DotNetNodeInfo): Seq[Ast]
protected def astForRecordDeclaration(recordDecl: DotNetNodeInfo): Seq[Ast]
protected def astForSimpleLambdaExpression(lambdaExpression: DotNetNodeInfo, paramTypeHint: Option[String]): Seq[Ast]

Creates an AST for a simple x => { ... } style lambda expression

Creates an AST for a simple x => { ... } style lambda expression

Value parameters

lambdaExpression

the expression.

paramTypeHint

a type that could hint at what the parameter type may be.

Attributes

protected def astForThisReceiver(invocationExpr: DotNetNodeInfo, typeFullName: Option[String]): Ast
protected def astForVariableDeclaration(varDecl: DotNetNodeInfo, isStatic: Boolean): Seq[Ast]
protected def astForVariableDeclaration(varDecl: DotNetNodeInfo): Seq[Ast]
protected def astForVariableDeclarator(varDecl: DotNetNodeInfo, typeFullName: String, shouldPushVariable: Boolean): Seq[Ast]
protected def astVariableDeclarationForInitializedFields(fieldDecls: Seq[FieldDecl]): Seq[Ast]