ArkScript
A small, lisp-inspired, functional scripting language
Ark::Diagnostics::ErrorLocation Struct Reference

#include <Diagnostics.hpp>

Collaboration diagram for Ark::Diagnostics::ErrorLocation:
[legend]

Public Member Functions

bool wholeLineIsError () const
 
std::optional< decltype(internal::FilePos::line)> maybeEndLine () const noexcept
 

Public Attributes

std::string filename
 Complete path to the file where the error is.
 
internal::FilePos start
 
std::optional< internal::FilePosend
 

Detailed Description

Definition at line 24 of file Diagnostics.hpp.

Member Function Documentation

◆ maybeEndLine()

std::optional< decltype(internal::FilePos::line)> Ark::Diagnostics::ErrorLocation::maybeEndLine ( ) const
inlinenodiscardnoexcept

Definition at line 35 of file Diagnostics.hpp.

References end.

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

◆ wholeLineIsError()

bool Ark::Diagnostics::ErrorLocation::wholeLineIsError ( ) const
inlinenodiscard

Definition at line 30 of file Diagnostics.hpp.

References end.

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

Member Data Documentation

◆ end

std::optional<internal::FilePos> Ark::Diagnostics::ErrorLocation::end

Definition at line 28 of file Diagnostics.hpp.

Referenced by Ark::Diagnostics::makeContext(), maybeEndLine(), and wholeLineIsError().

◆ filename

std::string Ark::Diagnostics::ErrorLocation::filename

Complete path to the file where the error is.

Definition at line 26 of file Diagnostics.hpp.

Referenced by Ark::Diagnostics::makeContext(), and Ark::Diagnostics::showFileLocation().

◆ start

internal::FilePos Ark::Diagnostics::ErrorLocation::start

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