MCPcopy Create free account

hub / github.com/EmNudge/watlings / functions

Functions106 in github.com/EmNudge/watlings

↓ 79 callersFunctionassert
(boolExpression, errorMessage)
tests/utils/test-runner.mjs:57
↓ 52 callersFunctiontest
(name, fn)
tests/utils/test-runner.mjs:41
↓ 46 callersFunctioninstantiate
(buffer, imports)
tests/utils/instantiate.mjs:6
↓ 18 callersFunctionsetSuccess
(message)
tests/utils/test-runner.mjs:8
↓ 16 callersFunctiongetWasm
(path)
tests/utils/getWasm.mjs:12
↓ 14 callersFunctionmatchObjectShape
(a, b)
tests/utils/test-runner.mjs:75
↓ 10 callersFunctionarrayEquals
(a, b)
tests/utils/test-runner.mjs:66
↓ 7 callersFunctionposToOffset
( doc: { line(n: number): { from: number; to: number }; lines: number; length: number; }, li
web-build/src/editor.ts:150
↓ 5 callersFunctionsetLanes
(a, b, c, d)
tests/016_simd.test.js:31
↓ 4 callersFunctionapplyPatch
(name)
scripts/ci-check.mjs:42
↓ 4 callersFunctioncapture
(output: ConsoleLine[], type: ConsoleLine["type"])
web-build/src/preview-worker.ts:38
↓ 4 callersFunctiondone
(result: ConsoleLine[])
web-build/src/runner.ts:155
↓ 4 callersFunctionisWatContent
(doc: string)
web-build/src/editor.ts:145
↓ 3 callersFunctionfindFile
(stub, dir)
scripts/utils/findFile.mjs:6
↓ 3 callersFunctionfindLesson
( chapterId: string, lessonId: string, )
web-build/src/composables/useLessons.ts:24
↓ 3 callersFunctionmain
()
web-build/src/main.ts:7
↓ 3 callersFunctiontrySafeDiv
(a, b)
tests/015_exceptions.test.js:40
↓ 2 callersFunctionbuildEditor
( parent: HTMLElement, initialCode: string, extra: Extension[], onChange?: (code: string) => void, )
web-build/src/editor.ts:511
↓ 2 callersFunctioncheckChapters
(exercisesDir)
web-build/chapters.mjs:55
↓ 2 callersFunctioncompileFiles
(fileNameFilter = process.argv[2])
scripts/utils/compileFiles.mjs:84
↓ 2 callersFunctioncompileWat
(watSource: string)
web-build/src/compiler.ts:13
↓ 2 callersFunctionescapeHtml
(s)
web-build/generate.mjs:55
↓ 2 callersFunctionescapeHtml
(s: string)
web-build/src/highlight.ts:82
↓ 2 callersFunctiongetDrafts
()
web-build/src/progress.ts:40
↓ 2 callersFunctiongetFilesInFolder
(relativePath)
tests/_meta/patch.test.js:10
↓ 2 callersFunctiongetPatchMap
()
tests/_meta/patch.test.js:25
↓ 2 callersFunctiongetProgress
()
web-build/src/progress.ts:6
↓ 2 callersFunctiongetSha1Hash
(buffer)
scripts/utils/compileFiles.mjs:12
↓ 2 callersFunctiongetWastParser
()
scripts/utils/getWastParser.mjs:38
↓ 2 callersFunctiongoToDefinition
(lsp: WatLSP, view: EditorView)
web-build/src/editor.ts:327
↓ 2 callersFunctioninit
(lessonsData: LessonsData)
web-build/src/composables/useLessons.ts:51
↓ 2 callersFunctionisEmptyPatch
(name)
scripts/ci-check.mjs:21
↓ 2 callersFunctionlspCursorContext
Parse the document and return cursor position, or null if not WAT content.
web-build/src/editor.ts:313
↓ 2 callersFunctionnavigateTo
(chapterId: string, lessonId: string)
web-build/src/composables/useLessons.ts:33
↓ 2 callersFunctionparsePatch
(patchString)
scripts/utils/patch.mjs:31
↓ 2 callersFunctionparsePathname
()
web-build/src/composables/useLessons.ts:9
↓ 2 callersFunctionrunTest
(name)
scripts/ci-check.mjs:29
↓ 2 callersFunctionspawnPromise
(command, args)
scripts/utils/getWastParser.mjs:9
↓ 2 callersFunctionstripInstructions
(watSource)
web-build/generate.mjs:39
↓ 2 callersFunctiontransformHostForBrowser
(mjsSource)
web-build/generate.mjs:127
↓ 1 callersFunctionbackupExercises
()
scripts/ci-check.mjs:46
↓ 1 callersFunctioncreateContext
(value, func)
tests/utils/errorContext.mjs:16
↓ 1 callersFunctioncreateLspExtensions
(lsp: WatLSP)
web-build/src/editor.ts:381
↓ 1 callersFunctioncreateParseCache
(lsp: WatLSP)
web-build/src/editor.ts:371
↓ 1 callersMethoddestroy
()
web-build/src/editor.ts:494
↓ 1 callersFunctionensureInit
()
web-build/src/compiler.ts:6
↓ 1 callersFunctionextractInstructions
(watSource)
web-build/generate.mjs:20
↓ 1 callersFunctionfindReferences
(lsp: WatLSP, view: EditorView)
web-build/src/editor.ts:346
↓ 1 callersFunctionformatStackError
(err: Error)
web-build/src/runner.ts:4
↓ 1 callersFunctiongetBaseName
(path)
tests/utils/getWasm.mjs:6
↓ 1 callersFunctiongetChangedFiles
* Get list of files that have since been updated since last run * Also return files that do not have a corresponding build * * @param {string[]} fi
scripts/utils/compileFiles.mjs:29
↓ 1 callersFunctiongetContext
()
tests/utils/errorContext.mjs:6
↓ 1 callersFunctiongetExercises
()
scripts/ci-check.mjs:13
↓ 1 callersFunctiongetFileNames
@param {string | undefined} fileNameFilter
scripts/utils/compileFiles.mjs:71
↓ 1 callersFunctiongetWasmToolsParser
@returns {WastParser}
scripts/utils/getWastParser.mjs:26
↓ 1 callersFunctionhighlightWatCode
(code: string)
web-build/src/highlight.ts:150
↓ 1 callersFunctioninspect
(v: unknown)
web-build/src/preview-worker.ts:9
↓ 1 callersFunctioninstructionsToHtml
(text)
web-build/generate.mjs:59
↓ 1 callersFunctionmain
()
web-build/generate.mjs:182
↓ 1 callersFunctionmatchObjectShape
(a: Record<string, unknown>, b: Record<string, unknown>)
web-build/src/runner.ts:53
↓ 1 callersFunctionmatchesType
(actual: unknown, expected: unknown)
web-build/src/runner.ts:39
↓ 1 callersFunctionpatch
(patchString, targetString)
scripts/utils/patch.mjs:46
↓ 1 callersFunctionpatchFile
(stub = process.argv[2])
scripts/utils/patchFile.mjs:8
↓ 1 callersFunctionprettyTitle
(name)
web-build/generate.mjs:45
↓ 1 callersFunctionrenderHoverMarkdown
(markdown: string)
web-build/src/editor.ts:269
↓ 1 callersFunctionrestoreExercises
(backup)
scripts/ci-check.mjs:57
↓ 1 callersFunctionsaveProgress
(completed: Set<string>)
web-build/src/progress.ts:17
↓ 1 callersFunctionscheduleTestResult
()
tests/utils/test-runner.mjs:15
↓ 1 callersFunctionthrows
(fn)
tests/utils/test-runner.mjs:121
↓ 1 callersFunctiontokenizeLine
(line: string)
web-build/src/highlight.ts:110
↓ 1 callersFunctiontransformTestForBrowser
(testSource)
web-build/generate.mjs:157
↓ 1 callersFunctionuseLessons
()
web-build/src/composables/useLessons.ts:75
↓ 1 callersFunctionwait
(ms = 0)
tests/_meta/tests.test.js:7
↓ 1 callersFunctionwatLanguageSupport
()
web-build/src/editor.ts:132
↓ 1 callersFunctionwordColor
(text: string)
web-build/src/highlight.ts:127
Function[key]
()
tests/utils/errorContext.mjs:21
FunctionarrayEquals
(a: unknown[], b: unknown[])
web-build/src/runner.ts:35
Functioncancel
()
web-build/src/runner.ts:162
Functioncreate
()
web-build/src/editor.ts:427
FunctioncreateEditor
( parent: HTMLElement, initialCode: string, onChange?: (code: string) => void, )
web-build/src/editor.ts:552
FunctioncreateJsEditor
( parent: HTMLElement, initialCode: string, onChange?: (code: string) => void, )
web-build/src/editor.ts:539
FunctionfireCelebration
()
web-build/src/confetti.ts:3
FunctionformatValue
(v: unknown)
web-build/src/preview-worker.ts:33
FunctiongetAdjacentLesson
(direction: -1 | 1)
web-build/src/composables/useLessons.ts:42
MethodgetValue
()
web-build/src/editor.ts:492
FunctionhashCode
(code: string)
web-build/src/progress.ts:50
Functioninstantiate
( buffer: Uint8Array, imports?: WebAssembly.Imports, )
web-build/src/runner.ts:20
FunctionisCompleted
(chapterId: string, lessonId: string)
web-build/src/progress.ts:22
FunctionloadDraft
( chapterId: string, lessonId: string, exerciseHash: string, )
web-build/src/progress.ts:70
Functionlog
()
tests/001_hello.test.js:11
Functionlog
()
tests/003_export.test.js:15
Functionlog
(...args)
tests/002_ordering.test.js:12
FunctionmarkCompleted
(chapterId: string, lessonId: string)
web-build/src/progress.ts:26
Functionmousedown
(event, view)
web-build/src/editor.ts:470
FunctionrunHostPreview
(watSource: string, hostCode: string)
web-build/src/runner.ts:140
FunctionrunTests
( watSource: string, testCode: string, hasWasm: boolean, hostCode?: string, )
web-build/src/runner.ts:76
FunctionsaveDraft
( chapterId: string, lessonId: string, code: string, exerciseHash: string, hostCode?: string, )
web-build/src/progress.ts:57
FunctionsetFailure
(message)
tests/utils/test-runner.mjs:10
FunctionsetValue
(code: string)
web-build/src/editor.ts:532
MethodsetValue
(code: string)
web-build/src/editor.ts:493
next →1–100 of 106, ranked by callers