mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add support for parsing @lifetime attribute to specify lifetime dependencies on declarations
This commit is contained in:
@@ -1178,6 +1178,10 @@ public:
|
||||
MacroSyntax syntax, SourceLoc AtLoc, SourceLoc Loc
|
||||
);
|
||||
|
||||
/// Parse the @lifetime attribute.
|
||||
ParserResult<LifetimeAttr> parseLifetimeAttribute(SourceLoc AtLoc,
|
||||
SourceLoc Loc);
|
||||
|
||||
/// Parse a specific attribute.
|
||||
ParserStatus parseDeclAttribute(DeclAttributes &Attributes, SourceLoc AtLoc,
|
||||
SourceLoc AtEndLoc,
|
||||
|
||||
Reference in New Issue
Block a user