diff options
author | Jürg Billeter <j@bitron.ch> | 2009-09-13 11:05:08 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-09-13 17:02:47 +0200 |
commit | 7fe449fc8069b5635074f74049647fc1cf53b1bc (patch) | |
tree | e718f992d4789a552b0f7e8776583db76ffea35f /vala/valatokentype.vala | |
parent | a53311ee6f8eabe5b370a4631e70beb69388df3b (diff) | |
download | vala-7fe449fc8069b5635074f74049647fc1cf53b1bc.tar.gz |
Replace `yields' by `async' method modifier
Diffstat (limited to 'vala/valatokentype.vala')
-rw-r--r-- | vala/valatokentype.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valatokentype.vala b/vala/valatokentype.vala index 0b80e4694..d22c07bdf 100644 --- a/vala/valatokentype.vala +++ b/vala/valatokentype.vala @@ -1,6 +1,6 @@ /* valatokentype.vala * - * Copyright (C) 2008 Jürg Billeter + * Copyright (C) 2008-2009 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -36,6 +36,7 @@ public enum Vala.TokenType { ASSIGN_PERCENT, ASSIGN_SHIFT_LEFT, ASSIGN_SUB, + ASYNC, BASE, BITWISE_AND, BITWISE_OR, @@ -143,8 +144,7 @@ public enum Vala.TokenType { VOLATILE, WEAK, WHILE, - YIELD, - YIELDS; + YIELD; public weak string to_string () { switch (this) { @@ -160,6 +160,7 @@ public enum Vala.TokenType { case ASSIGN_PERCENT: return "`%='"; case ASSIGN_SHIFT_LEFT: return "`<<='"; case ASSIGN_SUB: return "`-='"; + case ASYNC: return "`async'"; case BASE: return "`base'"; case BITWISE_AND: return "`&'"; case BITWISE_OR: return "`|'"; @@ -264,7 +265,6 @@ public enum Vala.TokenType { case WEAK: return "`weak'"; case WHILE: return "`while'"; case YIELD: return "`yield'"; - case YIELDS: return "`yields'"; default: return "unknown token"; } } |