mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Use CustomAttr's DeclContext for ResolveMacroRequest
Remove the DeclContext parameter from ResolveMacroRequest, we can now retrieve the DeclContext either from the CustomAttr or macro expansion expr/decl directly.
This commit is contained in:
@@ -3304,7 +3304,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
auto theAttr = cast<CustomAttr>(DA);
|
||||
|
||||
// Macro attributes are not serialized.
|
||||
if (D->getResolvedMacro(const_cast<CustomAttr *>(theAttr)))
|
||||
if (theAttr->getResolvedMacro())
|
||||
return;
|
||||
|
||||
auto attrType =
|
||||
|
||||
Reference in New Issue
Block a user