MCPcopy Create free account

hub / github.com/brundonsmith/bagel / functions

Functions247 in github.com/brundonsmith/bagel

↓ 386 callersFunctiongiven
(val: T|BagelError|undefined, fn: (val: T) => R)
compiler/1_parse/utils.ts:206
↓ 274 callersFunctiontestTypecheck
(source: string, shouldFail: boolean)
tests/typecheck_test.ts:4090
↓ 130 callersFunctionmemo
(fn: F, options: MemoOptions = {})
lib/ts/reactivity.ts:154
↓ 118 callersFunctionerr
(code: string|undefined, index: number|undefined, expected: string)
compiler/1_parse/index.ts:2622
↓ 113 callersFunctionexpec
(val: T|BagelError|undefined, err: BagelError, fn: (val: T) => R)
compiler/1_parse/utils.ts:214
↓ 110 callersMethodmap
(fn: (el: T) => R)
lib/ts/core.ts:127
↓ 68 callersFunctionc
(ast: AST)
compiler/4_compile/index.ts:83
↓ 66 callersMethodjoin
(delimiter: string)
lib/ts/core.ts:266
↓ 65 callersFunctioninferType
( ctx: Pick<Context, 'allModules'|'visited'|'canonicalModuleName'>, ast: Expression, skipTypeRe
compiler/3_checking/typeinfer.ts:17
↓ 64 callersFunctionsendError
(err: BagelError)
compiler/store.ts:178
↓ 62 callersFunctionmsgFormat
(ast: AST)
compiler/3_checking/typecheck.ts:13
↓ 57 callersFunctionresolveType
(ctx: Pick<Context, 'allModules'|'encounteredNames'|'canonicalModuleName'> & { preserveNamedTypes?: boolean },
compiler/3_checking/typecheck.ts:1218
↓ 53 callersFunctiontestCompile
(code: string, exp: string)
tests/compile_test.ts:862
↓ 51 callersFunctionmiscError
(ast: AST|undefined, message: string)
compiler/errors.ts:133
↓ 41 callersMethodfilter
(fn: (el: T) => boolean)
lib/ts/core.ts:139
↓ 40 callersFunctionsubsumationIssues
(ctx: Pick<Context, 'allModules'|'encounteredNames'|'canonicalModuleName'>, destination: TypeExpression, value
compiler/3_checking/typecheck.ts:880
↓ 32 callersFunctionconsumeWhitespaceRequired
(code: string, index: number)
compiler/1_parse/utils.ts:52
↓ 29 callersFunctionobserve
(obj: O, prop: K)
lib/ts/reactivity.ts:74
↓ 26 callersMethodget
(keys: unknown[])
lib/ts/reactivity.ts:8
↓ 24 callersFunctiongiven
(val: T|undefined, fn: (val: T) => R)
compiler/utils/misc.ts:3
↓ 23 callersFunctionparseOptional
(module: ModuleName, code: string, index: number, parseFn: ParseFunction<T>)
compiler/1_parse/utils.ts:179
↓ 23 callersFunctionparseSeries
(module: ModuleName, code: string, index: number, itemParseFn: ParseFunction<T>, delimiter?: string|ParseFunct
compiler/1_parse/utils.ts:88
↓ 21 callersFunctionparseExact
(str: K)
compiler/1_parse/utils.ts:192
↓ 20 callersFunctiontestMultiModuleTypecheck
(testModules: {[key: string]: string}, shouldFail: boolean)
tests/typecheck_test.ts:4121
↓ 19 callersFunctiongetName
(ast: PlainIdentifier | LocalIdentifier | ExactStringLiteral)
compiler/utils/ast.ts:418
↓ 19 callersFunctionparseKeyword
(code: string, index: number, keyword: string)
compiler/1_parse/utils.ts:196
↓ 18 callersFunctioncompileOne
(ctx: CompileContext, ast: AST)
compiler/4_compile/index.ts:81
↓ 18 callersFunctionexpect
(ctx: Pick<Context, 'allModules'|'sendError'|'encounteredNames'|'canonicalModuleName'>, destinationType: TypeE
compiler/3_checking/typecheck.ts:861
↓ 18 callersFunctioninvalidate
(obj: object, prop: string|number|typeof COMPUTED_RESULT|typeof WHOLE_OBJECT = WHOLE_OBJECT, value?: any)
lib/ts/reactivity.ts:100
↓ 18 callersMethodsome
(fn: (a: T) => boolean)
lib/ts/core.ts:171
↓ 17 callersFunctionfn
()
tests/utils_test.ts:6
↓ 17 callersFunctionliteralType
(value: ExactStringLiteral|NumberLiteral|BooleanLiteral|PlainIdentifier|string|number|boolean)
compiler/utils/ast.ts:373
↓ 16 callersFunctionformat
(ast: AST, options?: Partial<FormatOptions>)
compiler/other/format.ts:18
↓ 15 callersFunctionall
(...inner: Array<Array<string | string[]> | undefined>)
compiler/3_checking/typecheck.ts:891
↓ 15 callersFunctionisError
(x: unknown)
compiler/errors.ts:75
↓ 14 callersMethodset
()
lib/ts/core.ts:256
↓ 13 callersFunctionunionOf
(members: readonly TypeExpression[], basedOn?: SourceInfo)
compiler/utils/ast.ts:129
↓ 11 callersFunctiontypesEqual
(a: TypeExpression, b: TypeExpression)
compiler/utils/ast.ts:59
↓ 10 callersFunctionpad
(str: string)
compiler/utils/cli.ts:61
↓ 8 callersFunctionautorun
(fn: Reaction, until: (() => boolean) | undefined)
lib/ts/reactivity.ts:195
↓ 8 callersFunctiondeepEquals
(a: BasicData, b: BasicData, ignorePropNames: readonly string[] = [])
compiler/utils/misc.ts:24
↓ 8 callersMethodentries
()
lib/ts/reactivity.ts:39
↓ 8 callersMethodevery
(fn: (a: T) => boolean)
lib/ts/core.ts:155
↓ 8 callersFunctionmaybeOf
(inner: TypeExpression, basedOn?: SourceInfo)
compiler/utils/ast.ts:170
↓ 8 callersFunctionsOrNone
(num: number)
compiler/utils/misc.ts:62
↓ 7 callersFunctioncanonicalModuleName
(importerModule: ModuleName, importPath: string)
compiler/utils/cli.ts:163
↓ 7 callersFunctionexpectType
(ctx: Pick<Context, 'allModules'|'sendError'|'encounteredNames'|'canonicalModuleName'>, ast: AST, destinationT
compiler/3_checking/typecheck.ts:865
↓ 7 callersFunctionproperty
(name: string, type: TypeExpression, forceReadonly: boolean)
compiler/utils/ast.ts:228
↓ 6 callersFunctionconditionToRefinement
(ctx: Pick<Context, "allModules" | "visited" | "canonicalModuleName">, condition: Expression, conditionIsTrue:
compiler/3_checking/typeinfer.ts:1102
↓ 6 callersFunctiontestSideEffects
(bgl: string, expected: any[])
tests/behavior_test.ts:158
↓ 6 callersFunctiontranspilePath
(module: string)
compiler/utils/cli.ts:145
↓ 5 callersFunctionalreadyDeclared
(ast: PlainIdentifier)
compiler/errors.ts:129
↓ 5 callersFunctiondiskModulePath
(module: string)
compiler/utils/cli.ts:131
↓ 5 callersFunctionexported
(e: boolean|"export"|"expose"|undefined)
compiler/4_compile/index.ts:501
↓ 5 callersFunctionfindDuplicateIdentifiers
* Walk through `iter`, producing an array of PlainIdentifiers for each element, * and gather and return any duplicated identifiers from the bunch
compiler/3_checking/typecheck.ts:842
↓ 5 callersFunctionfixTruthinessIfNeeded
(ctx: CompileContext, expr: Expression)
compiler/4_compile/index.ts:523
↓ 5 callersFunctiongetNearestFuncOrProc
(node: AST)
compiler/3_checking/typecheck.ts:1203
↓ 5 callersFunctioninvocationFromMethodCall
(ctx: Pick<Context, "allModules" | "visited" | "canonicalModuleName">, expr: Expression)
compiler/utils/ast.ts:339
↓ 5 callersFunctioniter
(inner: RawIter<T>)
lib/ts/core.ts:110
↓ 5 callersFunctioniterateParseTree
(ast: AST, parent?: AST)
compiler/utils/ast.ts:66
↓ 5 callersFunctionpathIsInProject
(module: string)
compiler/utils/cli.ts:155
↓ 5 callersFunctionprettyProblem
(ctx: Pick<Context, "allModules" | "canonicalModuleName">, modulePath: ModuleName, error: BagelError|LintProbl
compiler/errors.ts:145
↓ 5 callersFunctionsubtract
(ctx: Pick<Context, "allModules"|"encounteredNames"|"canonicalModuleName">, type: TypeExpression, without: Typ
compiler/3_checking/typeinfer.ts:967
↓ 4 callersFunctionassignmentError
(ast: AST, destination: TypeExpression, value: TypeExpression, issues: Array<string | string[]>)
compiler/errors.ts:119
↓ 4 callersFunctionbindInvocationGenericArgs
(ctx: Pick<Context, "allModules"|"visited"|"canonicalModuleName">, invocation: Invocation)
compiler/3_checking/typeinfer.ts:828
↓ 4 callersFunctionexported
(e: boolean|"export"|"expose"|undefined)
compiler/other/format.ts:322
↓ 4 callersFunctionfail
(msg: string)
compiler/utils/cli.ts:56
↓ 4 callersFunctionformatInner
(options: FormatOptions, indent: number, parent: AST|undefined)
compiler/other/format.ts:22
↓ 4 callersFunctionidentifierToExactString
(ident: PlainIdentifier)
compiler/utils/ast.ts:240
↓ 4 callersFunctionisEmptyType
(type: TypeExpression)
compiler/_model/type-expressions.ts:339
↓ 4 callersFunctionmaybeTypeAnnotation
(options: FormatOptions, indent: number, parent: AST|undefined, type: TypeExpression|undefined)
compiler/other/format.ts:348
↓ 4 callersFunctionresolveImport
(ctx: Pick<Context, 'allModules'|'canonicalModuleName'>, importItem: ImportItem)
compiler/3_checking/resolve.ts:205
↓ 4 callersMethodslice
(start: number, end?: number)
lib/ts/core.ts:143
↓ 4 callersFunctionstripSourceInfo
(ast: AST)
compiler/utils/debugging.ts:9
↓ 3 callersFunctionargType
(ctx: Pick<Context, "allModules" | "encounteredNames"|"canonicalModuleName">, args: Args | SpreadArgs, index:
compiler/utils/ast.ts:302
↓ 3 callersFunctionargsBounds
(ctx: Pick<Context, "allModules" | "encounteredNames"|"canonicalModuleName">, args: Args | SpreadArgs)
compiler/utils/ast.ts:318
↓ 3 callersFunctionassign
(a: Map<K, V>, b: ReadonlyMap<K, V> | undefined)
compiler/3_checking/typeinfer.ts:1382
↓ 3 callersFunctioncompile
(ctx: CompileContext, ast: Module, excludeJsPrelude?: boolean)
compiler/4_compile/index.ts:16
↓ 3 callersFunctionconditionFrom
(ast: AST)
compiler/other/lint.ts:223
↓ 3 callersFunctiondeclaration
(module, code, startIndex)
compiler/1_parse/index.ts:235
↓ 3 callersFunctioneffect
()
lib/ts/reactivity.ts:196
↓ 3 callersFunctionfindAncestor
(a: AST|undefined, fn: (ast: AST) => boolean)
compiler/utils/ast.ts:22
↓ 3 callersFunctiongetPropertyType
(ctx: Pick<Context, 'allModules'|'encounteredNames'|'canonicalModuleName'> & { preserveNamedTypes?: boolean },
compiler/3_checking/typecheck.ts:1430
↓ 3 callersFunctiongetThrows
(ctx: Pick<Context, "allModules" | "visited"|"canonicalModuleName">, block: Block)
compiler/3_checking/typeinfer.ts:1395
↓ 3 callersFunctioniesOrY
(num: number)
compiler/utils/misc.ts:68
↓ 3 callersFunctionisNumeric
(char: string)
compiler/1_parse/utils.ts:76
↓ 3 callersFunctionisSymbolic
(ch: string, isFirstCharacter: boolean)
compiler/1_parse/utils.ts:80
↓ 3 callersFunctionlint
(ctx: Pick<Context, "allModules" | "config" | "canonicalModuleName">, ast: AST)
compiler/other/lint.ts:11
↓ 3 callersFunctionmaybeTypeAnnotation
(ctx: CompileContext, type: TypeExpression|undefined)
compiler/4_compile/index.ts:517
↓ 3 callersFunctionmaybeTypeParams
(options: FormatOptions, indent: number, parent: AST|undefined, typeParams: readonly TypeParam[])
compiler/other/format.ts:330
↓ 3 callersFunctionmoduleWithDeclarations
(declarations: Declaration[])
compiler/1_parse/index.ts:107
↓ 3 callersFunctionparameterizedGenericType
(ctx: Pick<Context, "allModules"|"canonicalModuleName">, generic: GenericType, typeArgs: readonly TypeExpressi
compiler/3_checking/typeinfer.ts:941
↓ 3 callersFunctionpathIsRemote
(path: string)
compiler/utils/cli.ts:172
↓ 3 callersMethodreduce
(init: R, fn: (acc: R, el: T) => R)
lib/ts/core.ts:131
↓ 3 callersFunctionspaces
(spaces: number)
compiler/utils/misc.ts:96
↓ 3 callersFunctionsyntaxError
(code: string, index: number, message: string)
compiler/errors.ts:115
↓ 3 callersFunctiontypecheck
(ctx: Pick<Context, 'allModules'|'sendError'|'config'|'canonicalModuleName'>, ast: Module)
compiler/3_checking/typecheck.ts:18
↓ 3 callersFunctionuniqueFileName
(module: string)
compiler/utils/cli.ts:139
↓ 2 callersFunction_funcHeader
(isPure: boolean)
compiler/1_parse/index.ts:1520
↓ 2 callersFunction_procHeader
(isAsync: boolean, isPure: boolean)
compiler/1_parse/index.ts:1214
next →1–100 of 247, ranked by callers