/**
* Specifies whether this symbol has been deprecated.
*/
- public bool deprecated { get; set; default = false; }
+ public bool deprecated {
+ get {
+ if (_deprecated == null) {
+ _deprecated = get_attribute ("Deprecated") != null;
+ }
+ return _deprecated;
+ }
+ set {
+ _deprecated = value;
+ set_attribute ("Deprecated", _deprecated);
+ }
+ }
/**
* Specifies what version this symbol has been deprecated since.
private weak Scope _owner;
private Scope _scope;
private string? _gir_name = null;
+ private bool? _deprecated;
public Symbol (string? name, SourceReference? source_reference, Comment? comment = null) {
this.name = name;
return;
}
- deprecated = true;
-
if (attr.has_argument ("since")) {
deprecated_since = attr.get_string ("since");
}