Dataflow for implicit self argument of methods

This commit is contained in:
Arthur Baars
2021-05-18 11:59:48 +02:00
parent eb8b2558da
commit 0ccca47b01
3 changed files with 37 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
| local_dataflow.rb:1:1:7:3 | self in foo | local_dataflow.rb:3:8:3:10 | self |
| local_dataflow.rb:1:9:1:9 | a | local_dataflow.rb:1:9:1:9 | a |
| local_dataflow.rb:1:9:1:9 | a | local_dataflow.rb:2:7:2:7 | a |
| local_dataflow.rb:2:3:2:7 | ... = ... | local_dataflow.rb:3:13:3:13 | b |

View File

@@ -52,6 +52,8 @@ getTarget
| calls.rb:137:5:137:17 | call to call_block | calls.rb:67:1:69:3 | call_block |
| calls.rb:140:1:140:28 | call to indirect | calls.rb:136:1:138:3 | indirect |
| calls.rb:140:16:140:27 | call to bit_length | calls.rb:78:5:78:23 | bit_length |
| calls.rb:145:9:145:17 | call to to_s | calls.rb:150:5:151:7 | to_s |
| calls.rb:145:9:145:17 | call to to_s | calls.rb:155:5:156:7 | to_s |
| calls.rb:159:1:159:5 | call to new | calls.rb:98:5:98:16 | new |
| calls.rb:159:1:159:14 | call to s_method | calls.rb:144:5:146:7 | s_method |
| calls.rb:160:1:160:5 | call to new | calls.rb:98:5:98:16 | new |
@@ -87,4 +89,3 @@ unresolvedCall
| calls.rb:128:48:128:59 | call to capitalize |
| calls.rb:132:28:132:39 | call to capitalize |
| calls.rb:134:32:134:36 | call to abs |
| calls.rb:145:9:145:17 | call to to_s |