diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-13 15:44:44 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-13 15:44:44 +0000 |
commit | 206cd6716043d886c6531ca358f5b442c5ea991e (patch) | |
tree | 0d277104d825ce27f0aefa6734071809aabbf1b5 /vala/valatypecheck.vala | |
parent | 67916b6274ed6dfbc0200cca77a52f1f21848486 (diff) | |
download | vala-206cd6716043d886c6531ca358f5b442c5ea991e.tar.gz |
report warning when using obsolete syntax for non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using obsolete syntax
for non-null types
* */*.vala, */*.vapi: port to new syntax
svn path=/trunk/; revision=1208
Diffstat (limited to 'vala/valatypecheck.vala')
-rw-r--r-- | vala/valatypecheck.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vala/valatypecheck.vala b/vala/valatypecheck.vala index d276f8267..b66da0403 100644 --- a/vala/valatypecheck.vala +++ b/vala/valatypecheck.vala @@ -29,12 +29,12 @@ public class Vala.TypeCheck : Expression { /** * The expression to be checked. */ - public Expression! expression { get; set construct; } + public Expression expression { get; set construct; } /** * The type to be matched against. */ - public DataType! type_reference { + public DataType type_reference { get { return _data_type; } set { _data_type = value; @@ -52,13 +52,13 @@ public class Vala.TypeCheck : Expression { * @param source reference to source code * @return newly created type check expression */ - public TypeCheck (Expression! expr, DataType! type, SourceReference source) { + public TypeCheck (Expression expr, DataType type, SourceReference source) { expression = expr; type_reference = type; source_reference = source; } - public override void accept (CodeVisitor! visitor) { + public override void accept (CodeVisitor visitor) { expression.accept (visitor); type_reference.accept (visitor); @@ -70,7 +70,7 @@ public class Vala.TypeCheck : Expression { return expression.is_pure (); } - public override void replace_type (DataType! old_type, DataType! new_type) { + public override void replace_type (DataType old_type, DataType new_type) { if (type_reference == old_type) { type_reference = new_type; } |