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
↓ 2 callers
Function
action
(fn: F)
lib/ts/reactivity.ts:252
↓ 2 callers
Function
ancestors
(a: AST)
compiler/utils/ast.ts:32
↓ 2 callers
Function
areSame
(a: AST|undefined, b: AST|undefined)
compiler/utils/ast.ts:10
↓ 2 callers
Function
awaited
(plan: string)
compiler/4_compile/index.ts:542
↓ 2 callers
Function
broadenTypeForMutation
* When initializing a mutable variable, sometimes we want to broaden the type * a bit to allow for "normal" kinds of mutation
compiler/3_checking/typeinfer.ts:773
↓ 2 callers
Function
bundleEntryPath
(moduleName: ModuleName)
compiler/index.ts:201
↓ 2 callers
Function
cache
(module: ModuleName, source: string)
compiler/store.ts:116
↓ 2 callers
Function
cannotFindName
(ast: AST, name: string|void)
compiler/errors.ts:125
↓ 2 callers
Function
compileFunc
(ctx: CompileContext, func: Func|JsFunc, name?: string)
compiler/4_compile/index.ts:477
↓ 2 callers
Function
compileProc
(ctx: CompileContext, proc: Proc|JsProc, name?: string)
compiler/4_compile/index.ts:472
↓ 2 callers
Function
compileProcOrFunctionSignature
(ctx: CompileContext, subject: ProcType|GenericProcType|FuncType|GenericFuncType)
compiler/4_compile/index.ts:483
↓ 2 callers
Function
compileRuntimeType
(type: TypeExpression)
compiler/4_compile/index.ts:412
↓ 2 callers
Function
distillOverlappingUnionMembers
(ctx: Pick<Context, "allModules"|"encounteredNames"|"canonicalModuleName">, type: UnionType)
compiler/3_checking/typeinfer.ts:798
↓ 2 callers
Function
elementOf
(arrType: TypeExpression, basedOn?: SourceInfo)
compiler/utils/ast.ts:203
↓ 2 callers
Function
getArgTypeByName
(args: Args | SpreadArgs, name: string)
compiler/3_checking/typeinfer.ts:753
↓ 2 callers
Function
indentation
(options: FormatOptions, indent: number)
compiler/other/format.ts:352
↓ 2 callers
Function
inferExpectedType
(ctx: Pick<Context, "allModules"|"visited"|"canonicalModuleName">, expr: Expression)
compiler/3_checking/typeinfer.ts:507
↓ 2 callers
Function
inferredToBePure
(ctx: Pick<Context, 'allModules'|'visited'|'canonicalModuleName'>, ast: Func | Proc)
compiler/3_checking/typeinfer.ts:1433
↓ 2 callers
Function
isAlways
(ctx: Pick<Context, "allModules" | "canonicalModuleName">, condition: Expression)
compiler/other/lint.ts:244
↓ 2 callers
Function
isGenericParam
(type: TypeExpression)
compiler/3_checking/typeinfer.ts:1235
↓ 2 callers
Function
loadAllModules
()
compiler/store.ts:15
↓ 2 callers
Function
loadConfig
()
compiler/index.ts:206
↓ 2 callers
Function
mapParseTree
(ast: AST, transform: (ast: AST) => AST)
compiler/utils/ast.ts:94
↓ 2 callers
Function
maybeTypeArgs
(options: FormatOptions, indent: number, parent: AST|undefined, typeArgs: readonly TypeExpression[])
compiler/other/format.ts:340
↓ 2 callers
Function
narrow
(ctx: Pick<Context, "allModules" | "encounteredNames"|"canonicalModuleName">, type: TypeExpression, fit: TypeE
compiler/3_checking/typeinfer.ts:999
↓ 2 callers
Function
needsTruthinessFix
(ctx: Pick<Context, "allModules"|"canonicalModuleName">, expr: Expression)
compiler/4_compile/index.ts:528
↓ 2 callers
Function
normalize
(ts: string)
tests/compile_test.ts:892
↓ 2 callers
Function
parseInner
(module: ModuleName, code: string, sendError: ReportError)
compiler/1_parse/index.ts:193
↓ 2 callers
Function
printProblems
(ctx: Pick<Context, "allModules"|"canonicalModuleName">, problems: Map<ModuleName, (BagelError|LintProblem)[]>
compiler/index.ts:268
↓ 2 callers
Function
propertyAsExpression
(ctx: CompileContext, property: PlainIdentifier | Expression)
compiler/4_compile/index.ts:435
↓ 2 callers
Function
run
()
compiler/index.ts:38
↓ 2 callers
Function
runTest
(name: string, err: any)
compiler/index.ts:375
↓ 2 callers
Function
transpileAll
(allModules: AllModules)
compiler/index.ts:179
↓ 2 callers
Function
truthinessOf
(compiledExpr: string)
compiler/4_compile/index.ts:533
↓ 2 callers
Function
tupleOf
(members: TypeExpression[], mutability?: 'constant'|"readonly"|"mutable"|"literal", basedOn?: SourceInfo)
compiler/utils/ast.ts:141
↓ 2 callers
Function
unsubscribe
()
lib/ts/reactivity.ts:226
↓ 2 callers
Function
watchPath
(path: string, cb: () => void)
compiler/utils/cli.ts:211
↓ 1 callers
Function
_entries
(obj: {[key: string]: V})
lib/ts/core.ts:73
↓ 1 callers
Function
_keys
(obj: {[key: string]: V})
lib/ts/core.ts:84
↓ 1 callers
Function
_range
(start: number, end: number)
lib/ts/core.ts:55
↓ 1 callers
Function
_repeat
(val: T, count: number)
lib/ts/core.ts:64
↓ 1 callers
Function
_values
(obj: {[key: string]: V})
lib/ts/core.ts:95
↓ 1 callers
Function
arrayOf
(element: TypeExpression, mutability?: 'constant'|"readonly"|"mutable"|"literal", basedOn?: SourceInfo)
compiler/utils/ast.ts:159
↓ 1 callers
Function
asWorker
(fn: (...params: P) => R)
lib/ts/core.ts:413
↓ 1 callers
Function
autofix
(ast: AST)
compiler/other/lint.ts:36
↓ 1 callers
Function
blockContents
(ctx: CompileContext, block: Block)
compiler/4_compile/index.ts:443
↓ 1 callers
Function
bundleOutput
()
compiler/index.ts:294
↓ 1 callers
Function
cannotFindModule
(ast: ExactStringLiteral)
compiler/errors.ts:137
↓ 1 callers
Function
cleanCache
()
compiler/utils/cli.ts:189
↓ 1 callers
Function
compileFuncDeclaration
(ctx: CompileContext, decl: FuncDeclaration)
compiler/4_compile/index.ts:462
↓ 1 callers
Function
compileInner
(ctx: CompileContext, module: Module)
compiler/4_compile/index.ts:51
↓ 1 callers
Function
compileProcDeclaration
(ctx: CompileContext, decl: ProcDeclaration)
compiler/4_compile/index.ts:453
↓ 1 callers
Function
concat
(iter1: RawIter<T>, iter2: RawIter<T>)
lib/ts/core.ts:348
↓ 1 callers
Method
concat
(other: Iter<T>)
lib/ts/core.ts:215
↓ 1 callers
Function
detached
(plan: string)
compiler/4_compile/index.ts:545
↓ 1 callers
Function
emptyToUndefined
(arr: ReturnType<typeof subsumationIssues>)
compiler/3_checking/typecheck.ts:1200
↓ 1 callers
Function
errorMessage
(error: BagelError)
compiler/errors.ts:84
↓ 1 callers
Function
errorOf
(inner: TypeExpression, basedOn?: SourceInfo)
compiler/utils/ast.ts:214
↓ 1 callers
Function
errorsEquivalent
(a: BagelError, b: BagelError)
compiler/errors.ts:80
↓ 1 callers
Function
esOrNone
(num: number)
compiler/utils/misc.ts:65
↓ 1 callers
Function
expressionsEqual
(a: Expression, b: Expression)
compiler/utils/ast.ts:55
↓ 1 callers
Function
filter
(fn: (el: T) => boolean, iter: RawIter<T>)
lib/ts/core.ts:334
↓ 1 callers
Function
fitTemplate
* Given some type containing generic type params, and some other type intended * to align with it, find a mapping from type params to possible bindi
compiler/3_checking/typeinfer.ts:1224
↓ 1 callers
Function
getAllFiles
(dirPath: string, arrayOfFiles: ModuleName[] = [])
compiler/store.ts:58
↓ 1 callers
Function
getBindingMutability
(binding: Binding, from: AST)
compiler/_model/common.ts:55
↓ 1 callers
Function
getBindingType
(ctx: Pick<Context, "allModules"|"visited"|"canonicalModuleName">, importedFrom: Pick<SourceInfo, 'parent' | '
compiler/3_checking/typeinfer.ts:571
↓ 1 callers
Function
indexed
(iter: RawIter<T>)
lib/ts/core.ts:394
↓ 1 callers
Function
isAlpha
(char: string)
compiler/1_parse/utils.ts:71
↓ 1 callers
Function
isExpression
(ast: AST)
compiler/_model/expressions.ts:285
↓ 1 callers
Function
isWithin
(dir: string, other: string)
compiler/utils/cli.ts:180
↓ 1 callers
Function
iterateParseTreeInner
(treeNode: AST|AST[]|[AST, AST][]|undefined|string|number|boolean|null, parent?: AST)
compiler/utils/ast.ts:71
↓ 1 callers
Function
iteratorOf
(inner: TypeExpression, basedOn?: SourceInfo)
compiler/utils/ast.ts:181
↓ 1 callers
Function
jsonToAST
(json: unknown)
compiler/1_parse/index.ts:116
↓ 1 callers
Function
lineAndColumn
(code: string, index: number)
compiler/errors.ts:285
↓ 1 callers
Function
loadModuleSource
(module: ModuleName)
compiler/store.ts:72
↓ 1 callers
Function
log
(expr: T, fn?: (expr: T) => unknown)
compiler/utils/debugging.ts:4
↓ 1 callers
Function
map
(fn: (el: T) => R, iter: RawIter<T>)
lib/ts/core.ts:322
↓ 1 callers
Function
mapParseTreeInner
(treeNode: T, transform: (ast: AST) => AST)
compiler/utils/ast.ts:98
↓ 1 callers
Function
maybeTypeParams
(ctx: CompileContext, typeParams: readonly TypeParam[])
compiler/4_compile/index.ts:505
↓ 1 callers
Function
numberAndPadding
(line: number, maxWidth: number)
compiler/errors.ts:280
↓ 1 callers
Function
on
(iter: AsyncIterable<T>, cb: (val: T) => void)
compiler/utils/misc.ts:75
↓ 1 callers
Function
overlaps
* Determine whether or not two types have any overlap at all
compiler/other/lint.ts:261
↓ 1 callers
Function
pathRelativeToProject
(module: string)
compiler/utils/cli.ts:176
↓ 1 callers
Function
planOf
(inner: TypeExpression, basedOn?: SourceInfo)
compiler/utils/ast.ts:192
↓ 1 callers
Function
preludeFor
(module: ModuleName)
compiler/1_parse/index.ts:167
↓ 1 callers
Function
prettysize
(bytes: number)
compiler/index.ts:334
↓ 1 callers
Function
resolveInner
(name: string, from: AST, originator: AST)
compiler/3_checking/resolve.ts:26
↓ 1 callers
Function
resolveRefinements
* Given some expression, find all Refinements that modify its type in some way
compiler/3_checking/typeinfer.ts:1020
↓ 1 callers
Function
runInAction
(fn: () => void)
lib/ts/reactivity.ts:268
↓ 1 callers
Function
serializeIssues
(issues: (string | string[])[])
compiler/errors.ts:103
↓ 1 callers
Method
set
(keys: unknown[], value: TValue)
lib/ts/reactivity.ts:22
↓ 1 callers
Function
setParents
(ast: AST)
compiler/utils/ast.ts:123
↓ 1 callers
Function
simplifyUnion
* Apply all union simplifications
compiler/3_checking/typecheck.ts:1539
↓ 1 callers
Function
slice
(start: number|undefined, end: number|undefined, iter: RawIter<T>)
lib/ts/core.ts:290
↓ 1 callers
Function
takeWhile
(iter: RawIter<T>, fn: (el: T) => boolean)
lib/ts/core.ts:306
↓ 1 callers
Function
test
(modules: ModuleName[])
compiler/index.ts:357
↓ 1 callers
Function
truthify
(ctx: CompileContext, leftExpr: Expression, op: "&&"|"||", rest: Expression)
compiler/4_compile/index.ts:536
↓ 1 callers
Function
watch
(cb: () => void)
compiler/utils/cli.ts:225
↓ 1 callers
Function
when
(fn: () => boolean)
lib/ts/reactivity.ts:234
↓ 1 callers
Function
within
(a: AST|undefined, ancestor: AST|undefined)
compiler/utils/ast.ts:18
← previous
next →
101–200 of 247, ranked by callers