Module
class Module
class Pinnedprivate
constructor Pinned
| Pinned | ( | ); |
constructor Pinned
| Pinned | ( | Symbol object_name, | |
| Expression address | ); |
| PARAMETER | DESCRIPTION |
|---|---|
object_name |
|
address |
method evaluate
| void evaluate | ( | EvaluationContext context | ); |
| PARAMETER | DESCRIPTION |
|---|---|
context |
method resolve
| void resolve | ( | Scope & scope | ); |
| PARAMETER | DESCRIPTION |
|---|---|
scope |
member address
member object_name
constructor Module
| Module | ( | ); |
constructor Module
| Module | ( | Symbol name | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
method add_entity
| void add_entity | ( | std::shared_ptr< Entity > entity, | |
| std::shared_ptr< Scope > current_file_scope | ); |
| PARAMETER | DESCRIPTION |
|---|---|
entity |
|
current_file_scope |
method add_file
Add a file to the module.
| std::shared_ptr< Scope > add_file | ( | Symbol file_name | ); |
| PARAMETER | DESCRIPTION |
|---|---|
file_name |
The name of the file. |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< Scope > |
The file scope of the new file. |
method constantsconst
Get all constants defined in the module.
| std::vector< Constant * > constants | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Constant * > |
A map of constant names to their values. |
method entitiesconst
Get all entities defined in the module.
| std::vector< Entity * > entities | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Entity * > |
A vector of entities. |
method explicitly_used_entitiesconst
| std::vector< Entity * > explicitly_used_entities | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Entity * > |
method file_scopeconst
Get the file scope for a specific file.
| std::shared_ptr< Scope > file_scope | ( | Symbol file_name | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
file_name |
The name of the file. |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< Scope > |
The file scope. |
method functionsconst
Get all functions defined in the module.
| std::vector< Function * > functions | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Function * > |
A vector of functions. |
method get_entitiesconst
| std::vector< T * > get_entities | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< T * > |
method import
Import a module.
| void import | ( | Visibility visibility, | |
| const Module & module | ); |
| PARAMETER | DESCRIPTION |
|---|---|
visibility |
The visibility of the imported symbols. |
module |
The module to import. |
method imported_modulesconst
| const std::unordered_set< Module * > & imported_modules | ( | Visibility visibility | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
visibility |
| RETURNS | DESCRIPTION |
|---|---|
const std::unordered_set< Module * > & |
method macrosconst
Get all macros defined in the module.
| std::vector< Macro * > macros | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Macro * > |
A vector of macros. |
method nameconst
| Symbol name | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
Symbol |
method objectsconst
Get all objects defined in the module.
| std::vector< Object * > objects | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Object * > |
A vector of objects. |
method private_scopeconst
Get the module's private scope.
| std::shared_ptr< Scope > private_scope | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< Scope > |
The private scope. |
method public_scopeconst
Get the module's public scope.
| std::shared_ptr< Scope > public_scope | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< Scope > |
The public scope. |
method rename
| void rename | ( | Symbol new_name | ); |
| PARAMETER | DESCRIPTION |
|---|---|
new_name |
method resolve
Resolve names and expressions in the module.
This function does not resolve the contained entities.
| void resolve | ( | ); |
member contained_entitiesprivate
member file_scopesprivate
member imported_modules_private
member name_private
The name of the module.
member no_modulesstatic private
member private_scope_private
The private scope of the module.
member public_scope_private
The public scope of the module.
member target
The target of the module.
class Pinnedprivate
constructor Pinned
| Pinned | ( | ); |
constructor Pinned
| Pinned | ( | Symbol object_name, | |
| Expression address | ); |
| PARAMETER | DESCRIPTION |
|---|---|
object_name |
|
address |
method evaluate
| void evaluate | ( | EvaluationContext context | ); |
| PARAMETER | DESCRIPTION |
|---|---|
context |
method resolve
| void resolve | ( | Scope & scope | ); |
| PARAMETER | DESCRIPTION |
|---|---|
scope |