[vala] Deprecate implicit .begin for async methods
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Deprecate implicit .begin for async methods
- Date: Tue, 31 Jul 2012 12:31:04 +0000 (UTC)
commit 2cdc33d7d8cc4a565e13643a81ece7959dc9f356
Author: JÃrg Billeter <j bitron ch>
Date: Tue Jul 31 14:29:37 2012 +0200
Deprecate implicit .begin for async methods
vala/valamethodcall.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 33b820f..0c6705e 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -1,6 +1,6 @@
/* valamethodcall.vala
*
- * Copyright (C) 2006-2011 JÃrg Billeter
+ * Copyright (C) 2006-2012 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
@@ -332,6 +332,9 @@ public class Vala.MethodCall : Expression {
// begin or end call of async method
if (ma.member_name != "end") {
// begin (possibly implicit)
+ if (ma.member_name != "begin") {
+ Report.deprecated (ma.source_reference, "implicit .begin is deprecated");
+ }
params = m.get_async_begin_parameters ();
ret_type = new VoidType ();
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]