AstForExpressionsCreator

io.joern.csharpsrc2cpg.astcreation.AstForExpressionsCreator
trait AstForExpressionsCreator(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 astForArrayInitializerExpression(arrayInitializerExpression: DotNetNodeInfo): Seq[Ast]
protected def astForAttributeLists(attributeList: DotNetNodeInfo): Seq[Ast]
protected def astForBinaryExpression(binaryExpr: DotNetNodeInfo): Seq[Ast]
protected def astForCollectionExpression(collectionExpression: DotNetNodeInfo): Seq[Ast]
protected def astForElementAccessExpression(elementAccessExpression: DotNetNodeInfo): Seq[Ast]
protected def astForEqualsValueClause(clause: DotNetNodeInfo): Seq[Ast]

Handles the = ... part of the equals value clause, thus this only contains an RHS.

Handles the = ... part of the equals value clause, thus this only contains an RHS.

Attributes

def astForExpression(expr: DotNetNodeInfo): Seq[Ast]
protected def astForExpressionElement(expressionElement: DotNetNodeInfo): Seq[Ast]
protected def astForLiteralExpression(_literalNode: DotNetNodeInfo): Seq[Ast]
def astForObjectCreationExpression(objectCreation: DotNetNodeInfo): Seq[Ast]
protected def astForOperand(operandNode: DotNetNodeInfo): Seq[Ast]
protected def astForSimpleMemberAccessExpression(accessExpr: DotNetNodeInfo): Seq[Ast]
protected def astForUnaryExpression(unaryExpr: DotNetNodeInfo): Seq[Ast]
protected def astsForIsPatternExpression(isPatternExpression: DotNetNodeInfo): List[Ast]

Lowers a pattern expression into a condition and then a declaration if one occurs.

Lowers a pattern expression into a condition and then a declaration if one occurs.

Value parameters

isPatternExpression

a pattern expression which may include a declaration.

Attributes

Returns

a condition and then (potentially) declaration.