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
↓ 2 callers
Function
prettyIR
( _ir: IRTerm, _indent = 2 )
packages/pebble/src/IR/utils/showIR.ts:237
↓ 2 callers
Function
prettyIRInline
( _ir: IRTerm, _indent = 2 )
packages/pebble/src/IR/utils/showIR.ts:397
↓ 2 callers
Function
printTable
(label: string, rows: Row[])
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:106
↓ 2 callers
Method
pushUnusedVar
( postfix?: string )
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:165
↓ 2 callers
Function
ratio
(reference: bigint, candidate: bigint)
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:99
↓ 2 callers
Method
readHexInteger
()
packages/pebble/src/tokenizer/Tokenizer.ts:1081
↓ 2 callers
Method
readHexadecimalEscape
(remain: number = 2, startIfTaggedTemplate: number = -1)
packages/pebble/src/tokenizer/Tokenizer.ts:1412
↓ 2 callers
Method
readOctalInteger
()
packages/pebble/src/tokenizer/Tokenizer.ts:1206
↓ 2 callers
Method
registerType
( tirType: TirType )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:202
↓ 2 callers
Function
replaceNativesAndReturnRoot
( tree: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/replaceNatives/index.ts:7
↓ 2 callers
Method
resolveLocalType
( name: string )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:272
↓ 2 callers
Function
resolveNamespacePath
( ctx: AstCompilationCtx, path: UsingPath )
packages/pebble/src/compiler/AstCompiler/utils/resolveNamespacePath.ts:24
↓ 2 callers
Method
resolveTypeParam
resolve a generic type parameter by walking the scope chain
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:387
↓ 2 callers
Function
rewriteHeadTailInCaseConsAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteHeadTailInCaseConsAndReturnRoot.ts:49
↓ 2 callers
Function
run
( v: any, redeemer: Data )
packages/pebble/src/compiler/__tests__/compiler.communityBugs.0_3_5.test.ts:63
↓ 2 callers
Function
run
( srcText: string )
packages/pebble/src/compiler/__tests__/compiler.structReturnArg.test.ts:25
↓ 2 callers
Function
runNativeOwner
( validator: any, ownerArg: Uint8Array, signers: Uint8Array[] )
packages/pebble/src/compiler/__tests__/compiler.communityBugs.0_3_4.test.ts:93
↓ 2 callers
Function
runOne
(n: number, i: number)
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:172
↓ 2 callers
Function
setColorsEnabled
(isEnabled: boolean)
packages/pebble/src/utils/terminal.ts:34
↓ 2 callers
Method
skipBlock
Skips over a block on errors in an attempt to reduce unnecessary diagnostic noise.
packages/pebble/src/parser/Parser.ts:4610
↓ 2 callers
Function
splitPath
* Splits a path into segments
packages/pebble/src/compiler/path/getAbsolutePath.ts:14
↓ 2 callers
Function
substituteVar
Replace the (single) IRVar(p) inside `body` with `replacement`.
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseLetBindingsAndReturnRoot.ts:295
↓ 2 callers
Function
tailBuiltin
( listArg: UPLCTerm )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:31
↓ 2 callers
Function
tirTypeToUplcType
( t: TirType )
packages/pebble/src/IR/IRNodes/IRConst.ts:399
↓ 2 callers
Method
toArrays
()
packages/pebble/src/compiler/AstCompiler/utils/getTirFuncSigTree/TirFuncSigTree.ts:41
↓ 2 callers
Method
toConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirNativeType/TirNativeType.ts:181
↓ 2 callers
Method
toConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirNativeType/TirNativeType.ts:201
↓ 2 callers
Method
toConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirNativeType/TirNativeType.ts:223
↓ 2 callers
Method
toConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/int.ts:13
↓ 2 callers
Method
toConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/function.ts:18
↓ 2 callers
Method
toJson
()
packages/pebble/src/IR/IRNodes/IRApp.ts:147
↓ 2 callers
Method
toJson
()
packages/pebble/src/IR/toUPLC/ctx/ToUplcCtx.ts:76
↓ 2 callers
Method
toString
()
packages/pebble/src/compiler/tir/types/TirTypeParam.ts:25
↓ 2 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirAliasType.ts:26
↓ 2 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/function.ts:15
↓ 2 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/value.ts:11
↓ 2 callers
Function
tokenIsAlsoIdentifier
(token: Token)
packages/pebble/src/tokenizer/utils/tokenIsAlsoIdentifier.ts:3
↓ 2 callers
Function
trace1
( srcText: string )
packages/pebble/src/compiler/__tests__/compiler.bugReport10_11.loopAccumulators.test.ts:20
↓ 2 callers
Function
tryGetSafeInt
( stuff: any )
packages/pebble/src/utils/getCallStackAt/index.ts:146
↓ 2 callers
Function
uncheckedGetCanAssign
( a: TirType, b: TirType, symbols: Map<symbol, TirType> )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:122
↓ 2 callers
Function
unfromatStr
( str: string )
packages/pebble/src/IR/utils/showIR.ts:456
↓ 2 callers
Function
unwrap
( t: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/introduceCaseForDualHeadTailAndReturnRoot.ts:48
↓ 2 callers
Function
unwrapToNative
* `_makeAllNegativeNativesHoisted` wraps every `IRNative` reference in * an `IRHoisted` (despite the name, it touches positive tags too), and * subs
packages/pebble/src/IR/toUPLC/subRoutines/rewriteToCaseOverConstAndReturnRoot.ts:55
↓ 2 callers
Method
walkFuncExpr
( func: TirFuncExpr )
packages/pebble/src/compiler/SourceTypeMap.ts:310
↓ 2 callers
Method
withRange
Adds a source range to this message.
packages/pebble/src/diagnostics/DiagnosticMessage.ts:82
↓ 2 callers
Function
writeFile
(filename: string, contents: Uint8Array | string, baseDir: string)
packages/pebble-cli/src/utils/crateFsIo.ts:28
↓ 1 callers
Function
_buildSpendCaseBlock
( compiler: AstCompiler, contractDecl: ContractDecl, paramsInternalNamesMap: Map<string, string>,
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:1374
↓ 1 callers
Function
_collectChainSegments
( expr: PebbleExpr )
packages/pebble/src/compiler/AstCompiler/utils/resolveNamespaceChain.ts:135
↓ 1 callers
Method
_collectInterfaceImplSigs
( stmt: TypeImplementsStmt, srcUid: string, topLevelScope: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:576
↓ 1 callers
Method
_collectTopLevelConst
( decl: SimpleVarDecl, srcUid: string, topLevelScope: AstScope, srcExports: As
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:674
↓ 1 callers
Function
_compileAddExpr
( ctx: AstCompilationCtx, expr: AddExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileAddExpr.ts:11
↓ 1 callers
Function
_compileArrayLikeDeconstr
( ctx: AstCompilationCtx, decl: ArrayLikeDeconstr, typeHint: TirType | undefined, // coming from d
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:284
↓ 1 callers
Function
_compileAssertStmt
( ctx: AstCompilationCtx, stmt: AssertStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileAssertStmt.ts:11
↓ 1 callers
Function
_compileBinaryExpr
( ctx: AstCompilationCtx, expr: BinaryExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileBinaryExpr.ts:28
↓ 1 callers
Function
_compileBitwiseAndExpr
( ctx: AstCompilationCtx, expr: BitwiseAndExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseAndExpr.ts:9
↓ 1 callers
Function
_compileBitwiseOrExpr
( ctx: AstCompilationCtx, expr: BitwiseOrExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseOrExpr.ts:10
↓ 1 callers
Function
_compileBitwiseXorExpr
( ctx: AstCompilationCtx, expr: BitwiseXorExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseXorExpr.ts:9
↓ 1 callers
Function
_compileBreakStmt
( ctx: AstCompilationCtx, stmt: BreakStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileBreakStmt.ts:6
↓ 1 callers
Function
_compileCallExpr
( ctx: AstCompilationCtx, expr: CallExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileCallExpr.ts:18
↓ 1 callers
Function
_compileCaseExpr
( ctx: AstCompilationCtx, expr: CaseExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileCaseExpr.ts:19
↓ 1 callers
Function
_compileCaseExprMatcher
( ctx: AstCompilationCtx, matcher: CaseExprMatcher, patternType: TirType, returnTypeHint: TirT
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileCaseExpr.ts:74
↓ 1 callers
Function
_compileCaseWildcardMatcher
( ctx: AstCompilationCtx, wildcardCase: CaseWildcardMatcher, returnTypeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileCaseExpr.ts:204
↓ 1 callers
Function
_compileContinueStmt
( ctx: AstCompilationCtx, stmt: ContinueStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileContinueStmt.ts:6
↓ 1 callers
Function
_compileDivExpr
( ctx: AstCompilationCtx, expr: DivExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileDivExpr.ts:9
↓ 1 callers
Function
_compileElemAccessExpr
( ctx: AstCompilationCtx, expr: ElemAccessExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileElemAccessExpr.ts:24
↓ 1 callers
Method
_compileEnumDecl
( stmt: EnumDecl, srcUid: string, _topLevelScope: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1375
↓ 1 callers
Function
_compileEqualExpr
( ctx: AstCompilationCtx, expr: EqualExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileEqualExpr.ts:10
↓ 1 callers
Function
_compileExplicitAssignmentStmt
( ctx: AstCompilationCtx, stmt: ExplicitAssignmentStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileAssignmentStmt.ts:71
↓ 1 callers
Function
_compileExponentiationExpr
( ctx: AstCompilationCtx, expr: ExponentiationExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileExponentiationExpr.ts:9
↓ 1 callers
Function
_compileFailStmt
( ctx: AstCompilationCtx, stmt: FailStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileFailStmt.ts:10
↓ 1 callers
Function
_compileForOfStmt
( ctx: AstCompilationCtx, stmt: ForOfStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileForOfStmt.ts:14
↓ 1 callers
Function
_compileForStmt
( ctx: AstCompilationCtx, stmt: ForStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileForStmt.ts:15
↓ 1 callers
Function
_compileForUpdateStmts
( ctx: AstCompilationCtx, stmts: AssignmentStmt[] )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileForStmt.ts:62
↓ 1 callers
Function
_compileFuncExprInferReturnType
* compiles a function expression whose return type annotation is missing, * inferring the return type from the body's return expressions. * * uses
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileFuncExpr.ts:179
↓ 1 callers
Function
_compileGreaterThanEqualExpr
( ctx: AstCompilationCtx, expr: GreaterThanEqualExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileGreaterThanEqualExpr.ts:14
↓ 1 callers
Function
_compileGreaterThanExpr
( ctx: AstCompilationCtx, expr: GreaterThanExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileGreaterThanExpr.ts:13
↓ 1 callers
Function
_compileIfStmt
( ctx: AstCompilationCtx, stmt: IfStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileIfStmt.ts:13
↓ 1 callers
Function
_compileIsExpr
( ctx: AstCompilationCtx, expr: IsExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileIsExpr.ts:10
↓ 1 callers
Function
_compileLessThanEqualExpr
( ctx: AstCompilationCtx, expr: LessThanEqualExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileLessThanEqualExpr.ts:14
↓ 1 callers
Function
_compileLessThanExpr
( ctx: AstCompilationCtx, expr: LessThanExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileLessThanExpr.ts:14
↓ 1 callers
Function
_compileLitteralArrayExpr
( ctx: AstCompilationCtx, expr: LitArrExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:338
↓ 1 callers
Function
_compileLitteralExpr
( ctx: AstCompilationCtx, expr: LitteralExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:41
↓ 1 callers
Function
_compileLitteralNamedObjExpr
( ctx: AstCompilationCtx, expr: LitNamedObjExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:118
↓ 1 callers
Function
_compileLitteralObjExpr
( ctx: AstCompilationCtx, expr: LitObjExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:226
↓ 1 callers
Function
_compileLitteralUndefExpr
( ctx: AstCompilationCtx, expr: LitUndefExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:86
↓ 1 callers
Function
_compileLogicalAndExpr
( ctx: AstCompilationCtx, expr: LogicalAndExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileLogicalAndExpr.ts:9
↓ 1 callers
Function
_compileLogicalOrExpr
( ctx: AstCompilationCtx, expr: LogicalOrExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileLogicalOrExpr.ts:10
↓ 1 callers
Function
_compileMatchStmt
( ctx: AstCompilationCtx, stmt: MatchStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileMatchStmt.ts:30
↓ 1 callers
Function
_compileModuloExpr
( ctx: AstCompilationCtx, expr: ModuloExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileModuloExpr.ts:10
↓ 1 callers
Function
_compileMultExpr
( ctx: AstCompilationCtx, expr: MultExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileMultExpr.ts:11
↓ 1 callers
Method
_compileNamespaceDecl
( decl: NamespaceDecl, srcUid: string, enclosingScope: AstScope, enclosingExpo
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1003
↓ 1 callers
Function
_compileNonNullPropAccessExpr
( ctx: AstCompilationCtx, expr: NonNullPropAccessExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.ts:154
↓ 1 callers
Function
_compileNotEqualExpr
( ctx: AstCompilationCtx, expr: NotEqualExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileNotEqualExpr.ts:11
↓ 1 callers
Function
_compileOptionalDefaultExpr
( ctx: AstCompilationCtx, expr: OptionalDefaultExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileOptionalDefaultExpr.ts:19
↓ 1 callers
Function
_compileOptionalPropAccessExpr
( ctx: AstCompilationCtx, expr: OptionalPropAccessExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.ts:42
↓ 1 callers
Function
_compilePropAccessExpr
( ctx: AstCompilationCtx, expr: PropAccessExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.ts:27
↓ 1 callers
Function
_compileReturnStmt
( ctx: AstCompilationCtx, stmt: ReturnStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileReturnStmt.ts:9
↓ 1 callers
Function
_compileShiftLeftExpr
( ctx: AstCompilationCtx, expr: ShiftLeftExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileShiftLeftExpr.ts:9
↓ 1 callers
Function
_compileShiftRightExpr
( ctx: AstCompilationCtx, expr: ShiftRightExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileShiftRightExpr.ts:10
↓ 1 callers
Method
_compileStructDecl
( stmt: StructDecl, srcUid: string, topLevelScope: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1214
← previous
next →
501–600 of 2,440, ranked by callers