mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Macros] Initial implementation of conformance macros.
This commit is contained in:
@@ -931,6 +931,9 @@ Optional<MacroRole> SourceFile::getFulfilledMacroRole() const {
|
||||
case GeneratedSourceInfo::PeerMacroExpansion:
|
||||
return MacroRole::Peer;
|
||||
|
||||
case GeneratedSourceInfo::ConformanceMacroExpansion:
|
||||
return MacroRole::Conformance;
|
||||
|
||||
case GeneratedSourceInfo::ReplacedFunctionBody:
|
||||
case GeneratedSourceInfo::PrettyPrinted:
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user