[Refactoring] Fix local rename missing occurrences in string interpolations

NameMatcher checked if a StringLiteralExpr was a string segment in an
interpolated string by checking if the parent expression was an
InterpolatedStringLiteralExpr. That's only true pre-type-checking, and unlike
global rename, local rename  uses the type-checked AST.
This commit is contained in:
Nathan Hawes
2017-11-17 20:16:59 -08:00
parent fcc27f04ee
commit c4e87f0861
8 changed files with 27 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
func foo() {
var aa = 3
aa = aa + 1
_ = "before \(aa) after"
return 1
}