Fabrique

A build language for complex systems

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fabrique::ast::Parameter Class Reference

A formal parameter in a fabrique::ast::Function. More...

#include <Parameter.h>

Inheritance diagram for fabrique::ast::Parameter:
fabrique::ast::Node fabrique::Typed fabrique::HasSource fabrique::Printable fabrique::Visitable< Visitor > fabrique::Uncopyable

Public Member Functions

 Parameter (UniqPtr< Identifier > &id, const Type &resultTy, UniqPtr< Expression > &&e=nullptr)
 
const IdentifiergetName () const
 
const UniqPtr< Expression > & defaultValue () const
 
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 std::shared_ptr
< dag::Parameter
evaluate (EvalContext &) const
 
- Public Member Functions inherited from fabrique::HasSource
 HasSource (const SourceRange &src)
 
const SourceRangesource () const
 
- Public Member Functions inherited from fabrique::Printable
 Printable (const Printable &)
 
Printableoperator= (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)
 
virtual const Typetype () const
 

Additional Inherited Members

- Protected Member Functions inherited from fabrique::ast::Node
 Node (const SourceRange &src)
 

Detailed Description

A formal parameter in a fabrique::ast::Function.

Definition at line 54 of file Parameter.h.


The documentation for this class was generated from the following files: