[DAS] Fixes false-positive on comment references for `unnecessary_underscores`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code looks good. For my own understanding - do we know why `referencedElements` was declared `late`?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code looks good. For my own understanding - do we know why `referencedElements` was declared `late`?
Because if we never get to the point where a parameter name `isJustUnderscores`, we don't initialize the variable. This way we avoid doing the computation for all referenced names and we don't have to use `collectReferences` multiple times inside the loop (every time another parameter name `isJustUnderscores`).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Felipe MorschelCode looks good. For my own understanding - do we know why `referencedElements` was declared `late`?
Because if we never get to the point where a parameter name `isJustUnderscores`, we don't initialize the variable. This way we avoid doing the computation for all referenced names and we don't have to use `collectReferences` multiple times inside the loop (every time another parameter name `isJustUnderscores`).
The makes sense, thanks. That's a useful strategy for avoiding excess computation - I'm going to try to apply that when I code
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |