Fix handling of tagged template literals side-effect detection to consider contained expressions.
@@ -371,8 +371,11 @@ public class AstAnalyzer {
return true;
case TAGGED_TEMPLATELIT:
- // TODO(b/128527671): Inspect the children of the expression for side-effects.
- return functionCallHasSideEffects(n);
+ if (functionCallHasSideEffects(n)) {
+ return true;
+ }
+ // Need to look at the children for their possible side-effects.
+ break;
case CAST:
case AND:
