Skip to content

Commit c019da8

Browse files
committed
Address feedback on StringInterpolationComponent::getStmt
1 parent 97654eb commit c019da8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ql/src/codeql_ruby/ast/internal/Literal.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ module StringInterpolationComponent {
119119

120120
final override string toString() { result = "#{...}" }
121121

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 }
122+
final override Stmt getStmt(int n) {
123+
// Generated AST can currently only represent a single statement in an interpolation.
125124
n = 0 and
126125
result = generated.getChild()
127126
}

0 commit comments

Comments
 (0)