From afab9f8037f9281bcef6ee4201061aa234eeadac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jun 2018 22:23:28 +0200 Subject: Add cursor to statement This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser. --- serd/serd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'serd') diff --git a/serd/serd.h b/serd/serd.h index 4fa5a70d..d379ccee 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1268,6 +1268,13 @@ SERD_API const SerdNode* serd_statement_get_graph(const SerdStatement* statement); +/** + Return the source location where `statement` originated, or NULL. +*/ +SERD_API +const SerdCursor* +serd_statement_get_cursor(const SerdStatement* statement); + /** @} @name Cursor -- cgit v1.2.1