@ts-for-gir/cli 3.0.0-beta.9 → 3.0.0
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/README.md +160 -35
- package/lib/commands/doc.d.ts +1 -17
- package/lib/commands/doc.js +7 -13
- package/lib/commands/doc.js.map +1 -1
- package/lib/commands/generate.d.ts +1 -37
- package/lib/commands/generate.js +8 -24
- package/lib/commands/generate.js.map +1 -1
- package/lib/commands/list.d.ts +1 -11
- package/lib/commands/list.js +6 -10
- package/lib/commands/list.js.map +1 -1
- package/lib/config.d.ts +21 -5
- package/lib/config.js +164 -86
- package/lib/config.js.map +1 -1
- package/lib/generation-handler.d.ts +3 -4
- package/lib/generation-handler.js +7 -11
- package/lib/generation-handler.js.map +1 -1
- package/lib/index.d.ts +0 -12
- package/lib/index.js +0 -12
- package/lib/index.js.map +1 -1
- package/lib/module-loader.d.ts +35 -24
- package/lib/module-loader.js +3 -8
- package/lib/module-loader.js.map +1 -1
- package/lib/utils.d.ts +0 -262
- package/lib/utils.js +8 -371
- package/lib/utils.js.map +1 -1
- package/package.json +32 -37
- package/src/commands/doc.ts +9 -14
- package/src/commands/generate.ts +10 -24
- package/src/commands/list.ts +8 -10
- package/src/config.ts +178 -92
- package/src/generation-handler.ts +11 -12
- package/src/index.ts +0 -12
- package/src/module-loader.ts +39 -31
- package/src/utils.ts +8 -401
- package/lib/conflict-resolver.d.ts +0 -155
- package/lib/conflict-resolver.js +0 -1103
- package/lib/conflict-resolver.js.map +0 -1
- package/lib/constants.d.ts +0 -18
- package/lib/constants.js +0 -23
- package/lib/constants.js.map +0 -1
- package/lib/dependency-manager.d.ts +0 -34
- package/lib/dependency-manager.js +0 -78
- package/lib/dependency-manager.js.map +0 -1
- package/lib/generator.d.ts +0 -5
- package/lib/generator.js +0 -2
- package/lib/generator.js.map +0 -1
- package/lib/gir-factory.d.ts +0 -51
- package/lib/gir-factory.js +0 -361
- package/lib/gir-factory.js.map +0 -1
- package/lib/gir-module.d.ts +0 -257
- package/lib/gir-module.js +0 -2086
- package/lib/gir-module.js.map +0 -1
- package/lib/html-doc-generator.d.ts +0 -13
- package/lib/html-doc-generator.js +0 -18
- package/lib/html-doc-generator.js.map +0 -1
- package/lib/injection/callbacks/gjs/Gio-2.0.d.ts +0 -2
- package/lib/injection/callbacks/gjs/Gio-2.0.js +0 -36
- package/lib/injection/callbacks/gjs/Gio-2.0.js.map +0 -1
- package/lib/injection/callbacks/gjs/index.d.ts +0 -2
- package/lib/injection/callbacks/gjs/index.js +0 -3
- package/lib/injection/callbacks/gjs/index.js.map +0 -1
- package/lib/injection/callbacks/index.d.ts +0 -4
- package/lib/injection/callbacks/index.js +0 -4
- package/lib/injection/callbacks/index.js.map +0 -1
- package/lib/injection/callbacks/node-gtk/index.d.ts +0 -2
- package/lib/injection/callbacks/node-gtk/index.js +0 -2
- package/lib/injection/callbacks/node-gtk/index.js.map +0 -1
- package/lib/injection/classes/GLib-2-0.d.ts +0 -2
- package/lib/injection/classes/GLib-2-0.js +0 -35
- package/lib/injection/classes/GLib-2-0.js.map +0 -1
- package/lib/injection/classes/gjs/GLib-2.0.d.ts +0 -2
- package/lib/injection/classes/gjs/GLib-2.0.js +0 -200
- package/lib/injection/classes/gjs/GLib-2.0.js.map +0 -1
- package/lib/injection/classes/gjs/GObject-2.0.d.ts +0 -2
- package/lib/injection/classes/gjs/GObject-2.0.js +0 -634
- package/lib/injection/classes/gjs/GObject-2.0.js.map +0 -1
- package/lib/injection/classes/gjs/Gio-2.0.d.ts +0 -5
- package/lib/injection/classes/gjs/Gio-2.0.js +0 -218
- package/lib/injection/classes/gjs/Gio-2.0.js.map +0 -1
- package/lib/injection/classes/gjs/index.d.ts +0 -2
- package/lib/injection/classes/gjs/index.js +0 -5
- package/lib/injection/classes/gjs/index.js.map +0 -1
- package/lib/injection/classes/index.d.ts +0 -4
- package/lib/injection/classes/index.js +0 -5
- package/lib/injection/classes/index.js.map +0 -1
- package/lib/injection/classes/node-gtk/GLib-2.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/GLib-2.0.js +0 -19
- package/lib/injection/classes/node-gtk/GLib-2.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/GObject-2.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/GObject-2.0.js +0 -66
- package/lib/injection/classes/node-gtk/GObject-2.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/Gdk-4.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/Gdk-4.0.js +0 -32
- package/lib/injection/classes/node-gtk/Gdk-4.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/Gio-2.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/Gio-2.0.js +0 -14
- package/lib/injection/classes/node-gtk/Gio-2.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/Graphene-1.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/Graphene-1.0.js +0 -133
- package/lib/injection/classes/node-gtk/Graphene-1.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/Gtk-3.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/Gtk-3.0.js +0 -31
- package/lib/injection/classes/node-gtk/Gtk-3.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/Gtk-4.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/Gtk-4.0.js +0 -52
- package/lib/injection/classes/node-gtk/Gtk-4.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/Pango-1.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/Pango-1.0.js +0 -31
- package/lib/injection/classes/node-gtk/Pango-1.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/index.d.ts +0 -2
- package/lib/injection/classes/node-gtk/index.js +0 -19
- package/lib/injection/classes/node-gtk/index.js.map +0 -1
- package/lib/injection/index.d.ts +0 -3
- package/lib/injection/index.js +0 -4
- package/lib/injection/index.js.map +0 -1
- package/lib/injection/injector.d.ts +0 -17
- package/lib/injection/injector.js +0 -139
- package/lib/injection/injector.js.map +0 -1
- package/lib/logger.d.ts +0 -36
- package/lib/logger.js +0 -137
- package/lib/logger.js.map +0 -1
- package/lib/messages.d.ts +0 -31
- package/lib/messages.js +0 -46
- package/lib/messages.js.map +0 -1
- package/lib/symtable.d.ts +0 -24
- package/lib/symtable.js +0 -63
- package/lib/symtable.js.map +0 -1
- package/lib/template-processor.d.ts +0 -74
- package/lib/template-processor.js +0 -165
- package/lib/template-processor.js.map +0 -1
- package/lib/transformation.d.ts +0 -156
- package/lib/transformation.js +0 -523
- package/lib/transformation.js.map +0 -1
- package/lib/type-definition-generator.d.ts +0 -116
- package/lib/type-definition-generator.js +0 -991
- package/lib/type-definition-generator.js.map +0 -1
- package/lib/types/answer-version.d.ts +0 -4
- package/lib/types/answer-version.js +0 -2
- package/lib/types/answer-version.js.map +0 -1
- package/lib/types/build-type.d.ts +0 -1
- package/lib/types/build-type.js +0 -2
- package/lib/types/build-type.js.map +0 -1
- package/lib/types/class-parent.d.ts +0 -13
- package/lib/types/class-parent.js +0 -2
- package/lib/types/class-parent.js.map +0 -1
- package/lib/types/config-flags.d.ts +0 -4
- package/lib/types/config-flags.js +0 -2
- package/lib/types/config-flags.js.map +0 -1
- package/lib/types/conflict-child-element.d.ts +0 -10
- package/lib/types/conflict-child-element.js +0 -2
- package/lib/types/conflict-child-element.js.map +0 -1
- package/lib/types/conflict-grouped-element.d.ts +0 -6
- package/lib/types/conflict-grouped-element.js +0 -2
- package/lib/types/conflict-grouped-element.js.map +0 -1
- package/lib/types/conflict-grouped-elements.d.ts +0 -4
- package/lib/types/conflict-grouped-elements.js +0 -2
- package/lib/types/conflict-grouped-elements.js.map +0 -1
- package/lib/types/construct-name.d.ts +0 -1
- package/lib/types/construct-name.js +0 -2
- package/lib/types/construct-name.js.map +0 -1
- package/lib/types/dependency-map.d.ts +0 -4
- package/lib/types/dependency-map.js +0 -2
- package/lib/types/dependency-map.js.map +0 -1
- package/lib/types/dependency.d.ts +0 -15
- package/lib/types/dependency.js +0 -2
- package/lib/types/dependency.js.map +0 -1
- package/lib/types/environment.d.ts +0 -1
- package/lib/types/environment.js +0 -2
- package/lib/types/environment.js.map +0 -1
- package/lib/types/file-info.d.ts +0 -14
- package/lib/types/file-info.js +0 -2
- package/lib/types/file-info.js.map +0 -1
- package/lib/types/generate-config.d.ts +0 -32
- package/lib/types/generate-config.js +0 -2
- package/lib/types/generate-config.js.map +0 -1
- package/lib/types/generator-type.d.ts +0 -4
- package/lib/types/generator-type.js +0 -6
- package/lib/types/generator-type.js.map +0 -1
- package/lib/types/gir-alias-element.d.ts +0 -13
- package/lib/types/gir-alias-element.js +0 -2
- package/lib/types/gir-alias-element.js.map +0 -1
- package/lib/types/gir-annotation.d.ts +0 -9
- package/lib/types/gir-annotation.js +0 -2
- package/lib/types/gir-annotation.js.map +0 -1
- package/lib/types/gir-any-element.d.ts +0 -2
- package/lib/types/gir-any-element.js +0 -2
- package/lib/types/gir-any-element.js.map +0 -1
- package/lib/types/gir-any-type.d.ts +0 -5
- package/lib/types/gir-any-type.js +0 -2
- package/lib/types/gir-any-type.js.map +0 -1
- package/lib/types/gir-array-type.d.ts +0 -20
- package/lib/types/gir-array-type.js +0 -3
- package/lib/types/gir-array-type.js.map +0 -1
- package/lib/types/gir-bitfield-element.d.ts +0 -17
- package/lib/types/gir-bitfield-element.js +0 -2
- package/lib/types/gir-bitfield-element.js.map +0 -1
- package/lib/types/gir-boolean.d.ts +0 -1
- package/lib/types/gir-boolean.js +0 -2
- package/lib/types/gir-boolean.js.map +0 -1
- package/lib/types/gir-boxed-element.d.ts +0 -15
- package/lib/types/gir-boxed-element.js +0 -2
- package/lib/types/gir-boxed-element.js.map +0 -1
- package/lib/types/gir-c-include.d.ts +0 -7
- package/lib/types/gir-c-include.js +0 -2
- package/lib/types/gir-c-include.js.map +0 -1
- package/lib/types/gir-callable-attrs.d.ts +0 -15
- package/lib/types/gir-callable-attrs.js +0 -3
- package/lib/types/gir-callable-attrs.js.map +0 -1
- package/lib/types/gir-callable-param-element.d.ts +0 -30
- package/lib/types/gir-callable-param-element.js +0 -2
- package/lib/types/gir-callable-param-element.js.map +0 -1
- package/lib/types/gir-callable-param.d.ts +0 -7
- package/lib/types/gir-callable-param.js +0 -2
- package/lib/types/gir-callable-param.js.map +0 -1
- package/lib/types/gir-callable-return.d.ts +0 -22
- package/lib/types/gir-callable-return.js +0 -2
- package/lib/types/gir-callable-return.js.map +0 -1
- package/lib/types/gir-callback-element.d.ts +0 -15
- package/lib/types/gir-callback-element.js +0 -2
- package/lib/types/gir-callback-element.js.map +0 -1
- package/lib/types/gir-class-element.d.ts +0 -48
- package/lib/types/gir-class-element.js +0 -2
- package/lib/types/gir-class-element.js.map +0 -1
- package/lib/types/gir-constant-element.d.ts +0 -15
- package/lib/types/gir-constant-element.js +0 -2
- package/lib/types/gir-constant-element.js.map +0 -1
- package/lib/types/gir-constructor-element.d.ts +0 -8
- package/lib/types/gir-constructor-element.js +0 -2
- package/lib/types/gir-constructor-element.js.map +0 -1
- package/lib/types/gir-direction.d.ts +0 -5
- package/lib/types/gir-direction.js +0 -7
- package/lib/types/gir-direction.js.map +0 -1
- package/lib/types/gir-doc-element.d.ts +0 -68
- package/lib/types/gir-doc-element.js +0 -2
- package/lib/types/gir-doc-element.js.map +0 -1
- package/lib/types/gir-enum-element.d.ts +0 -19
- package/lib/types/gir-enum-element.js +0 -2
- package/lib/types/gir-enum-element.js.map +0 -1
- package/lib/types/gir-field-element.d.ts +0 -18
- package/lib/types/gir-field-element.js +0 -2
- package/lib/types/gir-field-element.js.map +0 -1
- package/lib/types/gir-function-element.d.ts +0 -8
- package/lib/types/gir-function-element.js +0 -2
- package/lib/types/gir-function-element.js.map +0 -1
- package/lib/types/gir-implements.d.ts +0 -8
- package/lib/types/gir-implements.js +0 -2
- package/lib/types/gir-implements.js.map +0 -1
- package/lib/types/gir-include.d.ts +0 -9
- package/lib/types/gir-include.js +0 -2
- package/lib/types/gir-include.js.map +0 -1
- package/lib/types/gir-info-attrs.d.ts +0 -13
- package/lib/types/gir-info-attrs.js +0 -2
- package/lib/types/gir-info-attrs.js.map +0 -1
- package/lib/types/gir-info-elements.d.ts +0 -5
- package/lib/types/gir-info-elements.js +0 -2
- package/lib/types/gir-info-elements.js.map +0 -1
- package/lib/types/gir-instance-parameter.d.ts +0 -21
- package/lib/types/gir-instance-parameter.js +0 -2
- package/lib/types/gir-instance-parameter.js.map +0 -1
- package/lib/types/gir-interface-element.d.ts +0 -31
- package/lib/types/gir-interface-element.js +0 -2
- package/lib/types/gir-interface-element.js.map +0 -1
- package/lib/types/gir-member-element.d.ts +0 -17
- package/lib/types/gir-member-element.js +0 -2
- package/lib/types/gir-member-element.js.map +0 -1
- package/lib/types/gir-method-element.d.ts +0 -13
- package/lib/types/gir-method-element.js +0 -2
- package/lib/types/gir-method-element.js.map +0 -1
- package/lib/types/gir-module-resolved-by.d.ts +0 -10
- package/lib/types/gir-module-resolved-by.js +0 -2
- package/lib/types/gir-module-resolved-by.js.map +0 -1
- package/lib/types/gir-modules-grouped-map.d.ts +0 -4
- package/lib/types/gir-modules-grouped-map.js +0 -2
- package/lib/types/gir-modules-grouped-map.js.map +0 -1
- package/lib/types/gir-modules-grouped.d.ts +0 -12
- package/lib/types/gir-modules-grouped.js +0 -2
- package/lib/types/gir-modules-grouped.js.map +0 -1
- package/lib/types/gir-namespace.d.ts +0 -30
- package/lib/types/gir-namespace.js +0 -2
- package/lib/types/gir-namespace.js.map +0 -1
- package/lib/types/gir-package.d.ts +0 -7
- package/lib/types/gir-package.js +0 -2
- package/lib/types/gir-package.js.map +0 -1
- package/lib/types/gir-prerequisite.d.ts +0 -5
- package/lib/types/gir-prerequisite.js +0 -2
- package/lib/types/gir-prerequisite.js.map +0 -1
- package/lib/types/gir-property-element.d.ts +0 -21
- package/lib/types/gir-property-element.js +0 -2
- package/lib/types/gir-property-element.js.map +0 -1
- package/lib/types/gir-record-element.d.ts +0 -30
- package/lib/types/gir-record-element.js +0 -2
- package/lib/types/gir-record-element.js.map +0 -1
- package/lib/types/gir-repository.d.ts +0 -16
- package/lib/types/gir-repository.js +0 -2
- package/lib/types/gir-repository.js.map +0 -1
- package/lib/types/gir-signal.d.ts +0 -25
- package/lib/types/gir-signal.js +0 -2
- package/lib/types/gir-signal.js.map +0 -1
- package/lib/types/gir-transfer-ownership-type.d.ts +0 -5
- package/lib/types/gir-transfer-ownership-type.js +0 -7
- package/lib/types/gir-transfer-ownership-type.js.map +0 -1
- package/lib/types/gir-transfer-ownership.d.ts +0 -5
- package/lib/types/gir-transfer-ownership.js +0 -2
- package/lib/types/gir-transfer-ownership.js.map +0 -1
- package/lib/types/gir-type.d.ts +0 -14
- package/lib/types/gir-type.js +0 -2
- package/lib/types/gir-type.js.map +0 -1
- package/lib/types/gir-union-element.d.ts +0 -22
- package/lib/types/gir-union-element.js +0 -2
- package/lib/types/gir-union-element.js.map +0 -1
- package/lib/types/gir-unparsed-number.d.ts +0 -2
- package/lib/types/gir-unparsed-number.js +0 -2
- package/lib/types/gir-unparsed-number.js.map +0 -1
- package/lib/types/gir-var-args.d.ts +0 -5
- package/lib/types/gir-var-args.js +0 -2
- package/lib/types/gir-var-args.js.map +0 -1
- package/lib/types/gir-virtual-method.d.ts +0 -10
- package/lib/types/gir-virtual-method.js +0 -2
- package/lib/types/gir-virtual-method.js.map +0 -1
- package/lib/types/index.d.ts +0 -119
- package/lib/types/index.js +0 -120
- package/lib/types/index.js.map +0 -1
- package/lib/types/inheritance-table.d.ts +0 -3
- package/lib/types/inheritance-table.js +0 -2
- package/lib/types/inheritance-table.js.map +0 -1
- package/lib/types/injection-callback.d.ts +0 -16
- package/lib/types/injection-callback.js +0 -2
- package/lib/types/injection-callback.js.map +0 -1
- package/lib/types/injection-class.d.ts +0 -25
- package/lib/types/injection-class.js +0 -2
- package/lib/types/injection-class.js.map +0 -1
- package/lib/types/injection-function.d.ts +0 -7
- package/lib/types/injection-function.js +0 -2
- package/lib/types/injection-function.js.map +0 -1
- package/lib/types/injection-generic-parameter.d.ts +0 -2
- package/lib/types/injection-generic-parameter.js +0 -2
- package/lib/types/injection-generic-parameter.js.map +0 -1
- package/lib/types/injection-instance-parameter.d.ts +0 -2
- package/lib/types/injection-instance-parameter.js +0 -2
- package/lib/types/injection-instance-parameter.js.map +0 -1
- package/lib/types/injection-parameter.d.ts +0 -8
- package/lib/types/injection-parameter.js +0 -2
- package/lib/types/injection-parameter.js.map +0 -1
- package/lib/types/injection-property.d.ts +0 -4
- package/lib/types/injection-property.js +0 -2
- package/lib/types/injection-property.js.map +0 -1
- package/lib/types/injection-type.d.ts +0 -2
- package/lib/types/injection-type.js +0 -2
- package/lib/types/injection-type.js.map +0 -1
- package/lib/types/injection.d.ts +0 -5
- package/lib/types/injection.js +0 -2
- package/lib/types/injection.js.map +0 -1
- package/lib/types/local-name-check.d.ts +0 -4
- package/lib/types/local-name-check.js +0 -2
- package/lib/types/local-name-check.js.map +0 -1
- package/lib/types/local-name-type.d.ts +0 -1
- package/lib/types/local-name-type.js +0 -2
- package/lib/types/local-name-type.js.map +0 -1
- package/lib/types/local-name.d.ts +0 -7
- package/lib/types/local-name.js +0 -2
- package/lib/types/local-name.js.map +0 -1
- package/lib/types/local-names.d.ts +0 -4
- package/lib/types/local-names.js +0 -2
- package/lib/types/local-names.js.map +0 -1
- package/lib/types/module-type.d.ts +0 -1
- package/lib/types/module-type.js +0 -2
- package/lib/types/module-type.js.map +0 -1
- package/lib/types/parsed-gir.d.ts +0 -4
- package/lib/types/parsed-gir.js +0 -2
- package/lib/types/parsed-gir.js.map +0 -1
- package/lib/types/part-of-class.d.ts +0 -7
- package/lib/types/part-of-class.js +0 -2
- package/lib/types/part-of-class.js.map +0 -1
- package/lib/types/part-of-module.d.ts +0 -6
- package/lib/types/part-of-module.js +0 -2
- package/lib/types/part-of-module.js.map +0 -1
- package/lib/types/promisify-func.d.ts +0 -5
- package/lib/types/promisify-func.js +0 -2
- package/lib/types/promisify-func.js.map +0 -1
- package/lib/types/resolve-type.d.ts +0 -4
- package/lib/types/resolve-type.js +0 -6
- package/lib/types/resolve-type.js.map +0 -1
- package/lib/types/sym-table-items.d.ts +0 -4
- package/lib/types/sym-table-items.js +0 -2
- package/lib/types/sym-table-items.js.map +0 -1
- package/lib/types/transformation-case.d.ts +0 -1
- package/lib/types/transformation-case.js +0 -2
- package/lib/types/transformation-case.js.map +0 -1
- package/lib/types/transformations.d.ts +0 -11
- package/lib/types/transformations.js +0 -2
- package/lib/types/transformations.js.map +0 -1
- package/lib/types/ts-alias.d.ts +0 -10
- package/lib/types/ts-alias.js +0 -2
- package/lib/types/ts-alias.js.map +0 -1
- package/lib/types/ts-callback-interface.d.ts +0 -10
- package/lib/types/ts-callback-interface.js +0 -2
- package/lib/types/ts-callback-interface.js.map +0 -1
- package/lib/types/ts-callback.d.ts +0 -17
- package/lib/types/ts-callback.js +0 -2
- package/lib/types/ts-callback.js.map +0 -1
- package/lib/types/ts-class.d.ts +0 -85
- package/lib/types/ts-class.js +0 -2
- package/lib/types/ts-class.js.map +0 -1
- package/lib/types/ts-doc-tag.d.ts +0 -21
- package/lib/types/ts-doc-tag.js +0 -2
- package/lib/types/ts-doc-tag.js.map +0 -1
- package/lib/types/ts-doc.d.ts +0 -20
- package/lib/types/ts-doc.js +0 -2
- package/lib/types/ts-doc.js.map +0 -1
- package/lib/types/ts-enum.d.ts +0 -12
- package/lib/types/ts-enum.js +0 -2
- package/lib/types/ts-enum.js.map +0 -1
- package/lib/types/ts-function.d.ts +0 -44
- package/lib/types/ts-function.js +0 -2
- package/lib/types/ts-function.js.map +0 -1
- package/lib/types/ts-generic-parameter.d.ts +0 -8
- package/lib/types/ts-generic-parameter.js +0 -2
- package/lib/types/ts-generic-parameter.js.map +0 -1
- package/lib/types/ts-instance-parameter.d.ts +0 -4
- package/lib/types/ts-instance-parameter.js +0 -2
- package/lib/types/ts-instance-parameter.js.map +0 -1
- package/lib/types/ts-member.d.ts +0 -10
- package/lib/types/ts-member.js +0 -2
- package/lib/types/ts-member.js.map +0 -1
- package/lib/types/ts-method.d.ts +0 -5
- package/lib/types/ts-method.js +0 -2
- package/lib/types/ts-method.js.map +0 -1
- package/lib/types/ts-parameter.d.ts +0 -15
- package/lib/types/ts-parameter.js +0 -2
- package/lib/types/ts-parameter.js.map +0 -1
- package/lib/types/ts-property.d.ts +0 -17
- package/lib/types/ts-property.js +0 -2
- package/lib/types/ts-property.js.map +0 -1
- package/lib/types/ts-signal.d.ts +0 -17
- package/lib/types/ts-signal.js +0 -2
- package/lib/types/ts-signal.js.map +0 -1
- package/lib/types/ts-type-name.d.ts +0 -1
- package/lib/types/ts-type-name.js +0 -2
- package/lib/types/ts-type-name.js.map +0 -1
- package/lib/types/ts-type-separator.d.ts +0 -1
- package/lib/types/ts-type-separator.js +0 -2
- package/lib/types/ts-type-separator.js.map +0 -1
- package/lib/types/ts-type.d.ts +0 -22
- package/lib/types/ts-type.js +0 -2
- package/lib/types/ts-type.js.map +0 -1
- package/lib/types/ts-var.d.ts +0 -17
- package/lib/types/ts-var.js +0 -2
- package/lib/types/ts-var.js.map +0 -1
- package/lib/types/type-gir-alias.d.ts +0 -2
- package/lib/types/type-gir-alias.js +0 -2
- package/lib/types/type-gir-alias.js.map +0 -1
- package/lib/types/type-gir-class.d.ts +0 -2
- package/lib/types/type-gir-class.js +0 -2
- package/lib/types/type-gir-class.js.map +0 -1
- package/lib/types/type-gir-element.d.ts +0 -3
- package/lib/types/type-gir-element.js +0 -2
- package/lib/types/type-gir-element.js.map +0 -1
- package/lib/types/type-gir-enumeration-member.d.ts +0 -2
- package/lib/types/type-gir-enumeration-member.js +0 -2
- package/lib/types/type-gir-enumeration-member.js.map +0 -1
- package/lib/types/type-gir-enumeration.d.ts +0 -2
- package/lib/types/type-gir-enumeration.js +0 -2
- package/lib/types/type-gir-enumeration.js.map +0 -1
- package/lib/types/type-gir-function.d.ts +0 -1
- package/lib/types/type-gir-function.js +0 -2
- package/lib/types/type-gir-function.js.map +0 -1
- package/lib/types/type-gir-interface.d.ts +0 -2
- package/lib/types/type-gir-interface.js +0 -2
- package/lib/types/type-gir-interface.js.map +0 -1
- package/lib/types/type-gir-method.d.ts +0 -2
- package/lib/types/type-gir-method.js +0 -2
- package/lib/types/type-gir-method.js.map +0 -1
- package/lib/types/type-gir-parameter.d.ts +0 -1
- package/lib/types/type-gir-parameter.js +0 -2
- package/lib/types/type-gir-parameter.js.map +0 -1
- package/lib/types/type-gir-property.d.ts +0 -2
- package/lib/types/type-gir-property.js +0 -2
- package/lib/types/type-gir-property.js.map +0 -1
- package/lib/types/type-gir-variable.d.ts +0 -1
- package/lib/types/type-gir-variable.js +0 -2
- package/lib/types/type-gir-variable.js.map +0 -1
- package/lib/types/type-ts-element.d.ts +0 -3
- package/lib/types/type-ts-element.js +0 -2
- package/lib/types/type-ts-element.js.map +0 -1
- package/lib/types/type-ts-enumeration-member.d.ts +0 -2
- package/lib/types/type-ts-enumeration-member.js +0 -2
- package/lib/types/type-ts-enumeration-member.js.map +0 -1
- package/lib/types/type-ts-function.d.ts +0 -1
- package/lib/types/type-ts-function.js +0 -2
- package/lib/types/type-ts-function.js.map +0 -1
- package/lib/types/type-ts-property.d.ts +0 -1
- package/lib/types/type-ts-property.js +0 -2
- package/lib/types/type-ts-property.js.map +0 -1
- package/lib/types/user-config-load-result.d.ts +0 -6
- package/lib/types/user-config-load-result.js +0 -2
- package/lib/types/user-config-load-result.js.map +0 -1
- package/lib/types/user-config.d.ts +0 -40
- package/lib/types/user-config.js +0 -2
- package/lib/types/user-config.js.map +0 -1
- package/src/conflict-resolver.ts +0 -1358
- package/src/constants.ts +0 -29
- package/src/dependency-manager.ts +0 -91
- package/src/generator.ts +0 -10
- package/src/gir-factory.ts +0 -499
- package/src/gir-module.ts +0 -2827
- package/src/html-doc-generator.ts +0 -23
- package/src/injection/callbacks/gjs/Gio-2.0.ts +0 -37
- package/src/injection/callbacks/gjs/index.ts +0 -5
- package/src/injection/callbacks/index.ts +0 -6
- package/src/injection/callbacks/node-gtk/index.ts +0 -3
- package/src/injection/classes/GLib-2-0.ts +0 -36
- package/src/injection/classes/gjs/GLib-2.0.ts +0 -201
- package/src/injection/classes/gjs/GObject-2.0.ts +0 -635
- package/src/injection/classes/gjs/Gio-2.0.ts +0 -219
- package/src/injection/classes/gjs/index.ts +0 -7
- package/src/injection/classes/index.ts +0 -7
- package/src/injection/classes/node-gtk/GLib-2.0.ts +0 -20
- package/src/injection/classes/node-gtk/GObject-2.0.ts +0 -67
- package/src/injection/classes/node-gtk/Gdk-4.0.ts +0 -33
- package/src/injection/classes/node-gtk/Gio-2.0.ts +0 -15
- package/src/injection/classes/node-gtk/Graphene-1.0.ts +0 -134
- package/src/injection/classes/node-gtk/Gtk-3.0.ts +0 -32
- package/src/injection/classes/node-gtk/Gtk-4.0.ts +0 -53
- package/src/injection/classes/node-gtk/Pango-1.0.ts +0 -32
- package/src/injection/classes/node-gtk/index.ts +0 -21
- package/src/injection/index.ts +0 -3
- package/src/injection/injector.ts +0 -184
- package/src/logger.ts +0 -134
- package/src/messages.ts +0 -69
- package/src/symtable.ts +0 -72
- package/src/template-processor.ts +0 -199
- package/src/transformation.ts +0 -583
- package/src/type-definition-generator.ts +0 -1460
- package/src/types/answer-version.ts +0 -4
- package/src/types/build-type.ts +0 -1
- package/src/types/class-parent.ts +0 -14
- package/src/types/config-flags.ts +0 -5
- package/src/types/conflict-child-element.ts +0 -11
- package/src/types/conflict-grouped-element.ts +0 -7
- package/src/types/conflict-grouped-elements.ts +0 -5
- package/src/types/construct-name.ts +0 -11
- package/src/types/dependency-map.ts +0 -4
- package/src/types/dependency.ts +0 -16
- package/src/types/environment.ts +0 -1
- package/src/types/file-info.ts +0 -14
- package/src/types/generate-config.ts +0 -33
- package/src/types/generator-type.ts +0 -4
- package/src/types/gir-alias-element.ts +0 -15
- package/src/types/gir-annotation.ts +0 -10
- package/src/types/gir-any-element.ts +0 -35
- package/src/types/gir-any-type.ts +0 -7
- package/src/types/gir-array-type.ts +0 -23
- package/src/types/gir-bitfield-element.ts +0 -20
- package/src/types/gir-boolean.ts +0 -1
- package/src/types/gir-boxed-element.ts +0 -19
- package/src/types/gir-c-include.ts +0 -7
- package/src/types/gir-callable-attrs.ts +0 -19
- package/src/types/gir-callable-param-element.ts +0 -45
- package/src/types/gir-callable-param.ts +0 -9
- package/src/types/gir-callable-return.ts +0 -25
- package/src/types/gir-callback-element.ts +0 -28
- package/src/types/gir-class-element.ts +0 -71
- package/src/types/gir-constant-element.ts +0 -17
- package/src/types/gir-constructor-element.ts +0 -18
- package/src/types/gir-direction.ts +0 -5
- package/src/types/gir-doc-element.ts +0 -73
- package/src/types/gir-enum-element.ts +0 -28
- package/src/types/gir-field-element.ts +0 -31
- package/src/types/gir-function-element.ts +0 -19
- package/src/types/gir-implements.ts +0 -9
- package/src/types/gir-include.ts +0 -9
- package/src/types/gir-info-attrs.ts +0 -16
- package/src/types/gir-info-elements.ts +0 -8
- package/src/types/gir-instance-parameter.ts +0 -25
- package/src/types/gir-interface-element.ts +0 -53
- package/src/types/gir-member-element.ts +0 -19
- package/src/types/gir-method-element.ts +0 -25
- package/src/types/gir-module-resolved-by.ts +0 -11
- package/src/types/gir-modules-grouped-map.ts +0 -5
- package/src/types/gir-modules-grouped.ts +0 -13
- package/src/types/gir-namespace.ts +0 -47
- package/src/types/gir-package.ts +0 -7
- package/src/types/gir-prerequisite.ts +0 -5
- package/src/types/gir-property-element.ts +0 -31
- package/src/types/gir-record-element.ts +0 -47
- package/src/types/gir-repository.ts +0 -20
- package/src/types/gir-signal.ts +0 -43
- package/src/types/gir-transfer-ownership-type.ts +0 -5
- package/src/types/gir-transfer-ownership.ts +0 -6
- package/src/types/gir-type.ts +0 -16
- package/src/types/gir-union-element.ts +0 -35
- package/src/types/gir-unparsed-number.ts +0 -2
- package/src/types/gir-var-args.ts +0 -6
- package/src/types/gir-virtual-method.ts +0 -22
- package/src/types/index.ts +0 -119
- package/src/types/inheritance-table.ts +0 -3
- package/src/types/injection-callback.ts +0 -20
- package/src/types/injection-class.ts +0 -30
- package/src/types/injection-function.ts +0 -23
- package/src/types/injection-generic-parameter.ts +0 -3
- package/src/types/injection-instance-parameter.ts +0 -3
- package/src/types/injection-parameter.ts +0 -9
- package/src/types/injection-property.ts +0 -7
- package/src/types/injection-type.ts +0 -3
- package/src/types/injection.ts +0 -6
- package/src/types/local-name-check.ts +0 -5
- package/src/types/local-name-type.ts +0 -1
- package/src/types/local-name.ts +0 -8
- package/src/types/local-names.ts +0 -5
- package/src/types/module-type.ts +0 -1
- package/src/types/parsed-gir.ts +0 -5
- package/src/types/part-of-class.ts +0 -9
- package/src/types/part-of-module.ts +0 -8
- package/src/types/resolve-type.ts +0 -4
- package/src/types/sym-table-items.ts +0 -5
- package/src/types/transformation-case.ts +0 -7
- package/src/types/transformations.ts +0 -12
- package/src/types/ts-alias.ts +0 -11
- package/src/types/ts-callback-interface.ts +0 -11
- package/src/types/ts-callback.ts +0 -21
- package/src/types/ts-class.ts +0 -109
- package/src/types/ts-doc-tag.ts +0 -23
- package/src/types/ts-doc.ts +0 -23
- package/src/types/ts-enum.ts +0 -15
- package/src/types/ts-function.ts +0 -59
- package/src/types/ts-generic-parameter.ts +0 -8
- package/src/types/ts-instance-parameter.ts +0 -4
- package/src/types/ts-member.ts +0 -11
- package/src/types/ts-method.ts +0 -6
- package/src/types/ts-parameter.ts +0 -20
- package/src/types/ts-property.ts +0 -22
- package/src/types/ts-signal.ts +0 -21
- package/src/types/ts-type-name.ts +0 -1
- package/src/types/ts-type-separator.ts +0 -1
- package/src/types/ts-type.ts +0 -25
- package/src/types/ts-var.ts +0 -21
- package/src/types/type-gir-alias.ts +0 -2
- package/src/types/type-gir-class.ts +0 -2
- package/src/types/type-gir-element.ts +0 -25
- package/src/types/type-gir-enumeration-member.ts +0 -2
- package/src/types/type-gir-enumeration.ts +0 -2
- package/src/types/type-gir-function.ts +0 -8
- package/src/types/type-gir-interface.ts +0 -2
- package/src/types/type-gir-method.ts +0 -2
- package/src/types/type-gir-parameter.ts +0 -1
- package/src/types/type-gir-property.ts +0 -2
- package/src/types/type-gir-variable.ts +0 -1
- package/src/types/type-ts-element.ts +0 -13
- package/src/types/type-ts-enumeration-member.ts +0 -2
- package/src/types/type-ts-function.ts +0 -1
- package/src/types/type-ts-property.ts +0 -1
- package/src/types/user-config-load-result.ts +0 -6
- package/src/types/user-config.ts +0 -41
- package/templates/Cogl-2.0.d.ts +0 -0
- package/templates/Gjs/GObject-2.0.d.ts +0 -238
- package/templates/Gjs/Gio-2.0.d.ts +0 -64
- package/templates/Gjs/Gjs.d.ts +0 -204
- package/templates/Gjs/Gjs.js +0 -21
- package/templates/Gjs/GnomeShell.d.ts +0 -152
- package/templates/Gjs/GnomeShell.js +0 -10
- package/templates/Gjs/index.d.ts +0 -594
- package/templates/Gjs/index.js +0 -4
- package/templates/Gjs/misc/dbusUtils.d.ts +0 -15
- package/templates/Gjs/misc/dbusUtils.js +0 -6
- package/templates/Gjs/misc/extensionUtils.d.ts +0 -99
- package/templates/Gjs/misc/extensionUtils.js +0 -6
- package/templates/Gjs/misc/fileUtils.d.ts +0 -51
- package/templates/Gjs/misc/fileUtils.js +0 -6
- package/templates/Gjs/misc/gnomeSession.d.ts +0 -74
- package/templates/Gjs/misc/gnomeSession.js +0 -6
- package/templates/Gjs/misc/parentalControlsManager.d.ts +0 -42
- package/templates/Gjs/misc/parentalControlsManager.js +0 -6
- package/templates/Gjs/misc/signals.d.ts +0 -15
- package/templates/Gjs/misc/signals.js +0 -6
- package/templates/Gjs/module.d.ts +0 -6
- package/templates/Gjs/module.js +0 -16
- package/templates/Gjs/tsconfig.alias.json +0 -10
- package/templates/Gjs/ui/accessDialog.d.ts +0 -19
- package/templates/Gjs/ui/accessDialog.js +0 -6
- package/templates/Gjs/ui/altTab.d.ts +0 -124
- package/templates/Gjs/ui/altTab.js +0 -6
- package/templates/Gjs/ui/animation.d.ts +0 -58
- package/templates/Gjs/ui/animation.js +0 -6
- package/templates/Gjs/ui/appDisplay.d.ts +0 -204
- package/templates/Gjs/ui/appDisplay.js +0 -6
- package/templates/Gjs/ui/appFavorites.d.ts +0 -34
- package/templates/Gjs/ui/appFavorites.js +0 -6
- package/templates/Gjs/ui/appMenu.d.ts +0 -74
- package/templates/Gjs/ui/appMenu.js +0 -6
- package/templates/Gjs/ui/audioDeviceSelection.d.ts +0 -51
- package/templates/Gjs/ui/audioDeviceSelection.js +0 -6
- package/templates/Gjs/ui/background.d.ts +0 -255
- package/templates/Gjs/ui/background.js +0 -5
- package/templates/Gjs/ui/backgroundMenu.d.ts +0 -19
- package/templates/Gjs/ui/backgroundMenu.js +0 -5
- package/templates/Gjs/ui/barLevel.d.ts +0 -42
- package/templates/Gjs/ui/barLevel.js +0 -5
- package/templates/Gjs/ui/boxpointer.d.ts +0 -103
- package/templates/Gjs/ui/boxpointer.js +0 -5
- package/templates/Gjs/ui/calendar.d.ts +0 -261
- package/templates/Gjs/ui/calendar.js +0 -5
- package/templates/Gjs/ui/components/__init__.d.ts +0 -9
- package/templates/Gjs/ui/components/__init__.js +0 -6
- package/templates/Gjs/ui/components/automountManager.d.ts +0 -8
- package/templates/Gjs/ui/components/automountManager.js +0 -6
- package/templates/Gjs/ui/components/autorunManager.d.ts +0 -8
- package/templates/Gjs/ui/components/autorunManager.js +0 -6
- package/templates/Gjs/ui/components/index.d.ts +0 -6
- package/templates/Gjs/ui/components/index.js +0 -6
- package/templates/Gjs/ui/components/keyring.d.ts +0 -19
- package/templates/Gjs/ui/components/keyring.js +0 -6
- package/templates/Gjs/ui/components/networkAgent.d.ts +0 -10
- package/templates/Gjs/ui/components/networkAgent.js +0 -6
- package/templates/Gjs/ui/components/polkitAgent.d.ts +0 -19
- package/templates/Gjs/ui/components/polkitAgent.js +0 -6
- package/templates/Gjs/ui/components/telepathyClient.d.ts +0 -10
- package/templates/Gjs/ui/components/telepathyClient.js +0 -6
- package/templates/Gjs/ui/dialog.d.ts +0 -78
- package/templates/Gjs/ui/dialog.js +0 -0
- package/templates/Gjs/ui/dnd.d.ts +0 -127
- package/templates/Gjs/ui/dnd.js +0 -6
- package/templates/Gjs/ui/iconGrid.d.ts +0 -172
- package/templates/Gjs/ui/iconGrid.js +0 -6
- package/templates/Gjs/ui/layout.d.ts +0 -311
- package/templates/Gjs/ui/layout.js +0 -6
- package/templates/Gjs/ui/main.d.ts +0 -215
- package/templates/Gjs/ui/main.js +0 -6
- package/templates/Gjs/ui/messageList.d.ts +0 -113
- package/templates/Gjs/ui/messageList.js +0 -6
- package/templates/Gjs/ui/messageTray.d.ts +0 -423
- package/templates/Gjs/ui/messageTray.js +0 -6
- package/templates/Gjs/ui/modalDialog.d.ts +0 -96
- package/templates/Gjs/ui/modalDialog.js +0 -6
- package/templates/Gjs/ui/mpris.d.ts +0 -78
- package/templates/Gjs/ui/mpris.js +0 -6
- package/templates/Gjs/ui/notificationDaemon.d.ts +0 -5
- package/templates/Gjs/ui/notificationDaemon.js +0 -6
- package/templates/Gjs/ui/panel.d.ts +0 -65
- package/templates/Gjs/ui/panel.js +0 -6
- package/templates/Gjs/ui/panelMenu.d.ts +0 -51
- package/templates/Gjs/ui/panelMenu.js +0 -6
- package/templates/Gjs/ui/popupMenu.d.ts +0 -228
- package/templates/Gjs/ui/popupMenu.js +0 -6
- package/templates/Gjs/ui/ripples.d.ts +0 -44
- package/templates/Gjs/ui/ripples.js +0 -6
- package/templates/Gjs/ui/search.d.ts +0 -158
- package/templates/Gjs/ui/search.js +0 -6
- package/templates/Gjs/ui/switcherPopup.d.ts +0 -107
- package/templates/Gjs/ui/switcherPopup.js +0 -6
- package/templates/Gjs/ui/userWidget.d.ts +0 -13
- package/templates/Gjs/ui/userWidget.js +0 -6
- package/templates/Granite-1.0.d.ts +0 -7
- package/templates/Granite-7.0.d.ts +0 -7
- package/templates/GstBase-0.10.d.ts +0 -5
- package/templates/RygelServer-2.6.d.ts +0 -3
- package/templates/node-gtk/GObject-2.0.d.ts +0 -57
- package/templates/node-gtk/index.d.ts +0 -40
- package/templates/node-gtk/index.js +0 -9
- package/templates/node-gtk/module.d.ts +0 -6
- package/templates/node-gtk/module.js +0 -17
package/lib/gir-factory.js
DELETED
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import { GENERIC_NAMES } from './constants.js';
|
|
2
|
-
/**
|
|
3
|
-
* Creates new gir and ts objects
|
|
4
|
-
*/
|
|
5
|
-
export class GirFactory {
|
|
6
|
-
newGenerics(generics) {
|
|
7
|
-
const tsGenerics = [];
|
|
8
|
-
for (let i = 0; i < generics.length; i++) {
|
|
9
|
-
const generic = generics[i];
|
|
10
|
-
const tsGeneric = {
|
|
11
|
-
name: generic.name || GENERIC_NAMES[i],
|
|
12
|
-
...generic,
|
|
13
|
-
};
|
|
14
|
-
tsGenerics.push(tsGeneric);
|
|
15
|
-
}
|
|
16
|
-
return tsGenerics;
|
|
17
|
-
}
|
|
18
|
-
girTypeNameToTsTypeName(girTypeName, isStatic) {
|
|
19
|
-
switch (girTypeName) {
|
|
20
|
-
case 'alias':
|
|
21
|
-
return 'type';
|
|
22
|
-
case 'enum':
|
|
23
|
-
case 'bitfield':
|
|
24
|
-
return 'enum';
|
|
25
|
-
case 'enum-member':
|
|
26
|
-
case 'bitfield-member':
|
|
27
|
-
return 'enum-member';
|
|
28
|
-
case 'callback':
|
|
29
|
-
return 'interface';
|
|
30
|
-
case 'class':
|
|
31
|
-
case 'interface':
|
|
32
|
-
case 'union':
|
|
33
|
-
case 'record':
|
|
34
|
-
return 'class';
|
|
35
|
-
case 'constant':
|
|
36
|
-
return 'constant';
|
|
37
|
-
case 'constructor':
|
|
38
|
-
return 'constructor';
|
|
39
|
-
case 'method':
|
|
40
|
-
case 'virtual':
|
|
41
|
-
return 'method';
|
|
42
|
-
case 'signal':
|
|
43
|
-
return 'event-methods';
|
|
44
|
-
case 'static-function':
|
|
45
|
-
return 'static-function';
|
|
46
|
-
case 'function':
|
|
47
|
-
if (typeof isStatic === 'undefined') {
|
|
48
|
-
throw new Error('You must specify if the function is static or not if you want to convert the type of a function!');
|
|
49
|
-
}
|
|
50
|
-
if (isStatic) {
|
|
51
|
-
return 'static-function';
|
|
52
|
-
}
|
|
53
|
-
return 'function';
|
|
54
|
-
case 'field':
|
|
55
|
-
case 'property':
|
|
56
|
-
if (typeof isStatic === 'undefined') {
|
|
57
|
-
throw new Error('You must specify if the property is static or not if you want to convert the type of a function!');
|
|
58
|
-
}
|
|
59
|
-
if (isStatic) {
|
|
60
|
-
return 'static-property';
|
|
61
|
-
}
|
|
62
|
-
return 'property';
|
|
63
|
-
}
|
|
64
|
-
throw new Error(`Unknown gir type: "${String(girTypeName)}"!`);
|
|
65
|
-
}
|
|
66
|
-
newGirFunctions(injectFunctions, parent, overrideToAll = {}) {
|
|
67
|
-
const girFunctionElements = [];
|
|
68
|
-
for (let injectFunction of injectFunctions) {
|
|
69
|
-
injectFunction = { ...injectFunction, ...overrideToAll };
|
|
70
|
-
girFunctionElements.push(this.newGirFunction(injectFunction, parent));
|
|
71
|
-
}
|
|
72
|
-
return girFunctionElements;
|
|
73
|
-
}
|
|
74
|
-
newGirFunction(tsData, parent) {
|
|
75
|
-
const _tsData = this.newTsFunction(tsData, parent);
|
|
76
|
-
return {
|
|
77
|
-
$: this.newGirAttr(_tsData.name),
|
|
78
|
-
...this.newGirDocElement(),
|
|
79
|
-
_tsData,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
newGirCallableParamElement(tsData, parent) {
|
|
83
|
-
return {
|
|
84
|
-
$: this.newGirAttr(),
|
|
85
|
-
...this.newGirDocElement(),
|
|
86
|
-
_tsData: this.newTsParameter(tsData, parent),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
newGirCallableParamElements(injectionParams = [], parent) {
|
|
90
|
-
const result = [];
|
|
91
|
-
for (const injectionParam of injectionParams) {
|
|
92
|
-
result.push(this.newGirCallableParamElement(injectionParam, parent));
|
|
93
|
-
}
|
|
94
|
-
return result;
|
|
95
|
-
}
|
|
96
|
-
newGirInstanceParameter(tsData) {
|
|
97
|
-
return {
|
|
98
|
-
$: this.newGirAttr(),
|
|
99
|
-
...this.newGirDocElement(),
|
|
100
|
-
_tsData: tsData,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
newGirInstanceParameters(injectionInstanceParams = []) {
|
|
104
|
-
const result = [];
|
|
105
|
-
for (const injectionInstanceParam of injectionInstanceParams) {
|
|
106
|
-
result.push(this.newGirInstanceParameter(injectionInstanceParam));
|
|
107
|
-
}
|
|
108
|
-
return result;
|
|
109
|
-
}
|
|
110
|
-
newGirProperty(tsData) {
|
|
111
|
-
const _tsData = this.newTsProperty(tsData);
|
|
112
|
-
if (!_tsData.name)
|
|
113
|
-
throw new Error('The name property is required!');
|
|
114
|
-
return {
|
|
115
|
-
$: {
|
|
116
|
-
...this.newGirAttr(_tsData.name),
|
|
117
|
-
},
|
|
118
|
-
annotation: [],
|
|
119
|
-
...this.newGirDocElement(),
|
|
120
|
-
_tsData,
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
newGirProperties(InjectionProps, overrideToAll = {}) {
|
|
124
|
-
const result = [];
|
|
125
|
-
for (const InjectionProp of InjectionProps) {
|
|
126
|
-
result.push(this.newGirProperty({ ...InjectionProp, ...overrideToAll }));
|
|
127
|
-
}
|
|
128
|
-
return result;
|
|
129
|
-
}
|
|
130
|
-
newTsFunction(tsData, parent) {
|
|
131
|
-
const tsFunc = {
|
|
132
|
-
...tsData,
|
|
133
|
-
returnTypes: this.newTsTypes(tsData.returnTypes || []),
|
|
134
|
-
isArrowType: tsData.isArrowType || false,
|
|
135
|
-
isStatic: tsData.isStatic || false,
|
|
136
|
-
isGlobal: tsData.isGlobal || false,
|
|
137
|
-
isVirtual: tsData.isVirtual || false,
|
|
138
|
-
isInjected: tsData.isInjected || false,
|
|
139
|
-
retTypeIsVoid: tsData.returnTypes?.length === 1 && tsData.returnTypes[0]?.type === 'void',
|
|
140
|
-
generics: this.newGenerics(tsData.generics || []),
|
|
141
|
-
overloads: tsData.overloads || [],
|
|
142
|
-
doc: this.newTsDoc(tsData.doc),
|
|
143
|
-
tsTypeName: this.girTypeNameToTsTypeName(tsData.girTypeName, tsData.isStatic || false),
|
|
144
|
-
inParams: [],
|
|
145
|
-
outParams: [],
|
|
146
|
-
instanceParameters: [],
|
|
147
|
-
parent,
|
|
148
|
-
};
|
|
149
|
-
tsFunc.inParams.push(...this.newGirCallableParamElements(tsData.inParams, tsFunc));
|
|
150
|
-
tsFunc.outParams.push(...this.newGirCallableParamElements(tsData.outParams, tsFunc));
|
|
151
|
-
tsFunc.instanceParameters.push(...this.newGirInstanceParameters(tsData.instanceParameters));
|
|
152
|
-
return tsFunc;
|
|
153
|
-
}
|
|
154
|
-
newTsProperty(tsData) {
|
|
155
|
-
tsData.type ||= [this.newTsType()];
|
|
156
|
-
const tsProp = {
|
|
157
|
-
...tsData,
|
|
158
|
-
readonly: tsData.readonly || false,
|
|
159
|
-
isStatic: tsData.isStatic || false,
|
|
160
|
-
isInjected: tsData.isInjected || false,
|
|
161
|
-
type: this.newTsTypes(tsData.type || []),
|
|
162
|
-
doc: this.newTsDoc(tsData.doc),
|
|
163
|
-
tsTypeName: this.girTypeNameToTsTypeName(tsData.girTypeName, tsData.isStatic || false),
|
|
164
|
-
};
|
|
165
|
-
return tsProp;
|
|
166
|
-
}
|
|
167
|
-
newTsType(tsData = {}) {
|
|
168
|
-
tsData.callbacks ||= [];
|
|
169
|
-
tsData.generics ||= [];
|
|
170
|
-
tsData.nullable ||= false;
|
|
171
|
-
tsData.optional ||= false;
|
|
172
|
-
const newTsData = {
|
|
173
|
-
type: tsData.type || 'void',
|
|
174
|
-
callbacks: tsData.callbacks || [],
|
|
175
|
-
generics: tsData.generics || [],
|
|
176
|
-
nullable: tsData.nullable || false,
|
|
177
|
-
optional: tsData.optional || false,
|
|
178
|
-
isArray: tsData.isArray || false,
|
|
179
|
-
isCallback: tsData.isCallback || false,
|
|
180
|
-
isFunction: tsData.isFunction || false,
|
|
181
|
-
leftSeparator: tsData.leftSeparator || '|',
|
|
182
|
-
};
|
|
183
|
-
return newTsData;
|
|
184
|
-
}
|
|
185
|
-
newTsTypes(tsDataArr) {
|
|
186
|
-
const types = [];
|
|
187
|
-
for (const tsData of tsDataArr) {
|
|
188
|
-
types.push(this.newTsType(tsData));
|
|
189
|
-
}
|
|
190
|
-
if (tsDataArr.length === 0) {
|
|
191
|
-
types.push(this.newTsType({}));
|
|
192
|
-
}
|
|
193
|
-
return types;
|
|
194
|
-
}
|
|
195
|
-
newTsParameter(tsData, parent) {
|
|
196
|
-
const types = [];
|
|
197
|
-
for (const type of tsData.type || []) {
|
|
198
|
-
type.type = type.type || 'any';
|
|
199
|
-
types.push(this.newTsType(type));
|
|
200
|
-
}
|
|
201
|
-
const newTsData = {
|
|
202
|
-
type: types,
|
|
203
|
-
name: tsData.name,
|
|
204
|
-
isRest: tsData.isRest || false,
|
|
205
|
-
girTypeName: 'callable-param',
|
|
206
|
-
doc: this.newTsDoc(tsData.doc),
|
|
207
|
-
parent,
|
|
208
|
-
};
|
|
209
|
-
return newTsData;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Generates signal methods like `connect`, `connect_after` and `emit` on Gjs or `connect`, `on`, `once`, `off` and `emit` an node-gtk
|
|
213
|
-
* for a default gir signal element
|
|
214
|
-
* @param signalName The signal name
|
|
215
|
-
* @param callbackType The callback type
|
|
216
|
-
* @param emitInParams
|
|
217
|
-
* @param environment
|
|
218
|
-
* @param withDisconnect If `true` this also generates a `disconnect` method
|
|
219
|
-
* @returns
|
|
220
|
-
*/
|
|
221
|
-
newTsSignalMethods(signalName, callbackType, emitInParams, parentClass, environment, withDisconnect = false) {
|
|
222
|
-
const tsMethods = [];
|
|
223
|
-
const girTypeName = 'signal';
|
|
224
|
-
const sigNameInParam = {
|
|
225
|
-
name: 'sigName',
|
|
226
|
-
type: [
|
|
227
|
-
this.newTsType({
|
|
228
|
-
type: signalName ? `"${signalName}"` : 'string',
|
|
229
|
-
}),
|
|
230
|
-
],
|
|
231
|
-
doc: this.newTsDoc(),
|
|
232
|
-
};
|
|
233
|
-
const anyArgsInParam = {
|
|
234
|
-
name: 'args',
|
|
235
|
-
isRest: true,
|
|
236
|
-
type: [
|
|
237
|
-
this.newTsType({
|
|
238
|
-
type: `any`,
|
|
239
|
-
isArray: true,
|
|
240
|
-
}),
|
|
241
|
-
],
|
|
242
|
-
doc: this.newTsDoc(),
|
|
243
|
-
};
|
|
244
|
-
emitInParams.push(anyArgsInParam);
|
|
245
|
-
const callbackInParam = {
|
|
246
|
-
name: 'callback',
|
|
247
|
-
type: [
|
|
248
|
-
this.newTsType({
|
|
249
|
-
type: callbackType || '(...args: any[]) => void',
|
|
250
|
-
}),
|
|
251
|
-
],
|
|
252
|
-
doc: this.newTsDoc(),
|
|
253
|
-
};
|
|
254
|
-
const numberReturnType = this.newTsType({
|
|
255
|
-
type: 'number',
|
|
256
|
-
});
|
|
257
|
-
const connectTsFn = this.newTsFunction({
|
|
258
|
-
name: 'connect',
|
|
259
|
-
inParams: [sigNameInParam, callbackInParam],
|
|
260
|
-
returnTypes: [numberReturnType],
|
|
261
|
-
girTypeName,
|
|
262
|
-
}, parentClass);
|
|
263
|
-
tsMethods.push(connectTsFn);
|
|
264
|
-
if (environment === 'gjs') {
|
|
265
|
-
const connectAfterTsFn = this.newTsFunction({
|
|
266
|
-
name: 'connect_after',
|
|
267
|
-
inParams: [sigNameInParam, callbackInParam],
|
|
268
|
-
returnTypes: [numberReturnType],
|
|
269
|
-
girTypeName,
|
|
270
|
-
}, parentClass);
|
|
271
|
-
tsMethods.push(connectAfterTsFn);
|
|
272
|
-
}
|
|
273
|
-
else if (environment === 'node') {
|
|
274
|
-
const afterInParam = {
|
|
275
|
-
name: 'after',
|
|
276
|
-
type: [
|
|
277
|
-
this.newTsType({
|
|
278
|
-
type: 'boolean',
|
|
279
|
-
optional: true,
|
|
280
|
-
}),
|
|
281
|
-
],
|
|
282
|
-
doc: this.newTsDoc(),
|
|
283
|
-
};
|
|
284
|
-
const nodeEventEmitterReturnType = this.newTsType({
|
|
285
|
-
type: 'NodeJS.EventEmitter',
|
|
286
|
-
});
|
|
287
|
-
const onTsFn = this.newTsFunction({
|
|
288
|
-
name: 'on',
|
|
289
|
-
inParams: [sigNameInParam, callbackInParam, afterInParam],
|
|
290
|
-
returnTypes: [nodeEventEmitterReturnType],
|
|
291
|
-
girTypeName,
|
|
292
|
-
}, parentClass);
|
|
293
|
-
const onceTsFn = this.newTsFunction({
|
|
294
|
-
name: 'once',
|
|
295
|
-
inParams: [sigNameInParam, callbackInParam, afterInParam],
|
|
296
|
-
returnTypes: [nodeEventEmitterReturnType],
|
|
297
|
-
girTypeName,
|
|
298
|
-
}, parentClass);
|
|
299
|
-
const offTsFn = this.newTsFunction({
|
|
300
|
-
name: 'off',
|
|
301
|
-
inParams: [sigNameInParam, callbackInParam],
|
|
302
|
-
returnTypes: [nodeEventEmitterReturnType],
|
|
303
|
-
girTypeName,
|
|
304
|
-
}, parentClass);
|
|
305
|
-
tsMethods.push(onTsFn, onceTsFn, offTsFn);
|
|
306
|
-
}
|
|
307
|
-
const emitTsFn = this.newTsFunction({
|
|
308
|
-
name: 'emit',
|
|
309
|
-
inParams: [sigNameInParam, ...emitInParams],
|
|
310
|
-
girTypeName,
|
|
311
|
-
}, parentClass);
|
|
312
|
-
tsMethods.push(emitTsFn);
|
|
313
|
-
if (withDisconnect && environment === 'gjs') {
|
|
314
|
-
const idInParam = {
|
|
315
|
-
name: 'id',
|
|
316
|
-
type: [
|
|
317
|
-
this.newTsType({
|
|
318
|
-
type: 'number',
|
|
319
|
-
}),
|
|
320
|
-
],
|
|
321
|
-
doc: this.newTsDoc(),
|
|
322
|
-
};
|
|
323
|
-
const emitTsFn = this.newTsFunction({
|
|
324
|
-
name: 'disconnect',
|
|
325
|
-
inParams: [idInParam],
|
|
326
|
-
girTypeName,
|
|
327
|
-
}, parentClass);
|
|
328
|
-
tsMethods.push(emitTsFn);
|
|
329
|
-
}
|
|
330
|
-
return tsMethods;
|
|
331
|
-
}
|
|
332
|
-
newGirAttr(name = '') {
|
|
333
|
-
return {
|
|
334
|
-
name,
|
|
335
|
-
'glib:set-property': '',
|
|
336
|
-
'glib:get-property': '',
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
newGirAnnotation(data = {}) {
|
|
340
|
-
data.name ||= '';
|
|
341
|
-
data.value ||= [];
|
|
342
|
-
return {
|
|
343
|
-
$: data,
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
newGirDocElement(text = '', filename = '', line = '', column = '') {
|
|
347
|
-
return {
|
|
348
|
-
doc: [{ $: { filename, line, column }, _: text }],
|
|
349
|
-
'doc-deprecated': [{ $: {}, _: '' }],
|
|
350
|
-
'source-position': [{ filename: '', line: '', column: [''] }],
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
newTsDoc(data = {}) {
|
|
354
|
-
return {
|
|
355
|
-
tags: data.tags || [],
|
|
356
|
-
text: data.text || '',
|
|
357
|
-
returns: data.returns || '',
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
//# sourceMappingURL=gir-factory.js.map
|
package/lib/gir-factory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gir-factory.js","sourceRoot":"","sources":["../src/gir-factory.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C;;GAEG;AACH,MAAM,OAAO,UAAU;IACnB,WAAW,CAAC,QAAqC;QAC7C,MAAM,UAAU,GAAyB,EAAE,CAAA;QAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YAC3B,MAAM,SAAS,GAAuB;gBAClC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,aAAa,CAAC,CAAC,CAAC;gBACtC,GAAG,OAAO;aACb,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AC,EAAE,CAAC,EAAE,CAAC;SAChE,CAAA;IACL,CAAC;IAED,QAAQ,CAAC,OAAuB,EAAE;QAC9B,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE;SAC9B,CAAA;IACL,CAAC;CACJ"}
|
package/lib/gir-module.d.ts
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { Transformation } from './transformation.js';
|
|
2
|
-
import { Logger } from './logger.js';
|
|
3
|
-
import { Injector } from './injection/injector.js';
|
|
4
|
-
import { GirFactory } from './gir-factory.js';
|
|
5
|
-
import { ConflictResolver } from './conflict-resolver.js';
|
|
6
|
-
import { DependencyManager } from './dependency-manager.js';
|
|
7
|
-
import { SymTable } from './symtable.js';
|
|
8
|
-
import type { Dependency, GirRepository, GirNamespace, GirAliasElement, GirType, GirCallableParamElement, GirCallableReturn, GirConstantElement, GirFieldElement, GirPropertyElement, InheritanceTable, ParsedGir, GenerateConfig, ClassParent } from './types/index.js';
|
|
9
|
-
export declare class GirModule {
|
|
10
|
-
private readonly config;
|
|
11
|
-
/**
|
|
12
|
-
* Array of all gir modules
|
|
13
|
-
*/
|
|
14
|
-
static allGirModules: GirModule[];
|
|
15
|
-
/**
|
|
16
|
-
* E.g. 'Gtk'
|
|
17
|
-
*/
|
|
18
|
-
namespace: string;
|
|
19
|
-
/**
|
|
20
|
-
* E.g. '3.0'
|
|
21
|
-
*/
|
|
22
|
-
version: string;
|
|
23
|
-
/**
|
|
24
|
-
* E.g. 'Gtk-3.0'
|
|
25
|
-
*/
|
|
26
|
-
packageName: string;
|
|
27
|
-
/**
|
|
28
|
-
* E.g. 'Gtk30'
|
|
29
|
-
* Is used in the generated index.d.ts, for example: `import * as Gtk30 from "./Gtk-3.0.js";`
|
|
30
|
-
*/
|
|
31
|
-
importName: string;
|
|
32
|
-
dependencies: Dependency[];
|
|
33
|
-
private _transitiveDependencies;
|
|
34
|
-
set transitiveDependencies(deps: Dependency[]);
|
|
35
|
-
get transitiveDependencies(): Dependency[];
|
|
36
|
-
get allDependencies(): Dependency[];
|
|
37
|
-
repo: GirRepository;
|
|
38
|
-
ns: GirNamespace;
|
|
39
|
-
/**
|
|
40
|
-
* Used to find namespaces that are used in other modules
|
|
41
|
-
*/
|
|
42
|
-
symTable: SymTable;
|
|
43
|
-
transformation: Transformation;
|
|
44
|
-
girFactory: GirFactory;
|
|
45
|
-
dependencyManager: DependencyManager;
|
|
46
|
-
conflictResolver: ConflictResolver;
|
|
47
|
-
log: Logger;
|
|
48
|
-
inject: Injector;
|
|
49
|
-
extends?: string;
|
|
50
|
-
/**
|
|
51
|
-
* To prevent constants from being exported twice, the names already exported are saved here for comparison.
|
|
52
|
-
* Please note: Such a case is only known for Zeitgeist-2.0 with the constant "ATTACHMENT"
|
|
53
|
-
*/
|
|
54
|
-
constNames: {
|
|
55
|
-
[varName: string]: GirConstantElement;
|
|
56
|
-
};
|
|
57
|
-
constructor(xml: ParsedGir, config: GenerateConfig);
|
|
58
|
-
private checkTransitiveDependencies;
|
|
59
|
-
private getTsDoc;
|
|
60
|
-
private getTsDocGirElementTags;
|
|
61
|
-
private getTsDocInParamTags;
|
|
62
|
-
private annotateFunctionArguments;
|
|
63
|
-
private annotateFunctionReturn;
|
|
64
|
-
/**
|
|
65
|
-
* Functions which are not part of a class
|
|
66
|
-
* @param girFuncs
|
|
67
|
-
*/
|
|
68
|
-
private annotateFunctions;
|
|
69
|
-
/**
|
|
70
|
-
* Functions and methods of a class
|
|
71
|
-
*/
|
|
72
|
-
private annotateMethods;
|
|
73
|
-
/**
|
|
74
|
-
* Variables which are not part of a class
|
|
75
|
-
*/
|
|
76
|
-
private annotateVariables;
|
|
77
|
-
private annotateFields;
|
|
78
|
-
private annotateClass;
|
|
79
|
-
/**
|
|
80
|
-
* Annotates the custom `_module`, `_fullSymName` and `_girType` properties.
|
|
81
|
-
* Also registers the element on the `symTable`.
|
|
82
|
-
* @param girElements
|
|
83
|
-
* @param girType
|
|
84
|
-
*/
|
|
85
|
-
private annotateAndRegisterGirElement;
|
|
86
|
-
/**
|
|
87
|
-
* TODO: find better name for this method
|
|
88
|
-
* @param girVar
|
|
89
|
-
* @param fullTypeName
|
|
90
|
-
* @returns e.g.
|
|
91
|
-
* ```ts
|
|
92
|
-
* {
|
|
93
|
-
* namespace: "Gtk",
|
|
94
|
-
* resValue: "Gtk.Widget"
|
|
95
|
-
* }
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
private fullTypeLookup;
|
|
99
|
-
/**
|
|
100
|
-
* this method needs to be refactored, an array can also be an array of an array for example
|
|
101
|
-
* @param girVar
|
|
102
|
-
* @returns
|
|
103
|
-
*/
|
|
104
|
-
getArrayData(girVar: GirCallableReturn | GirAliasElement | GirFieldElement | GirCallableParamElement | GirPropertyElement | GirConstantElement): {
|
|
105
|
-
arrCType: string | undefined;
|
|
106
|
-
arrayType: GirType | null;
|
|
107
|
-
isArray: boolean;
|
|
108
|
-
overrideTypeName: string | undefined;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Get the typescript type of a GirElement like a `GirPropertyElement` or `GirCallableReturn`
|
|
112
|
-
* @param girVar
|
|
113
|
-
*/
|
|
114
|
-
private getTsType;
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* @param girFunc
|
|
118
|
-
* @returns
|
|
119
|
-
*/
|
|
120
|
-
private getReturnType;
|
|
121
|
-
private arrayLengthIndexLookup;
|
|
122
|
-
private closureDataIndexLookup;
|
|
123
|
-
private destroyDataIndexLookup;
|
|
124
|
-
private processParams;
|
|
125
|
-
/**
|
|
126
|
-
* Checks if the parameter is nullable (which results in ` | null`).
|
|
127
|
-
*
|
|
128
|
-
* @param girVar girVar to test
|
|
129
|
-
*/
|
|
130
|
-
private typeIsNullable;
|
|
131
|
-
/**
|
|
132
|
-
* Checks if the parameter is optional (which results in `foo?: bar`).
|
|
133
|
-
* @param girVar girVar to test
|
|
134
|
-
*/
|
|
135
|
-
private typeIsOptional;
|
|
136
|
-
private setParameterTsData;
|
|
137
|
-
private getInstanceParameterTsData;
|
|
138
|
-
private setParametersTsData;
|
|
139
|
-
private getVariableTsData;
|
|
140
|
-
private getPropertyTsData;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @param girFunc
|
|
144
|
-
* @param prefix E.g. vfunc
|
|
145
|
-
* @param overrideReturnType
|
|
146
|
-
* @param isArrowType
|
|
147
|
-
* @param indentCount
|
|
148
|
-
*/
|
|
149
|
-
private getFunctionTsData;
|
|
150
|
-
private getCallbackInterfaceTsData;
|
|
151
|
-
private setCallbackTsData;
|
|
152
|
-
private getSignalCallbackInterfaceTsData;
|
|
153
|
-
private getConstructorFunctionTsData;
|
|
154
|
-
private getSignalCallbackTsData;
|
|
155
|
-
/**
|
|
156
|
-
* Generates signal methods like `connect`, `connect_after` and `emit` on Gjs or `connect`, `on`, `once`, `off` and `emit` an node-gtk
|
|
157
|
-
* for a default gir signal element
|
|
158
|
-
* @param girSignal
|
|
159
|
-
* @returns
|
|
160
|
-
*/
|
|
161
|
-
private getClassSignalMethodsTsData;
|
|
162
|
-
/**
|
|
163
|
-
* Generates signal methods for the GObject properties of a gir class element
|
|
164
|
-
* @param girClass
|
|
165
|
-
*/
|
|
166
|
-
private getClassPropertySignalsMethods;
|
|
167
|
-
private getGeneralSignalsMethods;
|
|
168
|
-
private setSignalTsData;
|
|
169
|
-
private fixEnumerationDuplicateIdentifier;
|
|
170
|
-
private getEnumerationMemberTsData;
|
|
171
|
-
private getEnumerationTsData;
|
|
172
|
-
private getAliasTsData;
|
|
173
|
-
private getConstantTsData;
|
|
174
|
-
private getClassConstructPropsTsData;
|
|
175
|
-
/**
|
|
176
|
-
* Some class/static methods are defined in a separate record which is not
|
|
177
|
-
* exported, but the methods are available as members of the JS constructor.
|
|
178
|
-
* In gjs one can use an instance of the object, a JS constructor or a GType
|
|
179
|
-
* as the method's instance-parameter.
|
|
180
|
-
* @see https://discourse.gnome.org/t/using-class-methods-like-gtk-widget-class-get-css-name-from-gjs/4001
|
|
181
|
-
* @param girClass
|
|
182
|
-
*/
|
|
183
|
-
private getClassRecordMethods;
|
|
184
|
-
/**
|
|
185
|
-
* Instance methods
|
|
186
|
-
* @param girClass
|
|
187
|
-
* @param localNames
|
|
188
|
-
*/
|
|
189
|
-
private getClassMethodsTsData;
|
|
190
|
-
private getClassFieldsTsData;
|
|
191
|
-
private getGObjectProperties;
|
|
192
|
-
private getClassPropertiesTsData;
|
|
193
|
-
private getClassNonStaticPropertyNames;
|
|
194
|
-
private getClassConstructorsTsData;
|
|
195
|
-
private getClassVirtualMethodsTsData;
|
|
196
|
-
/**
|
|
197
|
-
*
|
|
198
|
-
* @param girClass This is the class / interface the `parentClass` implements signals from
|
|
199
|
-
* @returns
|
|
200
|
-
*/
|
|
201
|
-
private getClassSignalsTsData;
|
|
202
|
-
getClassParentObject(parentName: string, namespace: string, type: 'parent' | 'prerequisite' | 'implements'): ClassParent;
|
|
203
|
-
private getClassParents;
|
|
204
|
-
private setClassBaseTsData;
|
|
205
|
-
private setClassTsData;
|
|
206
|
-
private isDerivedFromGObject;
|
|
207
|
-
private getClassParent;
|
|
208
|
-
private traverseInheritanceTree;
|
|
209
|
-
private forEachInterface;
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
* @param girElement
|
|
213
|
-
* @param localNames Can be (constructor) properties, fields or methods
|
|
214
|
-
* @param type
|
|
215
|
-
*/
|
|
216
|
-
private checkOrSetLocalName;
|
|
217
|
-
private isGtypeStructFor;
|
|
218
|
-
/**
|
|
219
|
-
* E.g GObject.ObjectClass is a abstract class and required by UPowerGlib-1.0, UDisks-2.0 and others
|
|
220
|
-
* @param girClass
|
|
221
|
-
* @returns `true` if this is this a abstract class.
|
|
222
|
-
*/
|
|
223
|
-
private isAbstractClass;
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @param girClass
|
|
227
|
-
* @returns
|
|
228
|
-
*/
|
|
229
|
-
private getOtherStaticFunctions;
|
|
230
|
-
private getStaticNewFunctions;
|
|
231
|
-
/**
|
|
232
|
-
* Static methods, <constructor> and <function>
|
|
233
|
-
* @param girClass
|
|
234
|
-
* @param constructorTypeName Used to overwrite the constructor return type
|
|
235
|
-
* @param useReference This value should be `false` for inherited and implemented classes / interfaces.
|
|
236
|
-
* Otherwise other modules would overwrite the return value of the constructor methods
|
|
237
|
-
*/
|
|
238
|
-
private getClassStaticFunctionsTsData;
|
|
239
|
-
private setModuleTsData;
|
|
240
|
-
/**
|
|
241
|
-
* TODO: find better name for this method
|
|
242
|
-
* @param fullTypeName
|
|
243
|
-
* @returns
|
|
244
|
-
*/
|
|
245
|
-
private fullTypeLookupWithNamespace;
|
|
246
|
-
private loadInheritance;
|
|
247
|
-
private loadTypes;
|
|
248
|
-
/**
|
|
249
|
-
* Before processing the typescript data, each module should be initialized first.
|
|
250
|
-
* This is done in the `GenerationHandler`.
|
|
251
|
-
*/
|
|
252
|
-
init(inheritanceTable: InheritanceTable): void;
|
|
253
|
-
/**
|
|
254
|
-
* Start processing the typescript data
|
|
255
|
-
*/
|
|
256
|
-
start(): void;
|
|
257
|
-
}
|