[test] Update Index/refactoring property wrapper tests to use wrappedValue rather than value

Plus other small cleanups to comments and variable names.
This commit is contained in:
Nathan Hawes
2019-06-25 09:48:35 -07:00
parent 91e2e35a77
commit c7e8b3f693
18 changed files with 77 additions and 63 deletions

View File

@@ -1120,8 +1120,8 @@ class Traversal : public ASTVisitor<Traversal, Expr*, Stmt*,
if (!Walker.walkToParameterListPre(PL))
return false;
// Walk each parameter decl, typeloc and default value.
for (auto P : *PL) {
// Walk each parameter's decl and typeloc and default value.
if (doIt(P))
return true;
@@ -1137,7 +1137,7 @@ class Traversal : public ASTVisitor<Traversal, Expr*, Stmt*,
P->setDefaultValue(res);
}
}
return Walker.walkToParameterListPost(PL);
}
@@ -1255,7 +1255,6 @@ public:
return false;
}
/// Returns true on failure
bool doIt(TypeLoc &TL) {
if (!Walker.walkToTypeLocPre(TL))
return false;