Joos1W Compiler Framework
|
Represents a tree of packages. The leaf nodes are declarations. More...
#include <NameResolver.h>
Public Member Functions | |
Pkg (BumpAllocator &alloc) | |
Pkg (BumpAllocator &alloc, std::string_view name) | |
ConstImportOpt | lookup (std::string_view name, BumpAllocator &alloc) const |
Gets a child package by name. If the child is not found, then nullptr is returned. More... | |
std::ostream & | print (std::ostream &os, int indentation=0) const |
void | dump () const |
Friends | |
class | NameResolver |
Represents a tree of packages. The leaf nodes are declarations.
Definition at line 36 of file NameResolver.h.
|
inline |
Gets a child package by name. If the child is not found, then nullptr is returned.
name | The name of the child package to get. |
alloc | The allocator to use for the string. |
Definition at line 55 of file NameResolver.h.