Commit cb7df635 authored by Luca Bruno's avatar Luca Bruno

On-demand Method.has_construct_function

parent 90083f1e
......@@ -205,7 +205,14 @@ public class Vala.Method : Subroutine {
* Specifies whether a construct function with a GType parameter is
* available. This is only applicable to creation methods.
*/
public bool has_construct_function { get; set; default = true; }
public bool has_construct_function {
get {
return get_attribute_bool ("CCode", "has_construct_function", true);
}
set {
set_attribute_bool ("CCode", "has_construct_function", value);
}
}
public bool has_generic_type_parameter { get; set; }
......@@ -463,9 +470,6 @@ public class Vala.Method : Subroutine {
if (a.has_argument ("has_new_function")) {
has_new_function = a.get_bool ("has_new_function");
}
if (a.has_argument ("has_construct_function")) {
has_construct_function = a.get_bool ("has_construct_function");
}
if (a.has_argument ("generic_type_pos")) {
has_generic_type_parameter = true;
generic_type_parameter_position = a.get_double ("generic_type_pos");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment