Address feedback on StringInterpolationComponent::getStmt

This commit is contained in:
Nick Rolfe
2021-02-17 10:57:01 +00:00
parent 97654eb338
commit c019da83f3

View File

@@ -119,9 +119,8 @@ module StringInterpolationComponent {
final override string toString() { result = "#{...}" }
final override Expr getStmt(int n) {
// TODO: fix grammar to properly handle a sequence of more than one expr,
// e.g. #{ foo; bar }
final override Stmt getStmt(int n) {
// Generated AST can currently only represent a single statement in an interpolation.
n = 0 and
result = generated.getChild()
}