Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brundonsmith/bagel
/ functions
Functions
247 in github.com/brundonsmith/bagel
⨍
Functions
247
◇
Types & classes
8
↓ 386 callers
Function
given
(val: T|BagelError|undefined, fn: (val: T) => R)
compiler/1_parse/utils.ts:206
↓ 274 callers
Function
testTypecheck
(source: string, shouldFail: boolean)
tests/typecheck_test.ts:4090
↓ 130 callers
Function
memo
(fn: F, options: MemoOptions = {})
lib/ts/reactivity.ts:154
↓ 118 callers
Function
err
(code: string|undefined, index: number|undefined, expected: string)
compiler/1_parse/index.ts:2622
↓ 113 callers
Function
expec
(val: T|BagelError|undefined, err: BagelError, fn: (val: T) => R)
compiler/1_parse/utils.ts:214
↓ 110 callers
Method
map
(fn: (el: T) => R)
lib/ts/core.ts:127
↓ 68 callers
Function
c
(ast: AST)
compiler/4_compile/index.ts:83
↓ 66 callers
Method
join
(delimiter: string)
lib/ts/core.ts:266
↓ 65 callers
Function
inferType
( ctx: Pick<Context, 'allModules'|'visited'|'canonicalModuleName'>, ast: Expression, skipTypeRe
compiler/3_checking/typeinfer.ts:17
↓ 64 callers
Function
sendError
(err: BagelError)
compiler/store.ts:178
↓ 62 callers
Function
msgFormat
(ast: AST)
compiler/3_checking/typecheck.ts:13
↓ 57 callers
Function
resolveType
(ctx: Pick<Context, 'allModules'|'encounteredNames'|'canonicalModuleName'> & { preserveNamedTypes?: boolean },
compiler/3_checking/typecheck.ts:1218
↓ 53 callers
Function
testCompile
(code: string, exp: string)
tests/compile_test.ts:862
↓ 51 callers
Function
miscError
(ast: AST|undefined, message: string)
compiler/errors.ts:133
↓ 41 callers
Method
filter
(fn: (el: T) => boolean)
lib/ts/core.ts:139
↓ 40 callers
Function
subsumationIssues
(ctx: Pick<Context, 'allModules'|'encounteredNames'|'canonicalModuleName'>, destination: TypeExpression, value
compiler/3_checking/typecheck.ts:880
↓ 32 callers
Function
consumeWhitespaceRequired
(code: string, index: number)
compiler/1_parse/utils.ts:52
↓ 29 callers
Function
observe
(obj: O, prop: K)
lib/ts/reactivity.ts:74
↓ 26 callers
Method
get
(keys: unknown[])
lib/ts/reactivity.ts:8
↓ 24 callers
Function
given
(val: T|undefined, fn: (val: T) => R)
compiler/utils/misc.ts:3
↓ 23 callers
Function
parseOptional
(module: ModuleName, code: string, index: number, parseFn: ParseFunction<T>)
compiler/1_parse/utils.ts:179
↓ 23 callers
Function
parseSeries
(module: ModuleName, code: string, index: number, itemParseFn: ParseFunction<T>, delimiter?: string|ParseFunct
compiler/1_parse/utils.ts:88
↓ 21 callers
Function
parseExact
(str: K)
compiler/1_parse/utils.ts:192
↓ 20 callers
Function
testMultiModuleTypecheck
(testModules: {[key: string]: string}, shouldFail: boolean)
tests/typecheck_test.ts:4121
↓ 19 callers
Function
getName
(ast: PlainIdentifier | LocalIdentifier | ExactStringLiteral)
compiler/utils/ast.ts:418
↓ 19 callers
Function
parseKeyword
(code: string, index: number, keyword: string)
compiler/1_parse/utils.ts:196
↓ 18 callers
Function
compileOne
(ctx: CompileContext, ast: AST)
compiler/4_compile/index.ts:81
↓ 18 callers
Function
expect
(ctx: Pick<Context, 'allModules'|'sendError'|'encounteredNames'|'canonicalModuleName'>, destinationType: TypeE
compiler/3_checking/typecheck.ts:861
↓ 18 callers
Function
invalidate
(obj: object, prop: string|number|typeof COMPUTED_RESULT|typeof WHOLE_OBJECT = WHOLE_OBJECT, value?: any)
lib/ts/reactivity.ts:100
↓ 18 callers
Method
some
(fn: (a: T) => boolean)
lib/ts/core.ts:171
↓ 17 callers
Function
fn
()
tests/utils_test.ts:6
↓ 17 callers
Function
literalType
(value: ExactStringLiteral|NumberLiteral|BooleanLiteral|PlainIdentifier|string|number|boolean)
compiler/utils/ast.ts:373
↓ 16 callers
Function
format
(ast: AST, options?: Partial<FormatOptions>)
compiler/other/format.ts:18
↓ 15 callers
Function
all
(...inner: Array<Array<string | string[]> | undefined>)
compiler/3_checking/typecheck.ts:891
↓ 15 callers
Function
isError
(x: unknown)
compiler/errors.ts:75
↓ 14 callers
Method
set
()
lib/ts/core.ts:256
↓ 13 callers
Function
unionOf
(members: readonly TypeExpression[], basedOn?: SourceInfo)
compiler/utils/ast.ts:129
↓ 11 callers
Function
typesEqual
(a: TypeExpression, b: TypeExpression)
compiler/utils/ast.ts:59
↓ 10 callers
Function
pad
(str: string)
compiler/utils/cli.ts:61
↓ 8 callers
Function
autorun
(fn: Reaction, until: (() => boolean) | undefined)
lib/ts/reactivity.ts:195
↓ 8 callers
Function
deepEquals
(a: BasicData, b: BasicData, ignorePropNames: readonly string[] = [])
compiler/utils/misc.ts:24
↓ 8 callers
Method
entries
()
lib/ts/reactivity.ts:39
↓ 8 callers
Method
every
(fn: (a: T) => boolean)
lib/ts/core.ts:155
↓ 8 callers
Function
maybeOf
(inner: TypeExpression, basedOn?: SourceInfo)
compiler/utils/ast.ts:170
↓ 8 callers
Function
sOrNone
(num: number)
compiler/utils/misc.ts:62
↓ 7 callers
Function
canonicalModuleName
(importerModule: ModuleName, importPath: string)
compiler/utils/cli.ts:163
↓ 7 callers
Function
expectType
(ctx: Pick<Context, 'allModules'|'sendError'|'encounteredNames'|'canonicalModuleName'>, ast: AST, destinationT
compiler/3_checking/typecheck.ts:865
↓ 7 callers
Function
property
(name: string, type: TypeExpression, forceReadonly: boolean)
compiler/utils/ast.ts:228
↓ 6 callers
Function
conditionToRefinement
(ctx: Pick<Context, "allModules" | "visited" | "canonicalModuleName">, condition: Expression, conditionIsTrue:
compiler/3_checking/typeinfer.ts:1102
↓ 6 callers
Function
testSideEffects
(bgl: string, expected: any[])
tests/behavior_test.ts:158
↓ 6 callers
Function
transpilePath
(module: string)
compiler/utils/cli.ts:145
↓ 5 callers
Function
alreadyDeclared
(ast: PlainIdentifier)
compiler/errors.ts:129
↓ 5 callers
Function
diskModulePath
(module: string)
compiler/utils/cli.ts:131
↓ 5 callers
Function
exported
(e: boolean|"export"|"expose"|undefined)
compiler/4_compile/index.ts:501
↓ 5 callers
Function
findDuplicateIdentifiers
* 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 callers
Function
fixTruthinessIfNeeded
(ctx: CompileContext, expr: Expression)
compiler/4_compile/index.ts:523
↓ 5 callers
Function
getNearestFuncOrProc
(node: AST)
compiler/3_checking/typecheck.ts:1203
↓ 5 callers
Function
invocationFromMethodCall
(ctx: Pick<Context, "allModules" | "visited" | "canonicalModuleName">, expr: Expression)
compiler/utils/ast.ts:339
↓ 5 callers
Function
iter
(inner: RawIter<T>)
lib/ts/core.ts:110
↓ 5 callers
Function
iterateParseTree
(ast: AST, parent?: AST)
compiler/utils/ast.ts:66
↓ 5 callers
Function
pathIsInProject
(module: string)
compiler/utils/cli.ts:155
↓ 5 callers
Function
prettyProblem
(ctx: Pick<Context, "allModules" | "canonicalModuleName">, modulePath: ModuleName, error: BagelError|LintProbl
compiler/errors.ts:145
↓ 5 callers
Function
subtract
(ctx: Pick<Context, "allModules"|"encounteredNames"|"canonicalModuleName">, type: TypeExpression, without: Typ
compiler/3_checking/typeinfer.ts:967
↓ 4 callers
Function
assignmentError
(ast: AST, destination: TypeExpression, value: TypeExpression, issues: Array<string | string[]>)
compiler/errors.ts:119
↓ 4 callers
Function
bindInvocationGenericArgs
(ctx: Pick<Context, "allModules"|"visited"|"canonicalModuleName">, invocation: Invocation)
compiler/3_checking/typeinfer.ts:828
↓ 4 callers
Function
exported
(e: boolean|"export"|"expose"|undefined)
compiler/other/format.ts:322
↓ 4 callers
Function
fail
(msg: string)
compiler/utils/cli.ts:56
↓ 4 callers
Function
formatInner
(options: FormatOptions, indent: number, parent: AST|undefined)
compiler/other/format.ts:22
↓ 4 callers
Function
identifierToExactString
(ident: PlainIdentifier)
compiler/utils/ast.ts:240
↓ 4 callers
Function
isEmptyType
(type: TypeExpression)
compiler/_model/type-expressions.ts:339
↓ 4 callers
Function
maybeTypeAnnotation
(options: FormatOptions, indent: number, parent: AST|undefined, type: TypeExpression|undefined)
compiler/other/format.ts:348
↓ 4 callers
Function
resolveImport
(ctx: Pick<Context, 'allModules'|'canonicalModuleName'>, importItem: ImportItem)
compiler/3_checking/resolve.ts:205
↓ 4 callers
Method
slice
(start: number, end?: number)
lib/ts/core.ts:143
↓ 4 callers
Function
stripSourceInfo
(ast: AST)
compiler/utils/debugging.ts:9
↓ 3 callers
Function
argType
(ctx: Pick<Context, "allModules" | "encounteredNames"|"canonicalModuleName">, args: Args | SpreadArgs, index:
compiler/utils/ast.ts:302
↓ 3 callers
Function
argsBounds
(ctx: Pick<Context, "allModules" | "encounteredNames"|"canonicalModuleName">, args: Args | SpreadArgs)
compiler/utils/ast.ts:318
↓ 3 callers
Function
assign
(a: Map<K, V>, b: ReadonlyMap<K, V> | undefined)
compiler/3_checking/typeinfer.ts:1382
↓ 3 callers
Function
compile
(ctx: CompileContext, ast: Module, excludeJsPrelude?: boolean)
compiler/4_compile/index.ts:16
↓ 3 callers
Function
conditionFrom
(ast: AST)
compiler/other/lint.ts:223
↓ 3 callers
Function
declaration
(module, code, startIndex)
compiler/1_parse/index.ts:235
↓ 3 callers
Function
effect
()
lib/ts/reactivity.ts:196
↓ 3 callers
Function
findAncestor
(a: AST|undefined, fn: (ast: AST) => boolean)
compiler/utils/ast.ts:22
↓ 3 callers
Function
getPropertyType
(ctx: Pick<Context, 'allModules'|'encounteredNames'|'canonicalModuleName'> & { preserveNamedTypes?: boolean },
compiler/3_checking/typecheck.ts:1430
↓ 3 callers
Function
getThrows
(ctx: Pick<Context, "allModules" | "visited"|"canonicalModuleName">, block: Block)
compiler/3_checking/typeinfer.ts:1395
↓ 3 callers
Function
iesOrY
(num: number)
compiler/utils/misc.ts:68
↓ 3 callers
Function
isNumeric
(char: string)
compiler/1_parse/utils.ts:76
↓ 3 callers
Function
isSymbolic
(ch: string, isFirstCharacter: boolean)
compiler/1_parse/utils.ts:80
↓ 3 callers
Function
lint
(ctx: Pick<Context, "allModules" | "config" | "canonicalModuleName">, ast: AST)
compiler/other/lint.ts:11
↓ 3 callers
Function
maybeTypeAnnotation
(ctx: CompileContext, type: TypeExpression|undefined)
compiler/4_compile/index.ts:517
↓ 3 callers
Function
maybeTypeParams
(options: FormatOptions, indent: number, parent: AST|undefined, typeParams: readonly TypeParam[])
compiler/other/format.ts:330
↓ 3 callers
Function
moduleWithDeclarations
(declarations: Declaration[])
compiler/1_parse/index.ts:107
↓ 3 callers
Function
parameterizedGenericType
(ctx: Pick<Context, "allModules"|"canonicalModuleName">, generic: GenericType, typeArgs: readonly TypeExpressi
compiler/3_checking/typeinfer.ts:941
↓ 3 callers
Function
pathIsRemote
(path: string)
compiler/utils/cli.ts:172
↓ 3 callers
Method
reduce
(init: R, fn: (acc: R, el: T) => R)
lib/ts/core.ts:131
↓ 3 callers
Function
spaces
(spaces: number)
compiler/utils/misc.ts:96
↓ 3 callers
Function
syntaxError
(code: string, index: number, message: string)
compiler/errors.ts:115
↓ 3 callers
Function
typecheck
(ctx: Pick<Context, 'allModules'|'sendError'|'config'|'canonicalModuleName'>, ast: Module)
compiler/3_checking/typecheck.ts:18
↓ 3 callers
Function
uniqueFileName
(module: string)
compiler/utils/cli.ts:139
↓ 2 callers
Function
_funcHeader
(isPure: boolean)
compiler/1_parse/index.ts:1520
↓ 2 callers
Function
_procHeader
(isAsync: boolean, isPure: boolean)
compiler/1_parse/index.ts:1214
next →
1–100 of 247, ranked by callers