@gtkx/gir 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/parser.ts +2 -0
- package/src/types.ts +4 -0
package/package.json
CHANGED
package/src/parser.ts
CHANGED
|
@@ -281,6 +281,8 @@ export class GirParser {
|
|
|
281
281
|
writable: prop["@_writable"] === "1",
|
|
282
282
|
constructOnly: prop["@_construct-only"] === "1",
|
|
283
283
|
hasDefault: prop["@_default-value"] !== undefined,
|
|
284
|
+
getter: prop["@_getter"] ? String(prop["@_getter"]) : undefined,
|
|
285
|
+
setter: prop["@_setter"] ? String(prop["@_setter"]) : undefined,
|
|
284
286
|
doc: extractDoc(prop),
|
|
285
287
|
}));
|
|
286
288
|
}
|
package/src/types.ts
CHANGED
|
@@ -222,6 +222,10 @@ export interface GirProperty {
|
|
|
222
222
|
constructOnly?: boolean;
|
|
223
223
|
/** Whether this property has a default value. */
|
|
224
224
|
hasDefault?: boolean;
|
|
225
|
+
/** The getter method name for this property. */
|
|
226
|
+
getter?: string;
|
|
227
|
+
/** The setter method name for this property. */
|
|
228
|
+
setter?: string;
|
|
225
229
|
/** Documentation for the property. */
|
|
226
230
|
doc?: string;
|
|
227
231
|
}
|