mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Ruby: CFG: make WhenExpr post-order
This commit is contained in:
@@ -508,20 +508,20 @@ case.rb:
|
||||
#-----| -> exit if_in_case (normal)
|
||||
|
||||
# 2| call to x1
|
||||
#-----| -> when ...
|
||||
#-----| -> 1
|
||||
|
||||
# 2| self
|
||||
#-----| -> call to x1
|
||||
|
||||
# 3| when ...
|
||||
#-----| -> 1
|
||||
#-----| -> case ...
|
||||
|
||||
# 3| 1
|
||||
#-----| no-match -> when ...
|
||||
#-----| no-match -> 2
|
||||
#-----| match -> self
|
||||
|
||||
# 3| then ...
|
||||
#-----| -> case ...
|
||||
#-----| -> when ...
|
||||
|
||||
# 3| ( ... )
|
||||
#-----| -> then ...
|
||||
@@ -549,14 +549,14 @@ case.rb:
|
||||
#-----| -> call to puts
|
||||
|
||||
# 4| when ...
|
||||
#-----| -> 2
|
||||
#-----| -> case ...
|
||||
|
||||
# 4| 2
|
||||
#-----| no-match -> case ...
|
||||
#-----| match -> self
|
||||
|
||||
# 4| then ...
|
||||
#-----| -> case ...
|
||||
#-----| -> when ...
|
||||
|
||||
# 4| call to puts
|
||||
#-----| -> then ...
|
||||
@@ -1712,20 +1712,20 @@ cfg.rb:
|
||||
#-----| -> call to puts
|
||||
|
||||
# 41| case ...
|
||||
#-----| -> when ...
|
||||
#-----| -> b
|
||||
|
||||
# 41| 10
|
||||
#-----| -> when ...
|
||||
|
||||
# 42| when ...
|
||||
#-----| -> 1
|
||||
|
||||
# 42| when ...
|
||||
#-----| -> case ...
|
||||
|
||||
# 42| 1
|
||||
#-----| no-match -> when ...
|
||||
#-----| no-match -> 2
|
||||
#-----| match -> self
|
||||
|
||||
# 42| then ...
|
||||
#-----| -> case ...
|
||||
#-----| -> when ...
|
||||
|
||||
# 42| call to puts
|
||||
#-----| -> then ...
|
||||
@@ -1737,7 +1737,7 @@ cfg.rb:
|
||||
#-----| -> call to puts
|
||||
|
||||
# 43| when ...
|
||||
#-----| -> 2
|
||||
#-----| -> case ...
|
||||
|
||||
# 43| 2
|
||||
#-----| no-match -> 3
|
||||
@@ -1752,7 +1752,7 @@ cfg.rb:
|
||||
#-----| no-match -> self
|
||||
|
||||
# 43| then ...
|
||||
#-----| -> case ...
|
||||
#-----| -> when ...
|
||||
|
||||
# 43| call to puts
|
||||
#-----| -> then ...
|
||||
@@ -1779,10 +1779,10 @@ cfg.rb:
|
||||
#-----| -> chained
|
||||
|
||||
# 48| when ...
|
||||
#-----| -> b
|
||||
#-----| -> case ...
|
||||
|
||||
# 48| ... == ...
|
||||
#-----| false -> when ...
|
||||
#-----| false -> b
|
||||
#-----| true -> self
|
||||
|
||||
# 48| b
|
||||
@@ -1792,7 +1792,7 @@ cfg.rb:
|
||||
#-----| -> ... == ...
|
||||
|
||||
# 48| then ...
|
||||
#-----| -> case ...
|
||||
#-----| -> when ...
|
||||
|
||||
# 48| call to puts
|
||||
#-----| -> then ...
|
||||
@@ -1804,7 +1804,7 @@ cfg.rb:
|
||||
#-----| -> call to puts
|
||||
|
||||
# 49| when ...
|
||||
#-----| -> b
|
||||
#-----| -> case ...
|
||||
|
||||
# 49| ... == ...
|
||||
#-----| false -> b
|
||||
@@ -1827,7 +1827,7 @@ cfg.rb:
|
||||
#-----| -> ... > ...
|
||||
|
||||
# 49| then ...
|
||||
#-----| -> case ...
|
||||
#-----| -> when ...
|
||||
|
||||
# 49| call to puts
|
||||
#-----| -> then ...
|
||||
|
||||
Reference in New Issue
Block a user