mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add @functionBuilder and check its applications to parameters.
This commit is contained in:
@@ -5334,6 +5334,14 @@ public:
|
||||
assert(isVariadic());
|
||||
return getVarargBaseTy(getInterfaceType());
|
||||
}
|
||||
|
||||
/// Retrieve the attribute marking this as a function builder parameter,
|
||||
/// if there is one.
|
||||
CustomAttr *getAttachedFunctionBuilder() const;
|
||||
|
||||
/// Retrieve the @functionBuilder type attached to this parameter,
|
||||
/// if there is one.
|
||||
NominalTypeDecl *getFunctionBuilderType() const;
|
||||
|
||||
SourceRange getSourceRange() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user