Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::ast::Import Class Reference

#include <thorin/ast/ast.h>

Inheritance diagram for thorin::ast::Import:
[legend]

Public Member Functions

 Import (Loc loc, Tok::Tag tag, Dbg dbg, Ptr< Module > &&module)
 
Dbg dbg () const
 
Tok::Tag tag () const
 
const Modulemodule () const
 
void bind (Scopes &) const
 
void emit (Emitter &) const
 
std::ostream & stream (Tab &, std::ostream &) const
 
- Public Member Functions inherited from thorin::ast::Node
Loc loc () const
 
void dump () const
 

Friends

void swap (Import &i1, Import &i2) noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from thorin::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 

Detailed Description

Definition at line 905 of file ast.h.

Constructor & Destructor Documentation

◆ Import()

thorin::ast::Import::Import ( Loc  loc,
Tok::Tag  tag,
Dbg  dbg,
Ptr< Module > &&  module 
)
inline

Definition at line 907 of file ast.h.

Member Function Documentation

◆ bind()

void thorin::ast::Import::bind ( Scopes s) const

Definition at line 88 of file bind.cpp.

References thorin::ast::Module::bind(), and module().

◆ dbg()

Dbg thorin::ast::Import::dbg ( ) const
inline

Definition at line 913 of file ast.h.

◆ emit()

void thorin::ast::Import::emit ( Emitter e) const

Definition at line 47 of file emit.cpp.

References thorin::ast::Module::emit(), and module().

◆ module()

const Module * thorin::ast::Import::module ( ) const
inline

Definition at line 915 of file ast.h.

Referenced by bind(), and emit().

◆ stream()

std::ostream & thorin::ast::Import::stream ( Tab tab,
std::ostream &  os 
) const
virtual

Implements thorin::ast::Node.

Definition at line 41 of file stream.cpp.

References thorin::Tab::println(), and tag().

◆ tag()

Tok::Tag thorin::ast::Import::tag ( ) const
inline

Definition at line 914 of file ast.h.

Referenced by stream().

Friends And Related Symbol Documentation

◆ swap

void swap ( Import i1,
Import i2 
)
friend

Definition at line 921 of file ast.h.


The documentation for this class was generated from the following files: