We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97654eb commit c019da8Copy full SHA for c019da8
1 file changed
ql/src/codeql_ruby/ast/internal/Literal.qll
@@ -119,9 +119,8 @@ module StringInterpolationComponent {
119
120
final override string toString() { result = "#{...}" }
121
122
- final override Expr getStmt(int n) {
123
- // TODO: fix grammar to properly handle a sequence of more than one expr,
124
- // e.g. #{ foo; bar }
+ final override Stmt getStmt(int n) {
+ // Generated AST can currently only represent a single statement in an interpolation.
125
n = 0 and
126
result = generated.getChild()
127
}
0 commit comments