+ // mw.inspect is a singleton class with static methods
+ // that itself can also be invoked as a function (mediawiki.base/mw#inspect).
+ // In JavaScript, that is implemented by starting with a function,
+ // and subsequently setting additional properties on the function object.
+
+ /**
+ * Tools for inspecting page composition and performance.
+ *
+ * @class mw.inspect
+ * @singleton
+ */
+
+ var inspect = mw.inspect,