[vala] Warn for deprecated and experimental only for symbols in external packages
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Warn for deprecated and experimental only for symbols in external packages
- Date: Fri, 26 Aug 2011 07:18:26 +0000 (UTC)
commit e71d1ca2a2258e09767f1a53bb0e45e071d0136f
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Aug 25 23:13:29 2011 +0200
Warn for deprecated and experimental only for symbols in external packages
Fixes bug 657283.
vala/valasymbol.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala
index 9813801..d5716af 100644
--- a/vala/valasymbol.vala
+++ b/vala/valasymbol.vala
@@ -405,7 +405,7 @@ public abstract class Vala.Symbol : CodeNode {
* if it has.
*/
public bool check_deprecated (SourceReference? source_ref = null) {
- if (deprecated) {
+ if (external_package && deprecated) {
if (!CodeContext.get ().deprecated) {
Report.deprecated (source_ref, "%s %s%s".printf (get_full_name (), (deprecated_since == null) ? "is deprecated" : "has been deprecated since %s".printf (deprecated_since), (replacement == null) ? "" : ". Use %s".printf (replacement)));
}
@@ -420,7 +420,7 @@ public abstract class Vala.Symbol : CodeNode {
* if it is.
*/
public bool check_experimental (SourceReference? source_ref = null) {
- if (experimental) {
+ if (external_package && experimental) {
if (!CodeContext.get ().experimental) {
Report.experimental (source_ref, "%s is experimental".printf (get_full_name ()));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]