mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeComplete] Offer code completion for attached macro attributes
We need to teach code completion how to invoke the type checker for attached macro attributes. After that, everything started working. rdar://105232015
This commit is contained in:
@@ -3258,7 +3258,7 @@ void simple_display(llvm::raw_ostream &out,
|
||||
class ResolveMacroRequest
|
||||
: public SimpleRequest<ResolveMacroRequest,
|
||||
ConcreteDeclRef(UnresolvedMacroReference,
|
||||
const Decl *),
|
||||
DeclContext *),
|
||||
RequestFlags::Cached> {
|
||||
public:
|
||||
using SimpleRequest::SimpleRequest;
|
||||
@@ -3266,9 +3266,9 @@ public:
|
||||
private:
|
||||
friend SimpleRequest;
|
||||
|
||||
ConcreteDeclRef
|
||||
evaluate(Evaluator &evaluator, UnresolvedMacroReference macroRef,
|
||||
const Decl *decl) const;
|
||||
ConcreteDeclRef evaluate(Evaluator &evaluator,
|
||||
UnresolvedMacroReference macroRef,
|
||||
DeclContext *decl) const;
|
||||
|
||||
public:
|
||||
bool isCached() const { return true; }
|
||||
|
||||
Reference in New Issue
Block a user