MCPcopy Create free account

hub / github.com/GNOME/gjs / functions

Functions3,360 in github.com/GNOME/gjs

↓ 272 callersFunctiongjs_throw
COMPAT: Replace with a format string in C++20. Throws an exception, like "throw new Error(message)" * * If an exception is already set in the contex
gjs/jsapi-util-error.cpp:169
↓ 193 callersMethodget
gjs/auto.h:132
↓ 138 callersMethodconnect
(name: string, handler: (self: object, ...args: any[]) => any)
modules/script/signals.d.ts:5
↓ 129 callersMethodemit
(name: string, ...args: any[])
modules/script/signals.d.ts:9
↓ 125 callersMethodget
gi/inline-array.h:42
↓ 118 callersMethodname
gi/wrapperutils.h:266
↓ 109 callersFunctiongjs_arg_set
gi/arg-inl.h:130
↓ 100 callersMethodtoString
(encoding = 'UTF-8')
modules/script/byteArray.js:78
↓ 96 callersMethodcall
gi/function.cpp:1187
↓ 96 callersFunctiongjs_debug
COMPAT: Replace with a format string in C++20. NOLINTNEXTLINE(modernize-avoid-variadic-functions)
util/log.cpp:185
↓ 96 callersFunctiongjs_parse_call_args
Empty-args version of the template
gjs/jsapi-util-args.h:295
↓ 88 callersMethodtag
gi/arg-cache.h:77
↓ 83 callersFunctionassert_equal
test/gjs-test-utils.h:79
↓ 69 callersMethodvalue
gi/gtype.cpp:107
↓ 67 callersMethodset
(target, prop, val, receiver)
modules/script/byteArray.js:49
↓ 56 callersMethodsize
gi/info.h:641
↓ 53 callersMethodinit
gi/function.cpp:1289
↓ 52 callersMethodlength
()
modules/script/byteArray.js:62
↓ 48 callersMethodadd
gjs/native.cpp:20
↓ 47 callersMethodreset
gi/closure.h:100
↓ 47 callersFunctiontestPropertyGetSet
(type, value1, value2)
installed-tests/js/testGIMarshalling.js:2470
↓ 46 callersMethodelement_type
gi/info.h:776
↓ 44 callersFunctionErr
gjs/jsapi-util-args.h:60
↓ 44 callersMethodis_basic
gi/info.h:765
↓ 43 callersFunctiongjs_cairo_check_status
modules/cairo.cpp:29
↓ 40 callersMethodmatch
gi/object.h:206
↓ 39 callersMethodempty
gjs/context-private.h:283
↓ 39 callersMethodenqueue
gi/toggle.cpp:145
↓ 39 callersMethodto_instance
gi/wrapperutils.h:219
↓ 38 callersMethodend
gi/info.h:636
↓ 38 callersFunctionprettyPrint
(value, extra)
modules/script/_bootstrap/default.js:41
↓ 37 callersFunctionlogError
(e, ...args)
modules/script/_bootstrap/default.js:20
↓ 36 callersMethodget
(target, prop, receiver)
modules/script/byteArray.js:43
↓ 36 callersFunctiongjs_log_exception
* gjs_log_exception: * @cx: the #JSContext * * Logs the exception pending on @cx, if any, in response to an exception being * thrown that user cod
gjs/jsapi-util.cpp:573
↓ 35 callersMethodgtype
The instance GType can be useful only in few cases such as GObjects and GInterfaces, so we don't store it by default, unless needed. See Function's co
gi/arg-cache.cpp:1221
↓ 35 callersFunctioninfo
()
modules/script/jsUnit.js:256
↓ 34 callersMethoddecode
* The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter. * * [MDN Reference](
types/gjs.d.ts:150
↓ 34 callersFunctiongjs_arg_unset
gi/arg-inl.h:195
↓ 34 callersMethodout
gjs/auto.h:133
↓ 33 callersMethodgroup
* The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by
types/gjs.d.ts:70
↓ 31 callersFunctioncurrentRunnable
()
installed-tests/js/jasmine.js:1054
↓ 31 callersFunctiongjs_context_new
gjs/context.cpp:847
↓ 30 callersFunctioncreateCheckedMethod
(method, checkMethod = '_checkKey')
modules/core/overrides/Gio.js:810
↓ 29 callersMethodcancel
gi/toggle.cpp:94
↓ 29 callersFunctiongjs_string_from_utf8
gjs/jsapi-util-string.cpp:186
↓ 29 callersMethodptr
gi/info.h:368
↓ 29 callersMethodrelease
gi/arg-cache.cpp:2233
↓ 29 callersFunctionstrcmp
(aStr1, aStr2)
modules/internal/source-map/util.js:373
↓ 28 callersFunctionsetTimeout
(fn, delay)
installed-tests/js/jasmine.js:3177
↓ 27 callersFunctiondebug
No-op unless GJS_VERBOSE_ENABLE_LIFECYCLE is defined to 1.
gi/toggle.cpp:21
↓ 27 callersMethodref
gi/closure.h:51
↓ 26 callersMethodcount
* The **`console.count()`** static method logs the number of times that this particular call to count() has been called. * * [MDN Reference]
types/gjs.d.ts:34
↓ 25 callersMethodarray_type
gi/info.h:712
↓ 25 callersFunctioncreateButton
(str, func)
examples/calc.js:71
↓ 25 callersMethodinterface
Unlike the libgirepository API, this doesn't return null. Only call it on TypeInfo with GI_TYPE_TAG_INTERFACE tag.
gi/info.h:725
↓ 25 callersFunctiontestInParameter
(root, value, {omit, skip, funcName = `${root}_in`} = {})
installed-tests/js/testGIMarshalling.js:31
↓ 24 callersMethodcreate
gi/ns.cpp:218
↓ 24 callersFunctionexpectLog
* @param {RegExp | string} message _ * @param {*} [logLevel] _ * @param {*} [domain] _ * @param {*} [fields] _
installed-tests/js/testConsole.js:62
↓ 24 callersFunctionlog
(...args)
modules/script/_bootstrap/default.js:16
↓ 23 callersFunctionadd_test_for_fixture
test/gjs-test-coverage.cpp:1058
↓ 23 callersFunctionexecute
(label)
installed-tests/js/testTimers.js:242
↓ 23 callersMethodis_pointer
gi/arg-cache.h:86
↓ 23 callersMethodrelease
gjs/auto.h:139
↓ 22 callersMethodbegin
gi/info.h:635
↓ 22 callersFunctiongjs_object_require_property
Returns whether the object had the property; if the object did not have the * property, always sets an exception. Treats "the property's value is *
gjs/jsapi-util.cpp:80
↓ 22 callersMethodwrite
gjs/engine.cpp:152
↓ 21 callersMethodns
gi/wrapperutils.h:257
↓ 20 callersMethoddisconnect
(id: number)
modules/script/signals.d.ts:7
↓ 20 callersFunctioneval_script_and_get_coverage_data
test/gjs-test-coverage.cpp:181
↓ 20 callersFunctiongjs_debug_value
gjs/jsapi-util-string.cpp:605
↓ 20 callersFunctiongjs_intern_string_to_id
gjs/jsapi-util-string.cpp:446
↓ 20 callersMethodparent
gi/info.h:1500
↓ 20 callersFunctionthrow_expect_type
gi/value.cpp:493
↓ 19 callersMethodencode
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Uint8Array containing the string encoded using UTF-8. * * [MD
types/gjs.d.ts:190
↓ 19 callersMethodhandle_all_toggles
gi/toggle.cpp:67
↓ 19 callersFunctionlog_exception_brief
Helper function: log and clear the pending exception, without calling into any JS APIs that might cause more exceptions to be thrown.
gjs/jsapi-util.cpp:251
↓ 19 callersFunctionnew_test_gobject
test/gjs-test-toggle-queue.cpp:115
↓ 19 callersMethodresolve
gi/cwrapper.h:369
↓ 18 callersMethodclear
* The **`console.clear()`** static method clears the console if possible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/con
types/gjs.d.ts:28
↓ 18 callersMethoddata
()
installed-tests/js/testGObjectClass.js:1740
↓ 18 callersFunctiongjs_get_global_slot
gjs/global.h:116
↓ 18 callersMethodis_method
gi/info.h:920
↓ 18 callersMethodis_prototype
* GIWrapperBase::is_prototype: * * Returns whether this Base is actually a Prototype (true) or an Instance * (false). */
gi/wrapperutils.h:199
↓ 18 callersMethodownership_transfer
gi/info.h:847
↓ 17 callersMethodcall_completed
gi/function.h:154
↓ 17 callersMethodcheck_is_instance
* GIWrapperBase::check_is_instance: * @for_what: string used in the exception message if an exception is thrown * * Used in JSNative me
gi/wrapperutils.h:614
↓ 17 callersFunctionfail
(expected, message)
installed-tests/js/jasmine.js:4271
↓ 17 callersFunctiontestSimpleMarshalling
(root, value, inoutValue, defaultValue, options = {})
installed-tests/js/testGIMarshalling.js:74
↓ 16 callersMethodcontext
gjs/context-private.h:195
↓ 16 callersFunctiongjs_argument_display_name
gi/arg.cpp:967
↓ 16 callersFunctiongjs_context_eval
gjs/context.cpp:1273
↓ 16 callersFunctiongjs_gtype_get_actual_gtype
gi/gtype.cpp:204
↓ 16 callersFunctiongjs_throw_custom
COMPAT: Replace with a format string in C++20. Like gjs_throw, but allows to customize the error class and 'name' property. * Mainly used for throwin
gjs/jsapi-util-error.cpp:182
↓ 15 callersMethodarray_fixed_size
gi/info.h:705
↓ 15 callersMethodformat_name
Intended for error messages
gi/function.cpp:801
↓ 15 callersFunctiongjs_string_to_utf8
* gjs_string_to_utf8: * @cx: JSContext * @value: a JS::Value containing a string * * Converts the JSString in @value to UTF-8 and puts it in @utf8
gjs/jsapi-util-string.cpp:88
↓ 15 callersFunctionline_starting_with
test/gjs-test-coverage.cpp:120
↓ 15 callersMethodload_arg
gi/info.h:924
↓ 15 callersFunctionreplace_file
test/gjs-test-coverage.cpp:40
↓ 14 callersMethoddirection
gi/info.h:828
next →1–100 of 3,360, ranked by callers