From 78a231014be3a76e9e546b31a5e6fa2a9a7b720e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 25 Feb 2022 19:59:47 -0500 Subject: external dependency update, housekeeping, routine --- src/ext_depends/D-YAML/source/dyaml/exception.d | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ext_depends/D-YAML/source/dyaml/exception.d') diff --git a/src/ext_depends/D-YAML/source/dyaml/exception.d b/src/ext_depends/D-YAML/source/dyaml/exception.d index 2f13a44..46d3047 100644 --- a/src/ext_depends/D-YAML/source/dyaml/exception.d +++ b/src/ext_depends/D-YAML/source/dyaml/exception.d @@ -94,6 +94,9 @@ struct MarkedYAMLExceptionData // Base class of YAML exceptions with marked positions of the problem. abstract class MarkedYAMLException : YAMLException { + /// Position of the error. + Mark mark; + // Construct a MarkedYAMLException with specified context and problem. this(string context, const Mark contextMark, string problem, const Mark problemMark, string file = __FILE__, size_t line = __LINE__) @safe pure nothrow @@ -102,6 +105,7 @@ abstract class MarkedYAMLException : YAMLException (contextMark != problemMark ? contextMark.toString() ~ '\n' : "") ~ problem ~ '\n' ~ problemMark.toString() ~ '\n'; super(msg, file, line); + mark = problemMark; } // Construct a MarkedYAMLException with specified problem. @@ -110,6 +114,7 @@ abstract class MarkedYAMLException : YAMLException @safe pure nothrow { super(problem ~ '\n' ~ problemMark.toString(), file, line); + mark = problemMark; } /// Construct a MarkedYAMLException from a struct storing constructor parameters. -- cgit v1.2.3