mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Add decl.var.parameters entries to the fully annotated decl
This is the first part of adding parameter substructure so that clients can reason about more of the function declaration. rdar://problem/24292226
This commit is contained in:
@@ -92,6 +92,8 @@ public:
|
||||
}
|
||||
|
||||
void printDeclPre(const Decl *D) override {
|
||||
if (isa<ParamDecl>(D))
|
||||
return; // Parameters are handled specially in addParameters().
|
||||
unsigned StartOffset = OS.tell();
|
||||
EntitiesStack.emplace_back(D, StartOffset);
|
||||
}
|
||||
@@ -104,6 +106,9 @@ public:
|
||||
}
|
||||
|
||||
void printDeclPost(const Decl *D) override {
|
||||
if (isa<ParamDecl>(D))
|
||||
return; // Parameters are handled specially in addParameters().
|
||||
|
||||
assert(EntitiesStack.back().Dcl == D);
|
||||
TextEntity Entity = std::move(EntitiesStack.back());
|
||||
EntitiesStack.pop_back();
|
||||
|
||||
Reference in New Issue
Block a user