summaryrefslogtreecommitdiff
path: root/vala/valaattribute.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valaattribute.vala')
-rw-r--r--vala/valaattribute.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/vala/valaattribute.vala b/vala/valaattribute.vala
index 5486f4f2a..f1ef73f81 100644
--- a/vala/valaattribute.vala
+++ b/vala/valaattribute.vala
@@ -46,6 +46,14 @@ public class Vala.Attribute : CodeNode {
public Attribute (string name, SourceReference? source_reference = null) {
this.name = name;
this.source_reference = source_reference;
+
+ if (!CodeContext.get ().deprecated) {
+ if (name == "Deprecated") {
+ Report.deprecated (source_reference, "[Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = \"\", replacement = \"\")]");
+ } else if (name == "Experimental") {
+ Report.deprecated (source_reference, "[Experimental] is deprecated. Use [Version (experimental = true, experimental_until = \"\")]");
+ }
+ }
}
/**