mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Fix AST representation of WhenExpr and WhenBranch
This commit is contained in:
committed by
Ian Lynagh
parent
4b22e1a378
commit
64531dd717
@@ -2413,7 +2413,7 @@ open class KotlinFileExtractor(
|
||||
val bLocId = tw.getLocation(b)
|
||||
tw.writeStmts_whenbranch(bId, id, i, callable)
|
||||
tw.writeHasLocation(bId, bLocId)
|
||||
extractExpressionExpr(b.condition, callable, bId, 0, exprParent.enclosingStmt)
|
||||
extractExpressionExpr(b.condition, callable, bId, 0, bId)
|
||||
extractExpressionStmt(b.result, callable, bId, 1)
|
||||
if(b is IrElseBranch) {
|
||||
tw.writeWhen_branch_else(bId)
|
||||
|
||||
Reference in New Issue
Block a user