top | up | prev | next

LocalVariableSymbol Class

Definition at line 59 of VariableSymbol.hpp

Constructors

LocalVariableSymbol(const Span& span_, const boost::uuids::uuid& sourceModuleId_, const std::u32string& name_)

Member Functions

const char* ClassName() const override
std::unique_ptr<Element> CreateDomElement(TypeMap& typeMap) override
SymbolAccess DeclaredAccess() const override
std::string GetSymbolCategoryDescription() const override
std::string GetSymbolCategoryStr() const override
std::string GetSymbolHelp() const override
bool IsExportSymbol() const override

Constructor Details

LocalVariableSymbol Constructor

cmajor::symbols::LocalVariableSymbol::LocalVariableSymbol(const Span& span_, const boost::uuids::uuid& sourceModuleId_, const std::u32string& name_)

Definition at line 152 of VariableSymbol.cpp :
152 :
153 VariableSymbol(SymbolType::localVariableSymbolspan_sourceModuleId_name_)
154 {
155 }


Declaration at line 62 of VariableSymbol.hpp


Member Function Details

ClassName Member Function

const char * cmajor::symbols::LocalVariableSymbol::ClassName() const override

Definition at line 66 of VariableSymbol.hpp :
 66 { return "LocalVariableSymbol"; }

Base class overridden functions: cmajor::symbols::Symbol::ClassName , cmajor::symbols::VariableSymbol::ClassName


CreateDomElement Member Function

std::unique_ptr<Element > cmajor::symbols::LocalVariableSymbol::CreateDomElement(TypeMap & typeMap) override

Definition at line 157 of VariableSymbol.cpp
Declaration at line 65 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::CreateDomElement

Calls: cmajor::symbols::TypeMap::GetOrInsertType , cmajor::symbols::VariableSymbol::GetType


DeclaredAccess Member Function

SymbolAccess cmajor::symbols::LocalVariableSymbol::DeclaredAccess() const override

Definition at line 63 of VariableSymbol.hpp :
 63 { return SymbolAccess::public_; }

Base class overridden functions: cmajor::symbols::Symbol::DeclaredAccess


GetSymbolCategoryDescription Member Function

std::string cmajor::symbols::LocalVariableSymbol::GetSymbolCategoryDescription() const override

Definition at line 68 of VariableSymbol.hpp :
 68 { return "local variable"; }

Base class overridden functions: cmajor::symbols::Symbol::GetSymbolCategoryDescription

Called by: cmajor::symbols::LocalVariableSymbol::GetSymbolHelp


GetSymbolCategoryStr Member Function

std::string cmajor::symbols::LocalVariableSymbol::GetSymbolCategoryStr() const override

Definition at line 67 of VariableSymbol.hpp :
 67 { return "LV"; }

Base class overridden functions: cmajor::symbols::Symbol::GetSymbolCategoryStr


GetSymbolHelp Member Function

std::string cmajor::symbols::LocalVariableSymbol::GetSymbolHelp() const override

Definition at line 170 of VariableSymbol.cpp :
171 {
172     if (!GetType()) return std::string();
173     std::string help = "(";
174     help.append(GetSymbolCategoryDescription()).append(") ");
175     help.append(ToUtf8(GetType()->FullName())).append(" ");
176     help.append(ToUtf8(Name()));
177     return help;
178 }


Declaration at line 69 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::GetSymbolHelp , cmajor::symbols::VariableSymbol::GetSymbolHelp

Calls: cmajor::symbols::LocalVariableSymbol::GetSymbolCategoryDescription , cmajor::symbols::Symbol::FullName , cmajor::symbols::Symbol::Name , cmajor::symbols::VariableSymbol::GetType


IsExportSymbol Member Function

bool cmajor::symbols::LocalVariableSymbol::IsExportSymbol() const override

Definition at line 64 of VariableSymbol.hpp :
 64 { return false; }

Base class overridden functions: cmajor::symbols::Symbol::IsExportSymbol


top | up | prev | next