[vala/switch-to-gir] girparser: Fix parsing symbol names
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vala/switch-to-gir] girparser: Fix parsing symbol names
- Date: Wed, 25 Aug 2010 10:23:31 +0000 (UTC)
commit 406b797c8d017e96d73c7daf26bb75a80bad4bd3
Author: Luca Bruno <lethalman88 gmail com>
Date:   Wed Aug 25 12:20:26 2010 +0200
    girparser: Fix parsing symbol names
 vala/valagirparser.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index f728bb8..cf749ac 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -51,6 +51,8 @@ public class Vala.GirParser : CodeVisitor {
 		public Expression expression;
 		public SourceLocation source_location;
 
+		public bool used = false;
+
 		public Argument (Expression expression, SourceLocation source_location) {
 			this.expression = expression;
 			this.source_location = source_location;
@@ -384,6 +386,7 @@ public class Vala.GirParser : CodeVisitor {
 				}
 				string name = get_string ();
 				sym = new UnresolvedSymbol (sym, name, get_src (begin));
+				next ();
 			} while (accept (TokenType.DOT));
 			return sym;
 		}
@@ -429,6 +432,7 @@ public class Vala.GirParser : CodeVisitor {
 				}
 				next ();
 
+				var begin = this.begin;
 				Expression expr = parse_literal ();
 				if (expr == null) {
 					return false;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]