MCPcopy Create free account
hub / github.com/GNOME/gjs / getMetaClass

Function getMetaClass

modules/script/_legacy.js:52–60  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

50}
51
52function getMetaClass(params) {
53 if (params.MetaClass)
54 return params.MetaClass;
55
56 if (params.Extends && params.Extends.prototype.__metaclass__)
57 return params.Extends.prototype.__metaclass__;
58
59 return null;
60}
61
62function Class(params, ...otherArgs) {
63 let metaClass = getMetaClass(params);

Callers 1

ClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected