top | up | prev | next

ParameterSymbol Class

Definition at line 14 of ParameterSymbol.hpp

Constructors

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

Member Functions

std::unique_ptr<sngxml::dom::Element> CreateElement() override
TypeSymbol* GetType() override
std::u32string IdStr() override
bool IsParameterSymbol() const override
std::u32string KindStr() override
void SetType(TypeSymbol* type_)

Member Variables

TypeSymbol* type

Constructor Details

ParameterSymbol Constructor

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

Definition at line 14 of ParameterSymbol.cpp :
14 : Symbol(span_name_)type(nullptr)
15 {
16 }


Declaration at line 17 of ParameterSymbol.hpp


Member Function Details

CreateElement Member Function

std::unique_ptr<sngxml::dom::Element> sngcpp::symbols::ParameterSymbol::CreateElement() override

Definition at line 34 of ParameterSymbol.cpp :
35 {
36     std::unique_ptr<sngxml::dom::Element> parameterElement(new sngxml::dom::Element(U"parameter"));
37     parameterElement->SetAttribute(U"type"type->Id());
38     return parameterElement;
39 }


Declaration at line 20 of ParameterSymbol.hpp

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

Calls: sngcpp::symbols::Symbol::Id


GetType Member Function

TypeSymbol * sngcpp::symbols::ParameterSymbol::GetType() override

Definition at line 22 of ParameterSymbol.hpp :
22 { return type; }

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

Called by: sngcpp::symbols::FunctionDeclarationSymbol::IdStr , sngcpp::symbols::FunctionGroupSymbol::GetFunctionDeclaration , sngcpp::symbols::FunctionGroupSymbol::ResolveOverload , sngcpp::symbols::FunctionSymbol::IdStr , sngcpp::symbols::FunctionSymbol::NameBefore


IdStr Member Function

std::u32string sngcpp::symbols::ParameterSymbol::IdStr() override

Definition at line 18 of ParameterSymbol.cpp
Declaration at line 19 of ParameterSymbol.hpp

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

Calls: sngcpp::symbols::FunctionSymbol::Index , sngcpp::symbols::Symbol::IdStr , sngcpp::symbols::Symbol::IsFunctionSymbol , sngcpp::symbols::Symbol::Parent


IsParameterSymbol Member Function

bool sngcpp::symbols::ParameterSymbol::IsParameterSymbol() const override

Definition at line 21 of ParameterSymbol.hpp :
21 { return true; }

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


KindStr Member Function

std::u32string sngcpp::symbols::ParameterSymbol::KindStr() override

Definition at line 18 of ParameterSymbol.hpp :
18 { return U"parameter"; }

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


SetType Member Function

void sngcpp::symbols::ParameterSymbol::SetType(TypeSymbol * type_)

Definition at line 23 of ParameterSymbol.hpp :
23 { type = type_; }


top | up | prev | next