[tracker/parser] SPARQL: Fix propagation of lexer errors



commit c61b8ce01cc9f9e2ad09763a6e88017d19660ee0
Author: Jürg Billeter <j bitron ch>
Date:   Wed Aug 12 13:32:59 2009 +0200

    SPARQL: Fix propagation of lexer errors

 src/libtracker-data/tracker-sparql-query.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index ea6cb32..54a1d2e 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -317,7 +317,7 @@ public class Tracker.SparqlQuery : Object {
 		}
 	}
 
-	inline bool next () {
+	inline bool next () throws SparqlError {
 		index = (index + 1) % BUFFER_SIZE;
 		size--;
 		if (size <= 0) {
@@ -340,7 +340,7 @@ public class Tracker.SparqlQuery : Object {
 		return tokens[last_index].type;
 	}
 
-	inline bool accept (SparqlTokenType type) {
+	inline bool accept (SparqlTokenType type) throws SparqlError {
 		if (current () == type) {
 			next ();
 			return true;
@@ -360,7 +360,7 @@ public class Tracker.SparqlQuery : Object {
 		return tokens[index].begin;
 	}
 
-	void set_location (SourceLocation location) {
+	void set_location (SourceLocation location) throws SparqlError {
 		scanner.seek (location);
 		size = 0;
 		index = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]