mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Add DeclBaseName::Kind::Constructor
Not used yet.
This commit is contained in:
@@ -1210,11 +1210,14 @@ static StringRef getEscapedName(DeclBaseName name) {
|
||||
switch (name.getKind()) {
|
||||
case DeclBaseName::Kind::Subscript:
|
||||
return "subscript";
|
||||
case DeclBaseName::Kind::Constructor:
|
||||
return "init";
|
||||
case DeclBaseName::Kind::Destructor:
|
||||
return "deinit";
|
||||
case DeclBaseName::Kind::Normal:
|
||||
return llvm::StringSwitch<StringRef>(name.getIdentifier().str())
|
||||
.Case("subscript", "`subscript`")
|
||||
.Case("init", "`init`")
|
||||
.Case("deinit", "`deinit`")
|
||||
.Default(name.getIdentifier().str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user