#include <Expr.h>
Definition at line 189 of file Expr.h.
FunctionCallExpr::FunctionCallExpr | ( | SubroutineRef * | connective, | |
Expr ** | positionalArgs, | |||
unsigned | numPositional, | |||
KeywordSelector ** | keyedArgs, | |||
unsigned | numKeys | |||
) |
Creates a function call expression using the given SubroutineRef as a connective. The resulting FunctionCallExpr takes ownership of connective
, and infers its location from same.
The given SubroutineRef must reference a set of FunctionDecl's. If more than one declaration is associated with the ref, then the function call is said to be ambiguous.
FunctionCallExpr::FunctionCallExpr | ( | FunctionDecl * | connective, | |
Location | loc, | |||
Expr ** | positionalArgs, | |||
unsigned | numPositional, | |||
KeywordSelector ** | keyedArgs, | |||
unsigned | numKeys | |||
) |
FunctionCallExpr::FunctionCallExpr | ( | SubroutineRef * | connective | ) |
Create a nullary function call expression using the given SubroutineRef as connective.
FunctionCallExpr::FunctionCallExpr | ( | FunctionDecl * | connective, | |
Location | loc | |||
) |
Create a nullary function call expression using the given FunctionDecl as connective.
const_fun_iterator comma::FunctionCallExpr::begin_functions | ( | ) | const [inline] |
fun_iterator comma::FunctionCallExpr::begin_functions | ( | ) | [inline] |
static bool comma::FunctionCallExpr::classof | ( | const Ast * | node | ) | [inline, static] |
Reimplemented from comma::Expr.
static bool comma::FunctionCallExpr::classof | ( | const FunctionCallExpr * | node | ) | [inline, static] |
const_fun_iterator comma::FunctionCallExpr::end_functions | ( | ) | const [inline] |
fun_iterator comma::FunctionCallExpr::end_functions | ( | ) | [inline] |
FunctionDecl* comma::FunctionCallExpr::getConnective | ( | unsigned | i | ) | [inline] |
Iterators over the set of function declarations serving as connectives for this function call expression.
Reimplemented from comma::SubroutineCall.
const FunctionDecl* comma::FunctionCallExpr::getConnective | ( | unsigned | i | ) | const [inline] |
Returns the i'th
connective associated with this call. The returned node is either an EnumLiteral or a regular FunctionDecl.
Reimplemented from comma::SubroutineCall.
const FunctionDecl* comma::FunctionCallExpr::getConnective | ( | ) | const [inline] |
Iterators over the set of function declarations serving as connectives for this function call expression.
Reimplemented from comma::SubroutineCall.
FunctionDecl* comma::FunctionCallExpr::getConnective | ( | ) | [inline] |
If this call is unambiguous, returns the unique function declaration serving as the connective for this call.
Reimplemented from comma::SubroutineCall.
Location comma::FunctionCallExpr::getLocation | ( | ) | const [inline, virtual] |
Returns the location of this function call.
Implementation required by SubroutineCall.
Reimplemented from comma::Expr.
void FunctionCallExpr::resolveConnective | ( | FunctionDecl * | connective | ) |