From 2402d960c54981abb34a79982ecd61a00f798901 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 cc09b158..9e1c651e 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1267,6 +1267,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