mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Thread DeclNameRef through most of the compiler
This huge commit contains as many of the mechanical changes as possible.
This commit is contained in:
@@ -67,14 +67,14 @@ class DebuggerTestingTransform : public ASTWalker {
|
||||
ASTContext &Ctx;
|
||||
DiscriminatorFinder &DF;
|
||||
std::vector<DeclContext *> LocalDeclContextStack;
|
||||
const DeclName StringForPrintObjectName;
|
||||
const DeclName DebuggerTestingCheckExpectName;
|
||||
const DeclNameRef StringForPrintObjectName;
|
||||
const DeclNameRef DebuggerTestingCheckExpectName;
|
||||
|
||||
public:
|
||||
DebuggerTestingTransform(ASTContext &Ctx, DiscriminatorFinder &DF)
|
||||
: Ctx(Ctx), DF(DF),
|
||||
StringForPrintObjectName((Ctx.getIdentifier("_stringForPrintObject"))),
|
||||
DebuggerTestingCheckExpectName((Ctx.getIdentifier("_debuggerTestingCheckExpect"))) {}
|
||||
StringForPrintObjectName(DeclNameRef_(Ctx.getIdentifier("_stringForPrintObject"))),
|
||||
DebuggerTestingCheckExpectName(DeclNameRef_(Ctx.getIdentifier("_debuggerTestingCheckExpect"))) {}
|
||||
|
||||
bool walkToDeclPre(Decl *D) override {
|
||||
pushLocalDeclContext(D);
|
||||
|
||||
Reference in New Issue
Block a user