From feb8de751a7f23cbd96ad4760dea68344ea3d0d7 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. --- src/statement.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/statement.c') diff --git a/src/statement.c b/src/statement.c index 5e2802eb..24440a38 100644 --- a/src/statement.c +++ b/src/statement.c @@ -45,3 +45,9 @@ serd_statement_get_graph(const SerdStatement* statement) { return statement->nodes[SERD_GRAPH]; } + +const SerdCursor* +serd_statement_get_cursor(const SerdStatement* statement) +{ + return statement->cursor; +} -- cgit v1.2.1