mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -34,11 +34,11 @@ class TypeChecker;
|
||||
/// correction even if the corrected name resolves to an overload set.
|
||||
class SyntacticTypoCorrection {
|
||||
public:
|
||||
DeclName WrittenName;
|
||||
DeclNameRef WrittenName;
|
||||
DeclNameLoc Loc;
|
||||
DeclName CorrectedName;
|
||||
|
||||
SyntacticTypoCorrection(DeclName writtenName, DeclNameLoc writtenLoc,
|
||||
SyntacticTypoCorrection(DeclNameRef writtenName, DeclNameLoc writtenLoc,
|
||||
DeclName correctedName)
|
||||
: WrittenName(writtenName), Loc(writtenLoc), CorrectedName(correctedName) {}
|
||||
|
||||
@@ -48,13 +48,13 @@ public:
|
||||
/// A collection of typo-correction candidates.
|
||||
class TypoCorrectionResults {
|
||||
public:
|
||||
DeclName WrittenName;
|
||||
DeclNameRef WrittenName;
|
||||
DeclNameLoc Loc;
|
||||
bool ClaimedCorrection = false;
|
||||
|
||||
SmallVector<ValueDecl *, 4> Candidates;
|
||||
|
||||
TypoCorrectionResults(DeclName writtenName, DeclNameLoc loc)
|
||||
TypoCorrectionResults(DeclNameRef writtenName, DeclNameLoc loc)
|
||||
: WrittenName(writtenName), Loc(loc) {}
|
||||
|
||||
/// Try to claim a unique correction from this collection that's simple
|
||||
|
||||
Reference in New Issue
Block a user