mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeComplete] Offer completion suggestions for default argument values inside the macro declaration
We were not type checking the default argument initializer because `MacroDecl` is not an `AbstractFucntionDecl`. Add `MacroDecl` to the list of nodes we know how to get parameters from. rdar://108163564
This commit is contained in:
@@ -8871,6 +8871,10 @@ const ParamDecl *getParameterAt(ConcreteDeclRef declRef, unsigned index);
|
||||
/// nullptr if the source does not have a parameter list.
|
||||
const ParamDecl *getParameterAt(const ValueDecl *source, unsigned index);
|
||||
|
||||
/// Retrieve parameter declaration from the given source at given index, or
|
||||
/// nullptr if the source does not have a parameter list.
|
||||
const ParamDecl *getParameterAt(const DeclContext *source, unsigned index);
|
||||
|
||||
void simple_display(llvm::raw_ostream &out,
|
||||
OptionSet<NominalTypeDecl::LookupDirectFlags> options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user