A function allows users to create build abstractions. More...
#include <Function.h>
Public Member Functions | |
Function (UniqPtrVec< Parameter > ¶ms, const FunctionType &ty, UniqPtr< Expression > &body, const SourceRange &loc) | |
const Expression & | body () const |
virtual const FunctionType & | type () const override |
virtual void | PrettyPrint (Bytestream &, size_t indent=0) const override |
Print a human-readable representation to an output stream and return that output stream. | |
virtual void | Accept (Visitor &) const |
virtual dag::ValuePtr | evaluate (EvalContext &) const override |
Public Member Functions inherited from fabrique::HasSource | |
HasSource (const SourceRange &src) | |
const SourceRange & | source () const |
Public Member Functions inherited from fabrique::Printable | |
Printable (const Printable &) | |
Printable & | operator= (const Printable &) |
virtual std::string | str () const |
Public Member Functions inherited from fabrique::Visitable< Visitor > | |
virtual void | Accept (Visitor &) const =0 |
Public Member Functions inherited from fabrique::Typed | |
Typed (const Type &t) | |
Public Member Functions inherited from fabrique::ast::HasParameters | |
HasParameters (UniqPtrVec< Parameter > &) | |
const UniqPtrVec< Parameter > & | parameters () const |
const std::set< std::string > & | parameterNames () const |
void | CheckArguments (const UniqPtrVec< Argument > &, const SourceRange &) const |
ParamIterator | begin () const |
ParamIterator | end () const |
template<class T > | |
StringMap< const T * > | NameArguments (const UniqPtrVec< T > &v) const |
Name all of the arguments in v according to the rules for positional and keyword arguments. | |
Additional Inherited Members | |
Public Types inherited from fabrique::ast::HasParameters | |
using | ParamIterator = UniqPtrVec< Parameter >::const_iterator |
Protected Member Functions inherited from fabrique::ast::Expression | |
Expression (const Type &t, const SourceRange &src) | |
Protected Member Functions inherited from fabrique::ast::Node | |
Node (const SourceRange &src) | |
A function allows users to create build abstractions.
Definition at line 53 of file Function.h.