ArkScript
A small, fast, functional and scripting language for video games
Ark::types::Typedef Struct Reference

A type definition within a contract. More...

#include <TypeChecker.hpp>

+ Collaboration diagram for Ark::types::Typedef:

Public Member Functions

 Typedef (std::string_view name, ValueType type, bool variadic=false)
 
 Typedef (std::string_view name, const std::vector< ValueType > &types, bool variadic=false)
 

Public Attributes

std::string_view name
 
std::vector< ValueTypetypes
 
bool variadic
 

Detailed Description

A type definition within a contract.

Definition at line 70 of file TypeChecker.hpp.

Constructor & Destructor Documentation

◆ Typedef() [1/2]

Ark::types::Typedef::Typedef ( std::string_view  name,
ValueType  type,
bool  variadic = false 
)
inline

Definition at line 76 of file TypeChecker.hpp.

◆ Typedef() [2/2]

Ark::types::Typedef::Typedef ( std::string_view  name,
const std::vector< ValueType > &  types,
bool  variadic = false 
)
inline

Definition at line 80 of file TypeChecker.hpp.

Member Data Documentation

◆ name

std::string_view Ark::types::Typedef::name

Definition at line 72 of file TypeChecker.hpp.

Referenced by Ark::types::displayContract().

◆ types

std::vector<ValueType> Ark::types::Typedef::types

Definition at line 73 of file TypeChecker.hpp.

Referenced by Ark::types::displayContract().

◆ variadic

bool Ark::types::Typedef::variadic

Definition at line 74 of file TypeChecker.hpp.

Referenced by Ark::types::displayContract().


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