From b6197eb59799c2933bd776ea22760fea5e97b4bd 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