[Vala] [PATCH] Parser: fix volatile fields
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: vala-list gnome org
- Subject: [Vala] [PATCH] Parser: fix volatile fields
- Date: Sat, 9 Jan 2010 22:33:38 +0100
---
vala/valaparser.vala | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 6828341..1205b60 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -57,7 +57,8 @@ public class Vala.Parser : CodeVisitor {
OVERRIDE = 1 << 5,
STATIC = 1 << 6,
VIRTUAL = 1 << 7,
- ASYNC = 1 << 8
+ ASYNC = 1 << 8,
+ VOLATILE = 1 << 9
}
public Parser () {
@@ -2248,6 +2249,9 @@ public class Vala.Parser : CodeVisitor {
if (ModifierFlags.NEW in flags) {
f.hides = true;
}
+ if (ModifierFlags.VOLATILE in flags) {
+ f.is_volatile = true;
+ }
if (accept (TokenType.ASSIGN)) {
f.initializer = parse_expression ();
}
@@ -2885,6 +2889,10 @@ public class Vala.Parser : CodeVisitor {
next ();
flags |= ModifierFlags.VIRTUAL;
break;
+ case TokenType.VOLATILE:
+ next ();
+ flags |= ModifierFlags.VOLATILE;
+ break;
default:
return flags;
}
--
1.6.5
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]