core: Add string property to get current parser context
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 7 Jan 2010 17:15:20 +0000 (19:15 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 19 Jan 2010 15:04:37 +0000 (17:04 +0200)
src/rygel/rygel-search-criteria-parser.vala

index 3e60a4b..a18f3bc 100644 (file)
@@ -68,6 +68,13 @@ internal class Rygel.SearchCriteriaParser : Object, StateMachine {
         }
     }
 
+    private string context {
+        owned get {
+            return this.scanner.line.to_string () + "." +
+                   this.scanner.position.to_string ();
+        }
+    }
+
     private Scanner scanner;
 
     private const SearchCriteriaToken[] tokens = {