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
↓ 6 callers
Function
rewriteToCaseOverConstAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteToCaseOverConstAndReturnRoot.ts:62
↓ 6 callers
Method
setFuncParam
( name: string, type: TirType )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:128
↓ 6 callers
Method
toAstName
* @returns the (unapplied) AST name * * if the type is generic, it return only the name of the generic type * and not the type paramet
packages/pebble/src/compiler/tir/types/TirType.ts:26
↓ 6 callers
Method
toJSON
()
packages/pebble/src/IR/IRNodes/IRApp.ts:146
↓ 5 callers
Function
B
( h: string )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:27
↓ 5 callers
Method
_compileBackend
( cfg: CompilerOptions, program: TypedProgram, skipFileOutput: boolean = false )
packages/pebble/src/compiler/Compiler.ts:396
↓ 5 callers
Function
_compileFuncExpr
( ctx: AstCompilationCtx, expr: FuncExpr, expectedFuncType: TirType | undefined, isMethod: boo
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileFuncExpr.ts:73
↓ 5 callers
Function
_compileSopEncodedConcreteType
( ctx: AstCompilationCtx, typeExpr: AstTypeExpr )
packages/pebble/src/compiler/AstCompiler/internal/types/_compileSopEncodedConcreteType.ts:13
↓ 5 callers
Function
_fromDataUplcFunc
( _target_t: TirType )
packages/pebble/src/compiler/tir/expressions/TirFromDataExpr.ts:206
↓ 5 callers
Function
_loop
( ir: IRTerm, dbn: number )
packages/pebble/src/IR/utils/showIR.ts:32
↓ 5 callers
Function
applyNarrowingsToScope
( scope: AstScope, narrowings: IsNarrowing[] )
packages/pebble/src/compiler/AstCompiler/utils/extractIsNarrowings.ts:149
↓ 5 callers
Function
assertNoIfThenElse
Pretty-printed UPLC must NOT mention `ifThenElse` after bool case lowering.
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:51
↓ 5 callers
Method
clone
()
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:68
↓ 5 callers
Method
clone
()
packages/pebble/src/IR/IRNodes/IRNative/index.ts:132
↓ 5 callers
Method
compileFile
( path: string, isEntryFile = false )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:336
↓ 5 callers
Function
compileSingleFn
( name: string, src: string )
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:8
↓ 5 callers
Function
constToString
( ir: IRConst )
packages/pebble/src/IR/utils/showIR.ts:392
↓ 5 callers
Function
decideCanAssignField
( currentDecision: CanAssign, fieldDecision: CanAssign )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:438
↓ 5 callers
Method
defineGenericType
( tirKey: string, arity: number, mkApplied: ( tyArgs: TirType[] ) => TirType )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:233
↓ 5 callers
Method
defineVar
* @returns the symbol of the defined variable (for eventual `new IRFunc( ... )`)
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:126
↓ 5 callers
Function
exportFunction
(srcText: string, functionName: string)
packages/pebble/src/compiler/__tests__/export.isExpr.narrowing.test.ts:13
↓ 5 callers
Function
extractIsNarrowings
( expr: TirExpr, polarity: boolean )
packages/pebble/src/compiler/AstCompiler/utils/extractIsNarrowings.ts:35
↓ 5 callers
Function
flattenSopNamedDeconstructInplace_addTopDestructToCtx_getNestedDeconstruct
( decl: TirNamedDeconstructVarDecl | TirSingleDeconstructVarDecl, ctx: ExpressifyCtx, /** * T
packages/pebble/src/compiler/TirCompiler/expressify/flattenSopNamedDeconstructInplace_addTopDestructToCtx_getNestedDeconstruct.ts:16
↓ 5 callers
Function
fmt
(n: bigint | number)
packages/pebble/src/compiler/__tests__/bench.listLength.test.ts:60
↓ 5 callers
Function
getOptTypeArg
( opt_t: TirType )
packages/pebble/src/compiler/tir/types/utils/getOptTypeArg.ts:6
↓ 5 callers
Function
getVarNameForDbn
( dbn: number )
packages/pebble/src/IR/utils/showIR.ts:23
↓ 5 callers
Method
hasDataEncoding
()
packages/pebble/src/compiler/tir/types/TirEnumType.ts:23
↓ 5 callers
Function
headBuiltin
( listArg: UPLCTerm )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:23
↓ 5 callers
Function
isIRConstPair
( value: any )
packages/pebble/src/IR/IRNodes/IRConst.ts:45
↓ 5 callers
Method
next32
Returns an unsigned 32-bit integer.
packages/pebble/src/compiler/test/fuzz/PRNG.ts:23
↓ 5 callers
Function
numCodeUnits
(cp: number)
packages/pebble/src/utils/text.ts:226
↓ 5 callers
Method
parentCtorIdx
( localIdx: number )
packages/pebble/src/compiler/tir/types/TirStructType.ts:189
↓ 5 callers
Function
parseFile
( path: string, src: string, getUid: () => string = defaultSymbolForge.getUid.bind( defaultSymbolF
packages/pebble/src/parser/parseFile.ts:16
↓ 5 callers
Function
prettyIRText
( _ir: IRTerm, _indent = 2 )
packages/pebble/src/IR/utils/showIR.ts:167
↓ 5 callers
Function
removeUnusedVarsAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/removeUnusuedVarsAndReturnRoot.ts:9
↓ 5 callers
Method
run
( config?: Partial<CompilerOptions> )
packages/pebble/src/compiler/Compiler.ts:126
↓ 5 callers
Function
runIsolated
(srcText: string)
packages/pebble/src/compiler/__tests__/compiler.isExpr.narrowing.test.ts:11
↓ 5 callers
Function
toNamedDeconstructVarDecl
( varDecl: TirSingleDeconstructVarDecl | TirNamedDeconstructVarDecl )
packages/pebble/src/compiler/TirCompiler/expressify/toNamedDeconstructVarDecl.ts:7
↓ 5 callers
Method
tryParseCallExprOrReturnSame
* usually called right after a function expression or access property (method) expression * * example: the function expression parsed the i
packages/pebble/src/parser/Parser.ts:3284
↓ 5 callers
Method
zigzagBigint
( bigint: bigint )
packages/pebble/src/utils/UPLCFlatUtils/index.ts:35
↓ 4 callers
Function
I
( n: number )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:26
↓ 4 callers
Function
_compileNamedDeconstructVarDecl
( ctx: AstCompilationCtx, decl: NamedDeconstructVarDecl, typeHint: TirType | undefined, // coming
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:102
↓ 4 callers
Function
_getDeconstructedFields
( ctx: AstCompilationCtx, astDeconstruct: ISingleDeconstructVarDecl, ctorDef: TirStructConstr )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:341
↓ 4 callers
Function
_getVarDeclTypeAndExpr
( ctx: AstCompilationCtx, decl: { type: AstTypeExpr | undefined, initExpr: PebbleExpr | undefined, ran
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:392
↓ 4 callers
Function
_ir_valueContains
* Lowering for Value relational operators, in terms of the `valueContains` * builtin (`valueContains(x, y)` ⟺ `x ≥ y`, componentwise): * * a <= b
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:36
↓ 4 callers
Function
_isWhitespace
( ch: number )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:2133
↓ 4 callers
Function
_toDataUplcFunc
( origin_t: TirType )
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:171
↓ 4 callers
Function
addHoisted
( h: IRHoisted )
packages/pebble/src/IR/utils/showIR.ts:82
↓ 4 callers
Method
anonymous
* usually used for anonymous arrow functions
packages/pebble/src/ast/nodes/common/Identifier.ts:25
↓ 4 callers
Function
apply
( u: any, ...consts: any[] )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:21
↓ 4 callers
Function
arithFn
( body: string )
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:148
↓ 4 callers
Method
bodyBlockStmt
()
packages/pebble/src/ast/nodes/expr/functions/FuncExpr.ts:44
↓ 4 callers
Function
c
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:63
↓ 4 callers
Function
canAssignToOptional
( type: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:55
↓ 4 callers
Function
chunks3Test
( n : number )
packages/pebble/src/utils/UPLCFlatUtils/__tests__/encodeBigIntAsVaraibleLengthBitStream.test.ts:82
↓ 4 callers
Function
compileContract
(srcText: string)
packages/pebble/src/compiler/__tests__/bench.chooseListToIRCase.test.ts:48
↓ 4 callers
Function
compileExport
* Benchmark script — reports UPLC byte-size and CEK budget consumed for * representative programs that exercise the `unConstrData`-based lowerings *
packages/pebble/src/compiler/__tests__/bench.dataLowering.test.ts:23
↓ 4 callers
Function
compileIRToUPLC
( term: IRTerm, paritalOptions: Partial<CompilerOptions> = defaultOptions )
packages/pebble/src/IR/toUPLC/compileIRToUPLC.ts:31
↓ 4 callers
Function
countVar
( term: IRTerm, sym: symbol )
packages/pebble/src/IR/toUPLC/subRoutines/__tests__/inlineSingleUseLetBindings.test.ts:411
↓ 4 callers
Function
currentCompilationCtx
()
packages/pebble/src/IR/CompilationCtx.ts:40
↓ 4 callers
Function
d
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:64
↓ 4 callers
Method
definitelyTerminates
()
packages/pebble/src/compiler/tir/statements/TirIfStmt.ts:40
↓ 4 callers
Function
determineReassignedVariablesAndReturn
( stmt: TirStmt )
packages/pebble/src/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.ts:97
↓ 4 callers
Function
dirname
Obtains the directory portion of a normalized path.
packages/pebble/src/compiler/path/path.ts:85
↓ 4 callers
Function
e
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:127
↓ 4 callers
Method
eq
( other: TirTypeParam )
packages/pebble/src/compiler/tir/types/TirTypeParam.ts:45
↓ 4 callers
Function
expressifyIfBranch
( ctx: ExpressifyCtx, branch: TirStmt, reassignedNames: string[], sop: TirSoPStructType, l
packages/pebble/src/compiler/TirCompiler/expressify/expressifyIfBranch.ts:25
↓ 4 callers
Function
fillLow
(p: Partial3)
packages/pebble/src/utils/semverSatisfies.ts:34
↓ 4 callers
Function
getCanAssign
( a: TirType, b: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:114
↓ 4 callers
Function
getHoistedTerms
( irTerm: IRTerm )
packages/pebble/src/IR/IRNodes/IRHoisted.ts:259
↓ 4 callers
Function
getLettedTerms
( irTerm: IRTerm, options?: Partial<GetLettedTermsOptions> )
packages/pebble/src/IR/IRNodes/IRLetted.ts:306
↓ 4 callers
Function
handleHoistedAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts:19
↓ 4 callers
Function
hoistedToStr
( ir: IRHoisted )
packages/pebble/src/IR/utils/showIR.ts:382
↓ 4 callers
Function
inputsOf
( res: TestResult )
packages/pebble/src/compiler/__tests__/compiler.testStmt.property.int.test.ts:98
↓ 4 callers
Function
isClosedIRTerm
( term: IRTerm )
packages/pebble/src/IR/utils/isClosedIRTerm.ts:62
↓ 4 callers
Function
isColorsEnabled
()
packages/pebble/src/utils/terminal.ts:29
↓ 4 callers
Function
isExplicitAssignmentStmt
( stmt: any )
packages/pebble/src/ast/nodes/statements/AssignmentStmt.ts:120
↓ 4 callers
Function
isIdentifierPart
(cp: number)
packages/pebble/src/utils/text.ts:271
↓ 4 callers
Function
isIdentifierStart
(cp: number)
packages/pebble/src/utils/text.ts:262
↓ 4 callers
Function
isPropAccessExpr
( thing: any )
packages/pebble/src/ast/nodes/expr/PropAccessExpr.ts:43
↓ 4 callers
Function
isSingleConstrStruct
( type: TirType )
packages/pebble/src/compiler/TirCompiler/expressify/isSingleConstrStruct.ts:5
↓ 4 callers
Function
isTirBinaryExpr
( thing: any )
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:84
↓ 4 callers
Function
isTirOptType
( t: any )
packages/pebble/src/compiler/tir/types/TirNativeType/native/Optional/isTirOptType.ts:5
↓ 4 callers
Function
lettedToStr
( ir: IRLetted )
packages/pebble/src/IR/utils/showIR.ts:387
↓ 4 callers
Function
modifyTermAndPushToReprocess
( current: IRTerm, newTerm: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteToCaseOverConstAndReturnRoot.ts:66
↓ 4 callers
Method
parseFuncDecl
( flags: CommonFlags, startPos?: number, defaultReturnType?: AstTypeExpr | undefined
packages/pebble/src/parser/Parser.ts:1694
↓ 4 callers
Method
parseIdentifier
( startRange?: SourceRange | undefined )
packages/pebble/src/parser/Parser.ts:2201
↓ 4 callers
Method
parseVarStmt
( flags: CommonFlags, startPos: number, opts: Partial<ParseVarOpts> = defaultParseVarO
packages/pebble/src/parser/Parser.ts:1810
↓ 4 callers
Method
readHexBytes
()
packages/pebble/src/tokenizer/Tokenizer.ts:1055
↓ 4 callers
Method
readInteger
()
packages/pebble/src/tokenizer/Tokenizer.ts:1023
↓ 4 callers
Function
removeSingleDotDirsFromPath
* Normalizes the specified path, removing interior placeholders. * Expects a posix-compatible relative path (not Windows compatible).
packages/pebble/src/compiler/path/path.ts:114
↓ 4 callers
Function
replaceWithBody
( root: IRTerm, app: IRTerm, body: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseLetBindingsAndReturnRoot.ts:174
↓ 4 callers
Function
resolvePath
(filename: string, baseDir: string)
packages/pebble-cli/src/utils/crateFsIo.ts:6
↓ 4 callers
Method
resolveValue
( name: string )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:189
↓ 4 callers
Function
rewriteNativesAppliedToConstantsAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:18
↓ 4 callers
Method
run
* Parses the entry file, wraps all top-level statements * (except functions, contracts, type declarations, imports, and exports) * into a sy
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:164
↓ 4 callers
Function
runTestSuite
* Coverage for property tests the Phase-1 runner cannot execute: parameters * whose type has no built-in fuzzer, and parameters annotated with a * u
packages/pebble/src/compiler/__tests__/compiler.testStmt.property.skip.test.ts:18
↓ 4 callers
Function
sanifyTree
(ir: IRTerm)
packages/pebble/src/IR/toUPLC/subRoutines/sanifyTree.ts:9
↓ 4 callers
Method
sig
()
packages/pebble/src/compiler/tir/expressions/TirFuncExpr.ts:24
↓ 4 callers
Method
skipStatement
Skips over a statement on errors in an attempt to reduce unnecessary diagnostic noise.
packages/pebble/src/parser/Parser.ts:4562
← previous
next →
201–300 of 2,440, ranked by callers