|
| 1 | +gems/Gemfile: |
| 2 | +# 1| [Toplevel] Gemfile |
| 3 | +# 1| getStmt: [MethodCall] call to source |
| 4 | +# 1| getReceiver: [Self] self |
| 5 | +# 1| getArgument: [StringLiteral] "https://rubygems.org" |
| 6 | +# 1| getComponent: [StringTextComponent] https://rubygems.org |
| 7 | +# 3| getStmt: [MethodCall] call to gem |
| 8 | +# 3| getReceiver: [Self] self |
| 9 | +# 3| getArgument: [StringLiteral] "foo_gem" |
| 10 | +# 3| getComponent: [StringTextComponent] foo_gem |
| 11 | +# 3| getArgument: [StringLiteral] "~> 2.0" |
| 12 | +# 3| getComponent: [StringTextComponent] ~> 2.0 |
| 13 | +# 5| getStmt: [MethodCall] call to source |
| 14 | +# 5| getReceiver: [Self] self |
| 15 | +# 5| getArgument: [StringLiteral] "https://gems.example.com" |
| 16 | +# 5| getComponent: [StringTextComponent] https://gems.example.com |
| 17 | +# 5| getBlock: [DoBlock] do ... end |
| 18 | +# 6| getStmt: [MethodCall] call to gem |
| 19 | +# 6| getReceiver: [Self] self |
| 20 | +# 6| getArgument: [StringLiteral] "my_gem" |
| 21 | +# 6| getComponent: [StringTextComponent] my_gem |
| 22 | +# 6| getArgument: [StringLiteral] "1.0" |
| 23 | +# 6| getComponent: [StringTextComponent] 1.0 |
| 24 | +# 7| getStmt: [MethodCall] call to gem |
| 25 | +# 7| getReceiver: [Self] self |
| 26 | +# 7| getArgument: [StringLiteral] "another_gem" |
| 27 | +# 7| getComponent: [StringTextComponent] another_gem |
| 28 | +# 7| getArgument: [StringLiteral] "3.1.4" |
| 29 | +# 7| getComponent: [StringTextComponent] 3.1.4 |
1 | 30 | calls/calls.rb: |
2 | 31 | # 1| [Toplevel] calls.rb |
3 | 32 | # 2| getStmt: [MethodCall] call to foo |
@@ -2080,6 +2109,65 @@ erb/template.html.erb: |
2080 | 2109 | # 28| getAnOperand/getLeftOperand: [LocalVariableAccess] xs |
2081 | 2110 | # 28| getAnOperand/getRightOperand: [LocalVariableAccess] x |
2082 | 2111 | # 29| getStmt: [LocalVariableAccess] xs |
| 2112 | +gems/test.gemspec: |
| 2113 | +# 1| [Toplevel] test.gemspec |
| 2114 | +# 1| getStmt: [MethodCall] call to new |
| 2115 | +# 1| getReceiver: [ConstantReadAccess] Specification |
| 2116 | +# 1| getScopeExpr: [ConstantReadAccess] Gem |
| 2117 | +# 1| getBlock: [DoBlock] do ... end |
| 2118 | +# 1| getParameter: [SimpleParameter] s |
| 2119 | +# 1| getDefiningAccess: [LocalVariableAccess] s |
| 2120 | +# 2| getStmt: [AssignExpr] ... = ... |
| 2121 | +# 2| getAnOperand/getLeftOperand: [MethodCall] call to name |
| 2122 | +# 2| getReceiver: [LocalVariableAccess] s |
| 2123 | +# 2| getAnOperand/getRightOperand: [StringLiteral] "test" |
| 2124 | +# 2| getComponent: [StringTextComponent] test |
| 2125 | +# 3| getStmt: [AssignExpr] ... = ... |
| 2126 | +# 3| getAnOperand/getLeftOperand: [MethodCall] call to version |
| 2127 | +# 3| getReceiver: [LocalVariableAccess] s |
| 2128 | +# 3| getAnOperand/getRightOperand: [StringLiteral] "0.0.0" |
| 2129 | +# 3| getComponent: [StringTextComponent] 0.0.0 |
| 2130 | +# 4| getStmt: [AssignExpr] ... = ... |
| 2131 | +# 4| getAnOperand/getLeftOperand: [MethodCall] call to summary |
| 2132 | +# 4| getReceiver: [LocalVariableAccess] s |
| 2133 | +# 4| getAnOperand/getRightOperand: [StringLiteral] "foo!" |
| 2134 | +# 4| getComponent: [StringTextComponent] foo! |
| 2135 | +# 5| getStmt: [AssignExpr] ... = ... |
| 2136 | +# 5| getAnOperand/getLeftOperand: [MethodCall] call to description |
| 2137 | +# 5| getReceiver: [LocalVariableAccess] s |
| 2138 | +# 5| getAnOperand/getRightOperand: [StringLiteral] "A test" |
| 2139 | +# 5| getComponent: [StringTextComponent] A test |
| 2140 | +# 6| getStmt: [AssignExpr] ... = ... |
| 2141 | +# 6| getAnOperand/getLeftOperand: [MethodCall] call to authors |
| 2142 | +# 6| getReceiver: [LocalVariableAccess] s |
| 2143 | +# 6| getAnOperand/getRightOperand: [ArrayLiteral] [...] |
| 2144 | +# 6| getElement: [StringLiteral] "Mona Lisa" |
| 2145 | +# 6| getComponent: [StringTextComponent] Mona Lisa |
| 2146 | +# 7| getStmt: [AssignExpr] ... = ... |
| 2147 | +# 7| getAnOperand/getLeftOperand: [MethodCall] call to email |
| 2148 | +# 7| getReceiver: [LocalVariableAccess] s |
| 2149 | +# 7| getAnOperand/getRightOperand: [StringLiteral] "mona@example.com" |
| 2150 | +# 7| getComponent: [StringTextComponent] mona@example.com |
| 2151 | +# 8| getStmt: [AssignExpr] ... = ... |
| 2152 | +# 8| getAnOperand/getLeftOperand: [MethodCall] call to files |
| 2153 | +# 8| getReceiver: [LocalVariableAccess] s |
| 2154 | +# 8| getAnOperand/getRightOperand: [ArrayLiteral] [...] |
| 2155 | +# 8| getElement: [StringLiteral] "lib/test.rb" |
| 2156 | +# 8| getComponent: [StringTextComponent] lib/test.rb |
| 2157 | +# 9| getStmt: [AssignExpr] ... = ... |
| 2158 | +# 9| getAnOperand/getLeftOperand: [MethodCall] call to homepage |
| 2159 | +# 9| getReceiver: [LocalVariableAccess] s |
| 2160 | +# 9| getAnOperand/getRightOperand: [StringLiteral] "https://github.com/github/cod..." |
| 2161 | +# 9| getComponent: [StringTextComponent] https://github.com/github/codeql-ruby |
| 2162 | +gems/lib/test.rb: |
| 2163 | +# 1| [Toplevel] test.rb |
| 2164 | +# 1| getStmt: [ClassDeclaration] Foo |
| 2165 | +# 2| getStmt: [SingletonMethod] greet |
| 2166 | +# 2| getObject: [Self] self |
| 2167 | +# 3| getStmt: [MethodCall] call to puts |
| 2168 | +# 3| getReceiver: [Self] self |
| 2169 | +# 3| getArgument: [StringLiteral] "Hello" |
| 2170 | +# 3| getComponent: [StringTextComponent] Hello |
2083 | 2171 | modules/toplevel.rb: |
2084 | 2172 | # 1| [Toplevel] toplevel.rb |
2085 | 2173 | # 1| getStmt: [MethodCall] call to puts |
|
0 commit comments