mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
RequestResult class and Pass*InfoForDecl fixes
This commit is contained in:
@@ -148,8 +148,14 @@ public:
|
||||
|
||||
TestCursorInfo TestInfo;
|
||||
getLang().getCursorInfo(DocName, Offset, 0, false, false, Args,
|
||||
[&](const CursorInfoData &Info, StringRef Error) {
|
||||
TestInfo.Error = Error;
|
||||
[&](const RequestResult<CursorInfoData> &Result) {
|
||||
assert(!Result.isCancelled());
|
||||
if (Result.isError()) {
|
||||
TestInfo.Error = Result.getError();
|
||||
sema.signal();
|
||||
return;
|
||||
}
|
||||
const CursorInfoData &Info = Result.value();
|
||||
TestInfo.Name = Info.Name;
|
||||
TestInfo.Typename = Info.TypeName;
|
||||
TestInfo.Filename = Info.Filename;
|
||||
|
||||
Reference in New Issue
Block a user