top | up | prev | next

CallableSymbol Abstract Class

Definition at line 16 of FunctionSymbol.hpp

Constructors

CallableSymbol(const Span& span_, const std::u32string& name_)

Member Functions

int Arity() const pure virtual
FunctionGroupSymbol* FunctionGroup() pure virtual
std::u32string FunctionId() pure virtual
std::u32string FunctionKind() pure virtual
const std::u32string& GroupName() const pure virtual
bool IsCallableSymbol() const override
bool IsConst() const virtual
const std::vector<ParameterSymbol*>& Parameters() const pure virtual
TypeSymbol* ReturnType() pure virtual

Constructor Details

CallableSymbol Constructor

sngcpp::symbols::CallableSymbol::CallableSymbol(const Span& span_, const std::u32string& name_)

Definition at line 17 of FunctionSymbol.cpp :
 17 : ContainerSymbol(span_name_)
 18 {
 19 }


Declaration at line 19 of FunctionSymbol.hpp


Member Function Details

Arity Member Function

int sngcpp::symbols::CallableSymbol::Arity() const pure virtual

Definition at line 23 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::FunctionSymbol::Arity


FunctionGroup Member Function

FunctionGroupSymbol * sngcpp::symbols::CallableSymbol::FunctionGroup() pure virtual

Definition at line 26 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::FunctionDeclarationSymbol::FunctionGroup , sngcpp::symbols::FunctionSymbol::FunctionGroup


FunctionId Member Function

std::u32string sngcpp::symbols::CallableSymbol::FunctionId() pure virtual

Definition at line 28 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::FunctionDeclarationSymbol::FunctionId , sngcpp::symbols::FunctionSymbol::FunctionId


FunctionKind Member Function

std::u32string sngcpp::symbols::CallableSymbol::FunctionKind() pure virtual

Definition at line 27 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::ConstructorDeclarationSymbol::FunctionKind , sngcpp::symbols::ConstructorSymbol::FunctionKind , sngcpp::symbols::FunctionDeclarationSymbol::FunctionKind , sngcpp::symbols::FunctionSymbol::FunctionKind


GroupName Member Function

const std::u32string& sngcpp::symbols::CallableSymbol::GroupName() const pure virtual

Definition at line 25 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::FunctionDeclarationSymbol::GroupName , sngcpp::symbols::FunctionSymbol::GroupName


IsCallableSymbol Member Function

bool sngcpp::symbols::CallableSymbol::IsCallableSymbol() const override

Definition at line 20 of FunctionSymbol.hpp :
 20 { return true; }

Base class overridden functions: sngcpp::symbols::Symbol::IsCallableSymbol


IsConst Member Function

bool sngcpp::symbols::CallableSymbol::IsConst() const virtual

Definition at line 24 of FunctionSymbol.hpp :
 24 { return false; }

Derived class overrides: sngcpp::symbols::FunctionDeclarationSymbol::IsConst , sngcpp::symbols::FunctionSymbol::IsConst


Parameters Member Function

const std::vector<ParameterSymbol *>& sngcpp::symbols::CallableSymbol::Parameters() const pure virtual

Definition at line 21 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::FunctionDeclarationSymbol::Parameters , sngcpp::symbols::FunctionSymbol::Parameters

Called by: sngcpp::symbols::FunctionGroupSymbol::ResolveOverload


ReturnType Member Function

TypeSymbol * sngcpp::symbols::CallableSymbol::ReturnType() pure virtual

Definition at line 22 of FunctionSymbol.hpp

Derived class overrides: sngcpp::symbols::ConstructorDeclarationSymbol::ReturnType , sngcpp::symbols::ConstructorSymbol::ReturnType , sngcpp::symbols::FunctionDeclarationSymbol::ReturnType , sngcpp::symbols::FunctionSymbol::ReturnType


top | up | prev | next