nany
Public Attributes | Friends | List of all members
ny::Funcdef Struct Referencefinal

Function definition. More...

#include <funcdef.h>

Inheritance diagram for ny::Funcdef:

Public Member Functions

Queries
bool hasParameters () const
 Get if the funcdef has parameters.
 
bool hasReturnType () const
 Get if the funcdef has a return type ('void' otherwise)
 
bool isOperator () const
 Is operator ?
 
bool isFunc () const
 Is a function ?
 
Utilities
void resetReturnType (const CLID &)
 Reset the return type.
 
void resetReturnTypeToVoid ()
 Reset the return type to void.
 
void appendParameter (const CLID &)
 Append an unamed parameter.
 
void appendParameter (const AnyString &name, const CLID &)
 Append a named parameter.
 
Name resolution
bool isPartiallyResolved () const
 Get if the funcdef is resolved or has overloads.
 
bool isFullyResolved () const
 Get if the funcdef is fully resolved.
 
Debugging
void print (Yuni::String &out, bool clearBefore=true) const
 Export the func definition.
 

Public Attributes

const AnyString name
 Name of the func or the operator.
 
CLID clid
 clid
 
CLID rettype
 Return type (null means void)
 
std::vector< std::pair< AnyString, CLID > > parameters
 parameters (name if name parameter, type)
 
Atomatom = nullptr
 
ClassdefOverloads overloads
 Overloads.
 

Friends

struct ClassdefTable
 

Detailed Description

Function definition.


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