Skip to content

Commit

Permalink
[c#] pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDreyer committed Apr 2, 2024
1 parent ceae240 commit 23906b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
csharpsrc2cpg {
dotnetastgen_version: "0.29.0"
dotnetastgen_version: "0.31.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ trait AstForExpressionsCreator(implicit withSchemaValidation: ValidationMode) {

val instanceOfCallNode = newOperatorCallNode(
Operators.instanceOf,
s"${designation.code} instanceof ${typeInfo.code}",
code(pattern),
Option(BuiltinTypes.Bool),
line(expressionNode),
column(expressionNode)
Expand Down Expand Up @@ -615,13 +615,8 @@ trait AstForExpressionsCreator(implicit withSchemaValidation: ValidationMode) {

val typeFullName = nodeTypeFullName(expr)

val equalCallNode = newOperatorCallNode(
Operators.equals,
s"${expressionNode.code} == ${expr.code}",
Option(BuiltinTypes.Bool),
line(expr),
column(expr)
)
val equalCallNode =
newOperatorCallNode(Operators.equals, code(pattern), Option(BuiltinTypes.Bool), line(expr), column(expr))
val equalCallAst = callAst(equalCallNode, expression ++ exprAst)

List(equalCallAst)
Expand Down

0 comments on commit 23906b4

Please sign in to comment.