IDL compiler front-end library
Public Member Functions | List of all members
AST::ModuleItems Class Reference

The seqence of items in a module. More...

#include <Module.h>

Inheritance diagram for AST::ModuleItems:
AST::Item AST::Container AST::ContainerT< Item >

Public Member Functions

const Identifiername () const noexcept
 
const Modulemodule () const noexcept
 
- Public Member Functions inherited from AST::Item
Kind kind () const noexcept
 
bool is_type () const noexcept
 
bool is_forward_decl () const noexcept
 
- Public Member Functions inherited from AST::Container
bool visit (CodeGen &cg) const
 

Additional Inherited Members

- Public Types inherited from AST::Item
enum class  Kind {
  ROOT , INCLUDE , NATIVE , TYPE_DEF ,
  CONSTANT , MODULE , MODULE_ITEMS , INTERFACE_DECL ,
  INTERFACE , OPERATION , PARAMETER , ATTRIBUTE ,
  EXCEPTION , STRUCT_DECL , STRUCT , MEMBER ,
  UNION_DECL , UNION , UNION_ELEMENT , ENUM ,
  ENUM_ITEM , VALUE_TYPE_DECL , VALUE_TYPE , VALUE_BOX ,
  STATE_MEMBER , VALUE_FACTORY
}
 The kind of item. More...
 

Detailed Description

The seqence of items in a module.

Invariant
kind () == Item::Kind::MODULE_ITEMS

Child item types:

Examples
Printer.cpp.

Definition at line 70 of file Module.h.

Member Function Documentation

◆ name()

const Identifier& AST::ModuleItems::name ( ) const
inlinenoexcept
Returns
The module name.

Definition at line 76 of file Module.h.

◆ module()

const Module& AST::ModuleItems::module ( ) const
inlinenoexcept
Returns
The module as a scope.

Definition at line 82 of file Module.h.


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