nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nixf::ExprCall Class Reference

A call/apply to some function. More...

#include <Expr.h>

Inheritance diagram for nixf::ExprCall:
[legend]
Collaboration diagram for nixf::ExprCall:
[legend]

Public Member Functions

 ExprCall (LexerCursorRange Range, std::shared_ptr< Expr > Fn, std::vector< std::shared_ptr< Expr > > Args)
 
Exprfn () const
 
const std::vector< std::shared_ptr< Expr > > & args () const
 
ChildVector children () const override
 
- Public Member Functions inherited from nixf::Expr
bool maybeLambda () const
 
- Public Member Functions inherited from nixf::Node
NodeKind kind () const
 
LexerCursorRange range () const
 
PositionRange positionRange () const
 
LexerCursor lCur () const
 
LexerCursor rCur () const
 
const char * name () const
 
virtual ~Node ()=default
 
const Nodedescend (PositionRange Range) const
 Descendant node that contains the given range.
 
std::string_view src (std::string_view Src) const
 

Additional Inherited Members

- Public Types inherited from nixf::Node
enum  NodeKind { NK_BeginExpr , NK_EndExpr }
 
using ChildVector = boost::container::small_vector<Node *, 8>
 
- Static Public Member Functions inherited from nixf::Expr
static bool classof (const Node *N)
 
static bool isExpr (NodeKind Kind)
 
static bool maybeLambda (NodeKind Kind)
 
- Static Public Member Functions inherited from nixf::Node
static const char * name (NodeKind Kind)
 
- Protected Member Functions inherited from nixf::Expr
 Expr (NodeKind Kind, LexerCursorRange Range)
 
- Protected Member Functions inherited from nixf::Node
 Node (NodeKind Kind, LexerCursorRange Range)
 

Detailed Description

A call/apply to some function.

Definition at line 35 of file Expr.h.

Constructor & Destructor Documentation

◆ ExprCall()

nixf::ExprCall::ExprCall ( LexerCursorRange Range,
std::shared_ptr< Expr > Fn,
std::vector< std::shared_ptr< Expr > > Args )
inline

Definition at line 40 of file Expr.h.

Member Function Documentation

◆ args()

const std::vector< std::shared_ptr< Expr > > & nixf::ExprCall::args ( ) const
inline

Definition at line 51 of file Expr.h.

◆ children()

ChildVector nixf::ExprCall::children ( ) const
inlineoverridevirtual

Implements nixf::Node.

Definition at line 55 of file Expr.h.

◆ fn()

Expr & nixf::ExprCall::fn ( ) const
inline

Definition at line 46 of file Expr.h.


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