top | up | prev | next

FileScope Class

Definition at line 73 of Scope.hpp

Member Functions

void Install(ContainerScope* containerScope, UsingDeclarationNode& usingDeclarationNode)
void Install(ContainerScope* containerScope, UsingDirectiveNode& usingDirectiveNode)
Symbol* Lookup(const std::u32string& name) override
Symbol* Lookup(const std::u32string& name, ScopeLookup scopeLookup) override
Symbol* Lookup(const std::vector<std::u32string>& nameSequence, ScopeLookup scopeLoookup) override

Member Variables

std::unordered_map<std::u32string, Symbol*> aliasSymbolMap
std::vector<ContainerScope*> containerScopes

Member Function Details

Install Member Function

void sngcpp::symbols::FileScope::Install(ContainerScope * containerScope, UsingDeclarationNode & usingDeclarationNode)

Definition at line 210 of Scope.cpp :
211 {
212     Symbol* symbol = static_cast<Scope*>(containerScope)->Lookup(usingDeclarationNode.QualifiedId()ScopeLookup::this_and_parent);
213     if (symbol)
214     {
215         aliasSymbolMap[symbol->Name()] = symbol;
216     }
217 }


Declaration at line 77 of Scope.hpp

Calls: sngcpp::ast::UsingDeclarationNode::QualifiedId , sngcpp::symbols::Symbol::Name


Install Member Function

void sngcpp::symbols::FileScope::Install(ContainerScope * containerScope, UsingDirectiveNode & usingDirectiveNode)

Definition at line 182 of Scope.cpp
Declaration at line 76 of Scope.hpp

Calls: sngcpp::ast::UsingDirectiveNode::NamespaceName , sngcpp::symbols::Symbol::GetContainerScope , sngcpp::symbols::Symbol::IsNamespaceSymbol


Lookup Member Function

Symbol * sngcpp::symbols::FileScope::Lookup(const std::u32string& name) override

Definition at line 219 of Scope.cpp :
220 {
221     return Lookup(nameScopeLookup::this_);
222 }


Declaration at line 78 of Scope.hpp

Base class overridden functions: sngcpp::symbols::Scope::Lookup

Calls: sngcpp::symbols::FileScope::Lookup


Lookup Member Function

Symbol * sngcpp::symbols::FileScope::Lookup(const std::u32string& name, ScopeLookup scopeLookup) override

Definition at line 224 of Scope.cpp
Declaration at line 79 of Scope.hpp

Base class overridden functions: sngcpp::symbols::Scope::Lookup

Calls: sngcpp::symbols::ContainerScope::Lookup

Called by: sngcpp::symbols::FileScope::Lookup


Lookup Member Function

Symbol * sngcpp::symbols::FileScope::Lookup(const std::vector<std::u32string>& nameSequence, ScopeLookup scopeLoookup) override

Definition at line 262 of Scope.cpp
Declaration at line 80 of Scope.hpp

Base class overridden functions: sngcpp::symbols::Scope::Lookup

Calls: sngcpp::symbols::ContainerScope::Lookup


top | up | prev | next