mirror of
https://github.com/github/codeql.git
synced 2026-02-19 16:33:40 +01:00
Make YieldCallTree post-order
This commit is contained in:
@@ -1293,8 +1293,7 @@ module Trees {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: make post-order
|
||||
private class YieldCallTree extends StandardPreOrderTree, YieldCall {
|
||||
private class YieldCallTree extends StandardPostOrderTree, YieldCall {
|
||||
final override ControlFlowTree getChildNode(int i) { result = this.getArgument(i) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2038,7 +2038,7 @@ cfg.rb:
|
||||
#-----| -> ... != ...
|
||||
|
||||
# 190| enter run_block
|
||||
#-----| -> yield ...
|
||||
#-----| -> 42
|
||||
|
||||
# 190| run_block
|
||||
#-----| -> self
|
||||
@@ -2049,10 +2049,10 @@ cfg.rb:
|
||||
#-----| -> exit run_block
|
||||
|
||||
# 191| yield ...
|
||||
#-----| -> 42
|
||||
#-----| -> exit run_block (normal)
|
||||
|
||||
# 191| 42
|
||||
#-----| -> exit run_block (normal)
|
||||
#-----| -> yield ...
|
||||
|
||||
# 194| call to run_block
|
||||
#-----| -> exit cfg.rb (normal)
|
||||
|
||||
Reference in New Issue
Block a user