Merge pull request #82338 from AnthonyLatsis/jepa

ASTBridging: Bridge more enums directly
This commit is contained in:
Anthony Latsis
2025-06-20 23:13:50 +01:00
committed by GitHub
56 changed files with 952 additions and 1131 deletions

View File

@@ -853,8 +853,8 @@ public:
auto *LSub = dyn_cast<SDKNodeDeclSubscript>(Left);
auto *RSub = dyn_cast<SDKNodeDeclSubscript>(Right);
SequentialNodeMatcher(LSub->getChildren(), RSub->getChildren(), *this).match();
#define ACCESSOR(ID) \
singleMatch(LSub->getAccessor(AccessorKind::ID), \
#define ACCESSOR(ID, KEYWORD) \
singleMatch(LSub->getAccessor(AccessorKind::ID), \
RSub->getAccessor(AccessorKind::ID), *this);
#include "swift/AST/AccessorKinds.def"
break;
@@ -864,8 +864,8 @@ public:
auto *RVar = dyn_cast<SDKNodeDeclVar>(Right);
// Match property type.
singleMatch(LVar->getType(), RVar->getType(), *this);
#define ACCESSOR(ID) \
singleMatch(LVar->getAccessor(AccessorKind::ID), \
#define ACCESSOR(ID, KEYWORD) \
singleMatch(LVar->getAccessor(AccessorKind::ID), \
RVar->getAccessor(AccessorKind::ID), *this);
#include "swift/AST/AccessorKinds.def"
break;