mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Markup] Add LocalizationKey simple field
To be vended as an optional part of SourceKit cursorInfo response. rdar://problem/30383329
This commit is contained in:
@@ -272,6 +272,8 @@ bool extractSimpleField(
|
||||
llvm::raw_svector_ostream OS(Scratch);
|
||||
printInlinesUnder(TF, OS);
|
||||
Tags.insert(MC.allocateCopy(OS.str()));
|
||||
} else if (auto LKF = dyn_cast<markup::LocalizationKeyField>(Field)) {
|
||||
Parts.LocalizationKeyField = LKF;
|
||||
} else {
|
||||
BodyNodes.push_back(Field);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user