Add @functionBuilder and check its applications to parameters.

This commit is contained in:
John McCall
2019-04-16 01:34:05 -04:00
parent b31c142efb
commit 1e4f5f7750
12 changed files with 233 additions and 2 deletions

View File

@@ -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;