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
↓ 4 callers
Method
toString
Converts the output to a string.
packages/pebble/src/compiler/io/IOutputStream.ts:57
↓ 4 callers
Method
toUplcConstType
* translate to uplc type
packages/pebble/src/compiler/tir/types/TirType.ts:30
↓ 4 callers
Method
unzigzagBigint
( bigint: bigint )
packages/pebble/src/utils/UPLCFlatUtils/index.ts:48
↓ 4 callers
Function
zeroBudget
()
packages/pebble/src/compiler/test/TestResult.ts:41
↓ 3 callers
Method
_collectTypeDeclarations
( stmts: TopLevelStmt[], srcUid: string, topLevelScope: AstScope, srcExports:
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1126
↓ 3 callers
Function
_compileBlockStmt
( ctx: AstCompilationCtx, stmt: BlockStmt, )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileBlockStmt.ts:7
↓ 3 callers
Function
_compileNonNullExpr
( ctx: AstCompilationCtx, expr: NonNullExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileNonNullExpr.ts:15
↓ 3 callers
Function
_failedTestResult
( desc: { name: string; sourceFile: string; range: SourceRange }, msg: string, kind: "unit" | "pro
packages/pebble/src/compiler/Compiler.ts:443
↓ 3 callers
Method
_parseTypeAndInitializer
* parses `(: AstTypeExpr)? (= PebbleExpr)?` for parameters and variable declarations
packages/pebble/src/parser/Parser.ts:2220
↓ 3 callers
Function
applyAndExpectBool
(uplc: any, arg: UPLCConst, expected: boolean)
packages/pebble/src/compiler/__tests__/compiler.forOf.test.ts:53
↓ 3 callers
Method
bodyBlock
()
packages/pebble/src/ast/nodes/statements/ForStmt.ts:25
↓ 3 callers
Method
checkForIdentifierStartAfterNumericLiteral
()
packages/pebble/src/tokenizer/Tokenizer.ts:1451
↓ 3 callers
Method
clearNextToken
* ### Side Effects * - Resets `nextToken`: Sets the nextToken property to an invalid state, typically -1. * - Resets `nextTokenPos`: Sets th
packages/pebble/src/tokenizer/Tokenizer.ts:774
↓ 3 callers
Method
clone
()
packages/pebble/src/compiler/tir/types/TirStructType.ts:287
↓ 3 callers
Method
columnAt
Gets the column number at the last position queried with `lineAt`. Starts at `1`.
packages/pebble/src/ast/Source/Source.ts:98
↓ 3 callers
Function
compile
(src: string)
packages/pebble/src/compiler/__tests__/_probe.ob.test.ts:5
↓ 3 callers
Function
compileContract
( src: string )
packages/pebble/src/compiler/__tests__/compiler.communityBugs.0_3_4.test.ts:11
↓ 3 callers
Function
compileExport
* Benchmark: accessing an element by index, `List<int>` vs `Array<int>`. * * Three strategies, each compiled from real pebble source: * * 1. LIS
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:35
↓ 3 callers
Function
compileSrc
( src: string )
packages/pebble/src/compiler/__tests__/compiler.generics.test.ts:6
↓ 3 callers
Function
conv
(p: string | undefined)
packages/pebble/src/utils/semverSatisfies.ts:20
↓ 3 callers
Function
createFsIo
(root: string)
packages/pebble-cli/src/utils/crateFsIo.ts:12
↓ 3 callers
Function
draws
( res: TestResult )
packages/pebble/src/compiler/__tests__/compiler.testStmt.property.bool.test.ts:104
↓ 3 callers
Method
dropList
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:836
↓ 3 callers
Method
equals
( type: TirType )
packages/pebble/src/IR/IRNodes/IRNative/index.ts:291
↓ 3 callers
Function
exportFn
( name: string, src: string )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:11
↓ 3 callers
Function
fmt
( n: number | bigint )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:96
↓ 3 callers
Function
fmt
(n: number | bigint)
packages/pebble/src/compiler/__tests__/bench.chooseListToIRCase.test.ts:83
↓ 3 callers
Function
g
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:128
↓ 3 callers
Method
getAbsoulteProjPathSource
( absoluteProjPath: string )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1537
↓ 3 callers
Function
getBranchStmtReturnType
( { reassigned, returns }: ReassignedVariablesAndReturn, ctx: ExpressifyCtx, stmtRange: SourceRang
packages/pebble/src/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.ts:331
↓ 3 callers
Function
getPropAccessReturnType
( ctx: AstCompilationCtx, objType: TirType, propId: Identifier )
packages/pebble/src/compiler/AstCompiler/utils/getPropAccessReturnType.ts:27
↓ 3 callers
Method
getVariableSSA
( name : string )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:186
↓ 3 callers
Method
introduceFuncParams
( params: readonly TirSimpleVarDecl[] )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:194
↓ 3 callers
Function
isAbsolutePath
( path: string )
packages/pebble/src/compiler/path/getAbsolutePath.ts:64
↓ 3 callers
Function
isAssignmentStmt
( stmt: any )
packages/pebble/src/ast/nodes/statements/AssignmentStmt.ts:105
↓ 3 callers
Function
isBinaryExpr
( thing: any )
packages/pebble/src/ast/nodes/expr/binary/BinaryExpr.ts:119
↓ 3 callers
Method
isConcrete
()
packages/pebble/src/compiler/tir/types/TirStructType.ts:283
↓ 3 callers
Method
isConcrete
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/int.ts:8
↓ 3 callers
Function
isHexBase
(c: number)
packages/pebble/src/utils/text.ts:246
↓ 3 callers
Function
isImplicitAssignmentStmt
( stmt: any )
packages/pebble/src/ast/nodes/statements/AssignmentStmt.ts:112
↓ 3 callers
Function
isInternalName
( name: string )
packages/pebble/src/compiler/internalVar.ts:71
↓ 3 callers
Function
isPebbleTypeDecl
( thing: any )
packages/pebble/src/ast/nodes/statements/declarations/PebbleTypeDecl.ts:11
↓ 3 callers
Function
isRecord
(x: any)
packages/pebble-cli/src/utils/miscellaneous.ts:8
↓ 3 callers
Function
isTirUnaryPrefixExpr
( thing: any )
packages/pebble/src/compiler/tir/expressions/unary/TirUnaryPrefixExpr.ts:12
↓ 3 callers
Function
isUnaryPrefixExpr
( thing: any )
packages/pebble/src/ast/nodes/expr/unary/UnaryPrefixExpr.ts:18
↓ 3 callers
Function
isVarDecl
( node: any )
packages/pebble/src/ast/nodes/statements/declarations/VarDecl/VarDecl.ts:24
↓ 3 callers
Function
makeAssignmentStmt
( varIdentifier: Identifier, token: T, assignedExpr: PebbleExpr, range: SourceRange )
packages/pebble/src/ast/nodes/statements/AssignmentStmt.ts:142
↓ 3 callers
Function
memoryFsAdaptFilename
( filename: string )
packages/pebble/src/compiler/io/CompilerIoApi.ts:69
↓ 3 callers
Method
narrowTo
( parentIdxs: number[] )
packages/pebble/src/compiler/tir/types/TirStructType.ts:193
↓ 3 callers
Method
narrowVariable
* Records a flow-sensitive narrowing for `name` in THIS scope. * Subsequent `resolveValue(name)` calls (in this scope or its * descendants,
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:221
↓ 3 callers
Method
newChildScope
( childScopeInfos: ScopeInfos, isLoop: boolean )
packages/pebble/src/compiler/AstCompiler/AstCompilationCtx.ts:42
↓ 3 callers
Method
newLoopChildScope
()
packages/pebble/src/compiler/AstCompiler/AstCompilationCtx.ts:83
↓ 3 callers
Function
normalizeRoot
(root?: string)
packages/pebble-cli/src/utils/miscellaneous.ts:3
↓ 3 callers
Method
parseCommonFuncExpr
( name: Identifier, parameters: VarDecl[], arrowKind: ArrowKind, startPos: num
packages/pebble/src/parser/Parser.ts:3400
↓ 3 callers
Method
parseNamedFuncSig
( flags: CommonFlags = CommonFlags.None, startPos?: number, defaultReturnType?: AstTyp
packages/pebble/src/parser/Parser.ts:1637
↓ 3 callers
Method
parseSource
( src: Source, diagnostics?: DiagnosticMessage[] )
packages/pebble/src/parser/Parser.ts:161
↓ 3 callers
Method
parseStructConstrFields
( flags: CommonFlags )
packages/pebble/src/parser/Parser.ts:1586
↓ 3 callers
Function
plam
( inT: any, outT: any )
packages/pebble/src/utils/getCallStackAt/__tests__/getCallStackAt.test.ts:64
↓ 3 callers
Function
positiveBigIntAsBytes
( n: bigint )
packages/pebble/src/IR/utils/positiveIntAsBytes.ts:26
↓ 3 callers
Method
pretty
( indent: number )
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:57
↓ 3 callers
Method
readDecimalFloatPartial
Reads past one section of a decimal float literal. Returns the number of separators encountered.
packages/pebble/src/tokenizer/Tokenizer.ts:1364
↓ 3 callers
Function
readFile
(filename: string, baseDir: string)
packages/pebble-cli/src/utils/crateFsIo.ts:19
↓ 3 callers
Method
registerInternalTypeDecl
( decl: StructDecl | TypeAliasDecl, // scope in which the decl's field types are resolved; def
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1108
↓ 3 callers
Method
resolveInterface
* Walk the scope chain to resolve an interface by name. Returns the * method-name -> AstFuncType signature map.
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:423
↓ 3 callers
Method
resolveNamespace
resolve a namespace by walking the scope chain
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:369
↓ 3 callers
Function
run
(votes: any)
packages/pebble/src/compiler/__tests__/compiler.sopOptLookupExecution.test.ts:82
↓ 3 callers
Function
showIR
( _ir: IRTerm )
packages/pebble/src/IR/utils/showIR.ts:77
↓ 3 callers
Method
sopTypes
()
packages/pebble/src/compiler/AstCompiler/utils/getTirFuncSigTree/TirFuncSigTree.ts:90
↓ 3 callers
Function
stringify
( value: any, replacer?: (key: string, value: any) => any | null | (number | string)[], space: str
packages/pebble/src/utils/stringify.ts:38
↓ 3 callers
Function
testParse
( src: string, log: boolean = false )
packages/pebble/src/parser/__test__/parse.hex.test.ts:5
↓ 3 callers
Method
toConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirNativeType/TirNativeType.ts:102
↓ 3 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/TirNativeType.ts:95
↓ 3 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/TirNativeType.ts:134
↓ 3 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/linearMap.ts:15
↓ 3 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/list.ts:15
↓ 3 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/array.ts:15
↓ 3 callers
Method
toTirTypeKey
()
packages/pebble/src/compiler/tir/types/TirNativeType/native/linearMapEntry.ts:15
↓ 3 callers
Method
unsafeNext
* Retrieves the next token from the source text, * handling identifiers and token length. * This method is considered unsafe because *
packages/pebble/src/tokenizer/Tokenizer.ts:137
↓ 3 callers
Function
val2
a Value with two tokens (ff, gg) under polA
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:47
↓ 3 callers
Function
wrapNonTerminatingFinalStmtAsCaseExpr
( finalStmtExpr: TirExpr, sop: TirSoPStructType, ctx: ExpressifyCtx, stmtRange: SourceRange,
packages/pebble/src/compiler/TirCompiler/expressify/expressify.ts:940
↓ 2 callers
Function
__commonCompileStructFieldValues
( ctx: AstCompilationCtx, expr: LitObjExpr | LitNamedObjExpr, realType: TirType, // possibly alias
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:283
↓ 2 callers
Method
_collectAllTopLevelSignatures
( stmts: TopLevelStmt[], srcUid: string, topLevelScope: AstScope, srcExports:
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:426
↓ 2 callers
Method
_collectInterfaceDeclarations
( stmts: TopLevelStmt[], topLevelScope: AstScope, srcExports: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1067
↓ 2 callers
Method
_collectNamespaceDeclarations
* walks `stmts` for `NamespaceDecl` (optionally wrapped in `ExportStmt`), * compiles each one into a `NamespaceSymbol`, and registers it on
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:972
↓ 2 callers
Method
_collectTopLevelFuncDeclSig
( stmt: FuncDecl, srcUid: string, topLevelScope: AstScope, srcExports: AstScop
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:708
↓ 2 callers
Function
_compTimeDropN
( bigN: bigint )
packages/pebble/src/IR/toUPLC/subRoutines/_comptimeDropN.ts:107
↓ 2 callers
Function
_compileAssignmentStmt
( ctx: AstCompilationCtx, stmt: AssignmentStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileAssignmentStmt.ts:15
↓ 2 callers
Function
_compileDotPropAccessExpr
( ctx: AstCompilationCtx, expr: DotPropAccessExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.ts:173
↓ 2 callers
Method
_compileParsedSource
* translates the source AST statements * to TIR statements; and saves the result in `this.program`
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:360
↓ 2 callers
Function
_compileSimpleVarDecl
( ctx: AstCompilationCtx, decl: SimpleVarDecl, typeHint: TirType | undefined, // coming from decon
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:68
↓ 2 callers
Function
_compileSingleDeconstructVarDecl
( ctx: AstCompilationCtx, decl: SingleDeconstructVarDecl, typeHint: TirType | undefined, // coming
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:214
↓ 2 callers
Function
_compileUsingStructDestructure
( ctx: AstCompilationCtx, stmt: UsingStmt, rhs: AstTypeExpr )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileUsingStmt.ts:62
↓ 2 callers
Function
_compileVarStmt
( ctx: AstCompilationCtx, stmt: VarStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:30
↓ 2 callers
Method
_defineDeps
()
packages/pebble/src/compiler/tir/expressions/TirFuncExpr.ts:98
↓ 2 callers
Function
_ensureSemicolon
* ensures a statement source ends with a semicolon * (unless it ends with a closing brace, which is self-terminating).
packages/pebble-cli/src/repl/pebbleRepl.ts:125
↓ 2 callers
Function
_getDestructuredParamsAsVarDecls
( funcCtx: AstCompilationCtx, expr: FuncExpr, expectedFuncType: TirFuncT )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileFuncExpr.ts:274
↓ 2 callers
Function
_getMatchedRedeemerBlockStatements
( compiler: AstCompiler, stmts: BodyStmt[], paramsInternalNamesMap: Map<string, string>, conte
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:668
↓ 2 callers
Function
_getRedeemerMethodBlockStatemets
( compiler: AstCompiler, method: FuncDecl, redeemerTypeDef: StructDecl, paramsInternalNamesMap
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:590
↓ 2 callers
Function
_ir_and
( left: IRTerm, right: IRTerm )
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:1144
↓ 2 callers
Function
_ir_let_sym
( sym: symbol, value: IRTerm, body: IRTerm )
packages/pebble/src/IR/tree_utils/_ir_let.ts:13
← previous
next →
301–400 of 2,440, ranked by callers