GSoC 2024: Week 3-4 Report
GSoC 2024: Week 3-4 Report Project Add support for the latest GIR attributes and GI-Docgen formatting to Valadoc Mentor Lorenz Wildberg Week 3 : default-value attribute for property Parsing the "default-value" attribute into a member access: In continuation of the work done previously, we tried to set the prop. initializer of the corresponding Vala.Property from the default-value attribute by parsing it as an enumerator member. We parsed the default-value into a member access in GirParser.process(), but trying to regenerate the bindings resulted in errors like this: We got these errors because the default-value attribute in the vala GIRs actually contains the "c:identifier" of the enum member. However the function parse_enumeration_member() in the GirParser parses it into an EnumValue using its "name" attribute and not the "c:identifier" attribute. Thus when we try to p arse the default-value attribute into a member access, the par