Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HarmonicLabs/pebble
/ functions
Functions
2,440 in github.com/HarmonicLabs/pebble
⨍
Functions
2,440
◇
Types & classes
700
↓ 1 callers
Function
countCases
( t: UPLCTerm )
packages/pebble/src/compiler/__tests__/compiler.enum.test.ts:31
↓ 1 callers
Function
countCases
Count `Case` nodes in the UPLC term tree.
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:35
↓ 1 callers
Function
countVarUses
Count IRVar(p) references in `body` accurately. Caps at 2 — we * only care about 0/1/many — but ALWAYS walks the whole tree, so we * correctly disti
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseLetBindingsAndReturnRoot.ts:198
↓ 1 callers
Function
ctxData
( signers: DataB[] )
packages/pebble/src/compiler/__tests__/compiler.communityBugs.0_3_4.test.ts:77
↓ 1 callers
Function
curryMem
( uncurried: (...args: any[] ) => any, argsMem: any[], lastCallRest: any[] )
packages/pebble/src/utils/combinators.ts:48
↓ 1 callers
Method
defineAviableConstructorIfValid
* @returns `true` if the constructor was defined successfully * * @returns `false` * if it was already defined in this scope (sha
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:330
↓ 1 callers
Method
defineDeferredAccess
* Register a per-name lookup override. Subsequent `getVarAccessIR(name)` * calls in this context (or its descendants) return the IR term produced
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:115
↓ 1 callers
Function
defineGenericBuiltinConstrained
( scope: AstScope, astName: string, nTypeParams: number, paramConstraints: ( s
packages/pebble/src/compiler/tir/program/stdScope/populateStdNamespace.ts:447
↓ 1 callers
Method
defineRecursiveVar
* @returns the symbol of the defined recursive variable (for eventual `new IRRecursive( ... )`)
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:148
↓ 1 callers
Method
defineTypeParam
define a generic type parameter in this scope; returns `false` if shadowed
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:378
↓ 1 callers
Method
defineTypeParamConstraint
( name: string, constraint: TypeParamConstraint )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:403
↓ 1 callers
Function
determinePrecedence
(kind: Token)
packages/pebble/src/parser/Precedence.ts:41
↓ 1 callers
Function
determineReassignedVariablesAndFlowInfos
( stmt: TirStmt )
packages/pebble/src/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.ts:175
↓ 1 callers
Function
diagnosticCategoryToColor
(category: DiagnosticCategory)
packages/pebble/src/diagnostics/DiagnosticCategory.ts:30
↓ 1 callers
Function
diagnosticCodeToString
(code: DiagnosticCode)
packages/pebble/src/diagnostics/diagnosticMessages.generated.ts:297
↓ 1 callers
Function
discoverTestFiles
( target: string | undefined, testPathPattern: RegExp | undefined, cwd: string = process.cwd() )
packages/pebble-cli/src/test/discoverTestFiles.ts:13
↓ 1 callers
Function
ecd
TypeScript reference implementation of `ecd` (a.k.a. Euclidean GCD).
packages/pebble/src/compiler/__tests__/export.ecd.test.ts:13
↓ 1 callers
Method
elseBranchBlock
()
packages/pebble/src/ast/nodes/statements/IfStmt.ts:24
↓ 1 callers
Method
emitErrorIfInvalidAutoSemicolon
()
packages/pebble/src/parser/Parser.ts:3384
↓ 1 callers
Function
ensureProperlyForcedBuiltinsAndReturnRoot
( root: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/ensureProperlyForcedBuiltinsAndReturnRoot.ts:26
↓ 1 callers
Method
eof
()
packages/pebble/src/tokenizer/Tokenizer.ts:736
↓ 1 callers
Method
equals
Tests if this message equals the specified.
packages/pebble/src/diagnostics/DiagnosticMessage.ts:62
↓ 1 callers
Function
evalBudgeted
(term: any)
packages/pebble/src/compiler/__tests__/compiler.sopOptLookupExecution.test.ts:33
↓ 1 callers
Function
expandFuncsAndReturnRoot
( root: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/expandFuncsAndReturnRoot.ts:26
↓ 1 callers
Function
expandRangePart
(part: string)
packages/pebble/src/utils/semverSatisfies.ts:112
↓ 1 callers
Function
expandToken
(tok: string)
packages/pebble/src/utils/semverSatisfies.ts:69
↓ 1 callers
Function
exportPebbleFunction
(opts: CliExportOptions)
packages/pebble-cli/src/export/exportPebbleFunction.ts:7
↓ 1 callers
Function
expressifyForStmt
( ctx: ExpressifyCtx, stmt: TirForStmt, returnType: TirSoPStructType, bodyStateType: TirSoPStr
packages/pebble/src/compiler/TirCompiler/expressify/expressifyForStmt.ts:131
↓ 1 callers
Function
expressifyMethodCall
( ctx: ExpressifyCtx, methodCall: TirCallExpr )
packages/pebble/src/compiler/TirCompiler/expressify/expressifyVars.ts:558
↓ 1 callers
Function
expressifyPropAccess
( ctx: ExpressifyCtx, propAccessExpr: TirPropAccessExpr )
packages/pebble/src/compiler/TirCompiler/expressify/expressifyVars.ts:309
↓ 1 callers
Function
expressifyVarAssignmentStmt
( ctx: ExpressifyCtx, stmt: TirAssignmentStmt )
packages/pebble/src/compiler/TirCompiler/expressify/expressifyVarAssignmentStmt.ts:8
↓ 1 callers
Function
filterParamsInplace
( params: symbol[], unusedVars: symbol[] )
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/removeUnusuedVarsAndReturnRoot.ts:90
↓ 1 callers
Function
findAllNoHoisted
( term: IRTerm, predicate: ( elem: IRTerm ) => boolean )
packages/pebble/src/IR/toUPLC/_internal/findAll.ts:22
↓ 1 callers
Function
findElementIndex
* Binary search to find the exact index of an element * @returns the index of the element if found, -1 otherwise
packages/pebble/src/utils/array/filterSortedStrArrInplace.ts:39
↓ 1 callers
Function
findFirstDualHeadTailList
* Scan `root` for free `headList(L)`/`tailList(L)` uses where `L` is NOT * shadowed by an enclosing nested IRFunc/IRRecursive within `root`. Returns
packages/pebble/src/IR/toUPLC/subRoutines/introduceCaseForDualHeadTailAndReturnRoot.ts:110
↓ 1 callers
Function
findHighestRecursiveParent
( term: IRTerm, maxScope: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleLetted/findHighestRecursiveParent.ts:8
↓ 1 callers
Function
forceBigUInt
( toForce: CanBeUInteger )
packages/pebble/src/utils/ints.ts:13
↓ 1 callers
Function
formatCEKValue
(val: any)
packages/pebble-cli/src/repl/pebbleRepl.ts:15
↓ 1 callers
Function
formatDiagnosticMessage
( message: DiagnosticMessage, useColors: boolean = false, showContext: boolean = false )
packages/pebble/src/diagnostics/DiagnosticMessage.ts:129
↓ 1 callers
Function
formatTestResults
( resultsByFile: Map<string, TestResult[]>, cwd: string = process.cwd() )
packages/pebble-cli/src/test/formatTestResults.ts:11
↓ 1 callers
Method
fromSingleDeconstruct
( name: Identifier, unnamed: SingleDeconstructVarDecl, range: SourceRange | undefined
packages/pebble/src/ast/nodes/statements/declarations/VarDecl/NamedDeconstructVarDecl.ts:29
↓ 1 callers
Function
getAllTokens
( tn: Tokenizer )
packages/pebble/src/tokenizer/__tests__/tokenizer.simple.const.test.ts:27
↓ 1 callers
Function
getBodyStateType
( { sop, initState }: BranchStmtSopAndInitState, stmt: TirForStmt )
packages/pebble/src/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.ts:399
↓ 1 callers
Function
getCallStackAt
( n: number = 3, opts: GetCallStackAtOptions = defaultGetCallStackAtOptions )
packages/pebble/src/utils/getCallStackAt/index.ts:58
↓ 1 callers
Function
getChildren
( term: IRTerm )
packages/pebble/src/IR/tree_utils/getChildren.ts:12
↓ 1 callers
Function
getConstBool
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:617
↓ 1 callers
Function
getDeconstructableType
( type: TirType )
packages/pebble/src/compiler/tir/types/utils/getDeconstructableType.ts:13
↓ 1 callers
Method
getDeferredAccessFactory
( name: string )
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:68
↓ 1 callers
Function
getDirectoryPath
* Gets the directory part of a path
packages/pebble/src/compiler/path/getAbsolutePath.ts:6
↓ 1 callers
Function
getEqUnConstr
()
packages/pebble/src/IR/IRNodes/IRNative/index.ts:347
↓ 1 callers
Function
getEqVoid
()
packages/pebble/src/IR/IRNodes/IRNative/index.ts:365
↓ 1 callers
Function
getExpandedIRFunc
( body: IRTerm, params: symbol[] )
packages/pebble/src/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/expandFuncsAndReturnRoot.ts:14
↓ 1 callers
Method
getFilePrefix
( path: string )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:223
↓ 1 callers
Method
getIncrement
()
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseAndReturnRoot/InlineSingleUseCtx.ts:58
↓ 1 callers
Function
getInternalPath
( path: string )
packages/pebble/src/compiler/path/path.ts:29
↓ 1 callers
Function
getLinearMapMethods
( kT: TirType, vT: TirType )
packages/pebble/src/compiler/AstCompiler/utils/getPropAccessReturnType.ts:132
↓ 1 callers
Function
getLinearMapTypeArgs
( map_t: TirType )
packages/pebble/src/compiler/tir/types/utils/getListTypeArg.ts:15
↓ 1 callers
Function
getListMethods
( elemsType: TirType )
packages/pebble/src/compiler/AstCompiler/utils/getPropAccessReturnType.ts:102
↓ 1 callers
Method
getLocalVariable
* `undefined` means the variable is not in the local context.
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:140
↓ 1 callers
Method
getMainOrThrow
()
packages/pebble/src/compiler/tir/program/TypedProgram.ts:211
↓ 1 callers
Function
getNamedDestructableType
( type: TirType | undefined )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:48
↓ 1 callers
Function
getNestedDestructsInSingleSopDestructPattern
( pattern: TirNamedDeconstructVarDecl )
packages/pebble/src/compiler/TirCompiler/expressify/expressify.ts:905
↓ 1 callers
Method
getPadBitStream
( n: InByteOffset )
packages/pebble/src/utils/UPLCFlatUtils/index.ts:122
↓ 1 callers
Function
getPathExtension
(path: string)
packages/pebble/src/compiler/path/getAbsolutePath.ts:25
↓ 1 callers
Function
getStructPropAccessReturnType
( ctx: AstCompilationCtx, structType: TirStructType, propName: string )
packages/pebble/src/compiler/AstCompiler/utils/getPropAccessReturnType.ts:179
↓ 1 callers
Function
getUnboundedIRVars
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleLetted/groupByScope.ts:65
↓ 1 callers
Method
getUnusedVars
()
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/RemoveUnusedVarsCtx.ts:50
↓ 1 callers
Method
getVarAccessDbn
( sym: symbol )
packages/pebble/src/IR/toUPLC/ctx/ToUplcCtx.ts:47
↓ 1 callers
Function
groupIndependentApplications
* * @returns either an object containing the new root, sorted args and next body * or undefined if grouping wasnt possible (root is the sa
packages/pebble/src/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/performUplcOptimizationsAndReturnRoot.ts:121
↓ 1 callers
Function
handleLettedAsHoistedAndReturnRoot
( letted: IRLetted, lca: IRTerm, sameLettedRefs: IRLetted[], currentRoot: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleLetted/index.ts:330
↓ 1 callers
Function
handleRootRecursiveTerm
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleRecursiveTerms.ts:45
↓ 1 callers
Method
hasDataEncoding
()
packages/pebble/src/compiler/tir/types/TirAliasType.ts:22
↓ 1 callers
Function
hoistForcedNatives
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/hoistForcedNatives.ts:14
↓ 1 callers
Function
hoistStatementsInplace
( stmts: TopLevelStmt[] )
packages/pebble/src/parser/hoistStatementsInplace.ts:37
↓ 1 callers
Function
i64_high
(value: bigint)
packages/pebble/src/tokenizer/Tokenizer.ts:1533
↓ 1 callers
Method
importPathsFromStmts
( stmts: ImportStmtLike[], requestingPath: string )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1610
↓ 1 callers
Method
includesInternalPath
( path: string )
packages/pebble/src/compiler/AstCompiler/utils/deps/ResolveStackNode.ts:19
↓ 1 callers
Function
includesNode
( parent: IRTerm, predicate: ( node: IRTerm ) => boolean )
packages/pebble/src/IR/toUPLC/_internal/includesNode.ts:12
↓ 1 callers
Method
incrementVarUse
( sym: symbol )
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/RemoveUnusedVarsCtx.ts:38
↓ 1 callers
Method
inferStructTypeFromConstructorName
( name: string )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:350
↓ 1 callers
Function
insertUniqueSortedInpalce
* * @returns the position where the element was inserted (or where it was already present)
packages/pebble/src/utils/array/mergeSortedStrArrInplace.ts:28
↓ 1 callers
Function
intArray
(n: number)
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:74
↓ 1 callers
Function
intList
(n: number)
packages/pebble/src/compiler/__tests__/bench.listLength.test.ts:64
↓ 1 callers
Function
intList
(n: number)
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:68
↓ 1 callers
Function
intList
( n: number )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:81
↓ 1 callers
Function
intList
(n: number)
packages/pebble/src/compiler/__tests__/bench.chooseListToIRCase.test.ts:109
↓ 1 callers
Function
introduceCaseForDualHeadTailAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/introduceCaseForDualHeadTailAndReturnRoot.ts:55
↓ 1 callers
Method
introduceSopConstrFieldsAsProperties
( sopName: string, destructuredPattern: TirNamedDeconstructVarDecl, )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:225
↓ 1 callers
Function
ioHasDiagnostic
( ioApi: any )
packages/pebble/src/compiler/__tests__/compiler.interfaceConstraints.test.ts:23
↓ 1 callers
Function
ioHasDiagnostic
( ioApi: any )
packages/pebble/src/compiler/__tests__/compiler.genericInference.test.ts:41
↓ 1 callers
Function
isAlphaOrDecimal
(c: number)
packages/pebble/src/utils/text.ts:257
↓ 1 callers
Method
isArrowFuncOrParenExprLookahead
* looks ahead to see if the expression * needs to be parsed as an arrow function or a parenthesized expression * * @returns {boolean}
packages/pebble/src/parser/Parser.ts:4424
↓ 1 callers
Function
isAstNativeTypeExpr
( thing: any )
packages/pebble/src/ast/nodes/types/AstNativeTypeExpr.ts:21
↓ 1 callers
Function
isAstTypeExpr
( obj: any )
packages/pebble/src/ast/nodes/types/AstTypeExpr.ts:10
↓ 1 callers
Function
isBodyStmt
( stmt: any )
packages/pebble/src/ast/nodes/statements/PebbleStmt.ts:175
↓ 1 callers
Function
isDeconstructVarDecl
( node: any )
packages/pebble/src/ast/nodes/statements/declarations/VarDecl/VarDecl.ts:11
↓ 1 callers
Function
isDropList
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:467
↓ 1 callers
Function
isEqualsZero
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:536
↓ 1 callers
Function
isHexOrDecimal
(c: number)
packages/pebble/src/utils/text.ts:252
↓ 1 callers
Function
isHighSurrogate
(c: number)
packages/pebble/src/utils/text.ts:207
← previous
next →
701–800 of 2,440, ranked by callers