ArkScript
A small, fast, functional and scripting language for video games
Ark::CodeErrorContext Struct Referencefinal

#include <Exceptions.hpp>

Collaboration diagram for Ark::CodeErrorContext:
[legend]

Public Member Functions

 CodeErrorContext (std::string filename_, const std::size_t lineNum, const std::size_t column, std::string expression, const std::optional< internal::utf8_char_t > maybe_symbol=std::nullopt)
 
 CodeErrorContext (std::string filename_, const std::size_t lineNum, const std::size_t column, std::string expression, const bool from_macro_expansion)
 

Public Attributes

const std::string filename
 
const std::size_t line
 
const std::size_t col
 
const std::string expr
 
const std::optional< internal::utf8_char_tsymbol
 
const bool is_macro_expansion = false
 

Detailed Description

Definition at line 99 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ CodeErrorContext() [1/2]

Ark::CodeErrorContext::CodeErrorContext ( std::string filename_,
const std::size_t lineNum,
const std::size_t column,
std::string expression,
const std::optional< internal::utf8_char_t > maybe_symbol = std::nullopt )
inline

Definition at line 108 of file Exceptions.hpp.

◆ CodeErrorContext() [2/2]

Ark::CodeErrorContext::CodeErrorContext ( std::string filename_,
const std::size_t lineNum,
const std::size_t column,
std::string expression,
const bool from_macro_expansion )
inline

Definition at line 116 of file Exceptions.hpp.

Member Data Documentation

◆ col

const std::size_t Ark::CodeErrorContext::col

Definition at line 103 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ expr

const std::string Ark::CodeErrorContext::expr

Definition at line 104 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ filename

const std::string Ark::CodeErrorContext::filename

Definition at line 101 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ is_macro_expansion

const bool Ark::CodeErrorContext::is_macro_expansion = false

Definition at line 106 of file Exceptions.hpp.

◆ line

const std::size_t Ark::CodeErrorContext::line

Definition at line 102 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ symbol

const std::optional<internal::utf8_char_t> Ark::CodeErrorContext::symbol

Definition at line 105 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().


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