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
_compileSubExpr
( ctx: AstCompilationCtx, expr: SubExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/binary/_compileSubExpr.ts:11
↓ 1 callers
Function
_compileTemplateStrExpr
* Compile a template string `` `text ${e1} more ${e2} ...` `` into a chain * of `appendByteString` calls. * * Each text fragment becomes a `TirLitH
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.ts:417
↓ 1 callers
Function
_compileTernaryExpr
( ctx: AstCompilationCtx, expr: TernaryExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileTernaryExpr.ts:10
↓ 1 callers
Function
_compileTestStmt
( ctx: AstCompilationCtx, stmt: TestStmt, srcUid: string, sourceFile: string, )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileTestStmt.ts:29
↓ 1 callers
Function
_compileTirMatchStmtCase
( ctx: AstCompilationCtx, matchCase: MatchStmtCase, deconstructableType: DeconstructableTirType,
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileMatchStmt.ts:139
↓ 1 callers
Function
_compileTraceStmt
( ctx: AstCompilationCtx, stmt: TraceStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileTraceStmt.ts:8
↓ 1 callers
Method
_compileTypeAliasDecl
( stmt: TypeAliasDecl, srcUid: string, topLevelScope: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1340
↓ 1 callers
Function
_compileTypeConversionExpr
( ctx: AstCompilationCtx, ast: TypeConversionExpr, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileTypeConversionExpr.ts:10
↓ 1 callers
Function
_compileUnaryPrefixExpr
( ctx: AstCompilationCtx, expr: UnaryPrefixExpr, _typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileUnaryPrefixExpr.ts:19
↓ 1 callers
Function
_compileUsingAliasStmt
( ctx: AstCompilationCtx, stmt: UsingAliasStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileUsingAliasStmt.ts:14
↓ 1 callers
Function
_compileUsingNamespaceDestructure
( ctx: AstCompilationCtx, stmt: UsingStmt, ns: import("../../scope/AstScope").NamespaceSymbol )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileUsingStmt.ts:115
↓ 1 callers
Function
_compileUsingStmt
( ctx: AstCompilationCtx, stmt: UsingStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileUsingStmt.ts:24
↓ 1 callers
Function
_compileVarAccessExpr
( ctx: AstCompilationCtx, expr: Identifier, typeHint: TirType | undefined )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileVarAccessExpr.ts:7
↓ 1 callers
Function
_compileWhileStmt
( ctx: AstCompilationCtx, stmt: WhileStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileWhileStmt.ts:11
↓ 1 callers
Method
_consumeImportsAddSymsInScope
( stmts: TopLevelStmt[], srcAbsPath: string, srcImportsScope: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1424
↓ 1 callers
Method
_contractDeclToFuncDecl
( contractDecl: ContractDecl, // scope where user types referenced by the contract (eg. method
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1689
↓ 1 callers
Method
_dataStructToIR
( matchExprType: TirDataStructType | TirDataOptT, ctx: ToIRTermCtx )
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:379
↓ 1 callers
Function
_debug_assertClosedIR
( term: IRTerm )
packages/pebble/src/IR/utils/isClosedIRTerm.ts:67
↓ 1 callers
Function
_debug_assertNoDoubleVars
( term: IRTerm )
packages/pebble/src/IR/toUPLC/compileIRToUPLC.ts:297
↓ 1 callers
Function
_deriveContractBody
( compiler: AstCompiler, contractDecl: ContractDecl, paramsInternalNamesMap: Map<string, string>,
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:72
↓ 1 callers
Function
_deriveContractDatumTypeDef
( contractName: string, stateDecls: readonly StateDecl[], contractRange: SourceRange, )
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:1350
↓ 1 callers
Function
_deriveRedeemerTypeDef
( redeemerName: string, methods: FuncDecl[], contractRange: SourceRange, )
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:1674
↓ 1 callers
Method
_enumToIR
( enumType: TirEnumType, ctx: ToIRTermCtx )
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:224
↓ 1 callers
Method
_equals
( t: TirType )
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:1126
↓ 1 callers
Method
_every
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:934
↓ 1 callers
Function
_extractDeclKey
* extracts the declared name from a declaration statement * to use as the context key. returns undefined if not detectable.
packages/pebble-cli/src/repl/pebbleRepl.ts:74
↓ 1 callers
Method
_filter
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:947
↓ 1 callers
Method
_findSopOptional
(elems_t: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:892
↓ 1 callers
Function
_findUserImplMethodName
* Walk a TirType to find a matching method name on its method-pointer * map. Looks through: * - `TirAliasType.methodsNamesPtr` * -
packages/pebble/src/compiler/tir/program/stdScope/populateStdNamespace.ts:201
↓ 1 callers
Method
_getNonHoistedVariable
* * `undefined` means the variable is not in the function context. * * so it is assumed to be an external (hoisted) variable.
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:163
↓ 1 callers
Function
_inferReturnType
( stmts: TirStmt[] )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileFuncExpr.ts:262
↓ 1 callers
Function
_inilneSingeSopConstrFromData
( sop_t: TirSoPStructType, dataExprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirFromDataExpr.ts:308
↓ 1 callers
Function
_inlineMultiSopConstrFromData
( sop_t: TirSoPStructType, dataExprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirFromDataExpr.ts:357
↓ 1 callers
Function
_inlineMultiSopConstrToData
( sop_t: TirSoPStructType, exprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:309
↓ 1 callers
Function
_inlineSingleSopConstrToData
( sop_t: TirSoPStructType, exprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:245
↓ 1 callers
Function
_ir_let
( value: IRTerm, mkBody: ( varName: symbol ) => IRTerm )
packages/pebble/src/IR/tree_utils/_ir_let.ts:4
↓ 1 callers
Function
_ir_strictAnd
( left: IRTerm, right: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/replaceNatives/nativeToIR.ts:23
↓ 1 callers
Function
_isClosedIRTerm
( term: IRTerm, boundedVars: Set<symbol>, parent?: IRTerm )
packages/pebble/src/IR/utils/isClosedIRTerm.ts:19
↓ 1 callers
Method
_length
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:914
↓ 1 callers
Function
_makeAllNegativeNativesHoisted
( term: IRTerm )
packages/pebble/src/IR/toUPLC/_internal/_makeAllNegativeNativesHoisted.ts:8
↓ 1 callers
Method
_mkEqualsList
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:1082
↓ 1 callers
Method
_mkGenericInfos
( tirKey: string, arity: number, mkApplied: ( tyArgs: TirType[] ) => TirType )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:265
↓ 1 callers
Method
_mkMap
(elemT: TirType, returnElemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:960
↓ 1 callers
Method
_readFile
( path: string )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1529
↓ 1 callers
Function
_readFirstWord
( text: string )
packages/pebble-cli/src/repl/pebbleRepl.ts:62
↓ 1 callers
Method
_registerGenericTemplate
* Register a generic function template. Compile only the signature in a * scope where each type parameter is bound to a `TirTypeParam`; the body
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:810
↓ 1 callers
Function
_removeUnusedVars
( term: IRTerm, ctx: RemoveUnusedVarsCtx )
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/removeUnusuedVarsAndReturnRoot.ts:18
↓ 1 callers
Function
_renderValue
( v: unknown )
packages/pebble-cli/src/test/formatTestResults.ts:95
↓ 1 callers
Method
_reportCircularDependency
( src: Source, resolveStack: ResolveStackNode )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1634
↓ 1 callers
Method
_resolveTypeParamConstraint
* Resolve a `<T implements I>` constraint clause to a `TypeParamConstraint`. * * - `decl.constraint` must be a bare `AstNamedTypeExpr` (no t
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:932
↓ 1 callers
Method
_runOneTest
( cfg: CompilerOptions, desc: { name: string; tirFuncName: string;
packages/pebble/src/compiler/Compiler.ts:202
↓ 1 callers
Function
_showLinearMapIR
( mapT: TirLinearMapT, exprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirShowExpr.ts:248
↓ 1 callers
Function
_showListIR
( listT: TirListT, exprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirShowExpr.ts:167
↓ 1 callers
Function
_showUplcFunc
( origin_t: TirType )
packages/pebble/src/compiler/tir/expressions/TirShowExpr.ts:347
↓ 1 callers
Method
_sopStructToIR
( matchExprType: TirSoPStructType | TirSopOptT, ctx: ToIRTermCtx )
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:245
↓ 1 callers
Function
_tryResolveEnumMemberAccess
* Returns a `TirLitEnumMemberExpr` if `objId` resolves to an enum type * in scope and `propId` is one of its members. * Emits a diagnostic and retur
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.ts:258
↓ 1 callers
Function
_unclosedDepth
* counts unmatched braces, parens, and brackets in text, * respecting string literals and comments. * returns > 0 if there are unclosed delimiters.
packages/pebble-cli/src/repl/pebbleRepl.ts:137
↓ 1 callers
Method
_untaggedDataStructToIR
* Lowers a `case` over an untagged data struct (single constructor; * runtime form is `listData(fields)`). No constructor dispatch is * need
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:145
↓ 1 callers
Function
_walk
( dir: string, out: string[] )
packages/pebble-cli/src/test/discoverTestFiles.ts:42
↓ 1 callers
Function
_wrapSourceTextForRepl
* Like `_wrapSourceTextForRun` but: * - omits the return type annotation (no `: void`) * - turns the last non-declaration statement into a `return`
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1978
↓ 1 callers
Function
_wrapSourceTextForRun
* Splits source text into declaration blocks and body blocks * using a simple character scanner, then wraps body blocks * in a `function <funcName>(
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1839
↓ 1 callers
Function
addExtension
* Adds extension if needed
packages/pebble/src/compiler/path/getAbsolutePath.ts:44
↓ 1 callers
Function
addToSet
* **O((n * m) * d)** * * where * * n = length of set * m = number of terms passed * d = number of uniqu
packages/pebble/src/IR/IRNodes/IRLetted.ts:248
↓ 1 callers
Function
addToSet
* **O((n * m) * d)** * * where * * n = length of set * m = number of terms passed * d = number of uniqu
packages/pebble/src/IR/IRNodes/IRHoisted.ts:224
↓ 1 callers
Function
adjustPathEnd
(path: string)
packages/pebble/src/compiler/path/path.ts:34
↓ 1 callers
Method
allVariables
()
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:227
↓ 1 callers
Method
allVariables
()
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:97
↓ 1 callers
Method
allVariables
()
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:42
↓ 1 callers
Function
applyAndExpectBool
(uplc: any, arg: UPLCConst, expected: boolean)
packages/pebble/src/compiler/__tests__/export.untaggedStruct.test.ts:61
↓ 1 callers
Function
applyAndExpectBytes
(uplc: any, arg: UPLCConst, expected: Uint8Array)
packages/pebble/src/compiler/__tests__/export.dataCaseExpr.test.ts:49
↓ 1 callers
Function
applyAndExpectError
(uplc: any, arg: UPLCConst)
packages/pebble/src/compiler/__tests__/export.dataCaseExpr.test.ts:55
↓ 1 callers
Method
atStart
()
packages/pebble/src/ast/Source/SourceRange.ts:72
↓ 1 callers
Function
bindNamespaceMember
( ctx: AstCompilationCtx, ns: NamespaceSymbol, originalName: Identifier, aliasName: Identifier
packages/pebble/src/compiler/AstCompiler/utils/resolveNamespacePath.ts:73
↓ 1 callers
Method
buildFromProgram
()
packages/pebble/src/compiler/SourceTypeMap.ts:89
↓ 1 callers
Function
buildMonomorphizationKey
( templateCanonicalName: string, typeArgs: TirType[] )
packages/pebble/src/compiler/AstCompiler/utils/monomorphizeGeneric.ts:25
↓ 1 callers
Function
canAssignCtorDef
* * @param a extending ctor * @param b extended ctor * @returns
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:403
↓ 1 callers
Function
canAssignToList
( type: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:65
↓ 1 callers
Function
canBeStackTracePath
( thing: string | undefined )
packages/pebble/src/utils/getCallStackAt/index.ts:140
↓ 1 callers
Function
canCastTo
( a: TirType, b: TirType )
packages/pebble/src/compiler/tir/types/utils/canCastTo.ts:19
↓ 1 callers
Function
caretUpper
(p: Partial3)
packages/pebble/src/utils/semverSatisfies.ts:56
↓ 1 callers
Method
check
( config?: Partial<CompilerOptions> )
packages/pebble/src/compiler/Compiler.ts:68
↓ 1 callers
Method
clone
()
packages/pebble/src/compiler/tir/types/TirInterfaceType.ts:15
↓ 1 callers
Method
clone
()
packages/pebble/src/compiler/tir/expressions/TirLettedExpr.ts:55
↓ 1 callers
Method
clone
()
packages/pebble/src/IR/IRNodes/IRLetted.ts:208
↓ 1 callers
Method
clone
()
packages/pebble/src/IR/IRNodes/IRHoisted.ts:185
↓ 1 callers
Method
clone
()
packages/pebble/src/ast/nodes/common/Identifier.ts:17
↓ 1 callers
Function
cmp
(a: SV, b: SV)
packages/pebble/src/utils/semverSatisfies.ts:38
↓ 1 callers
Function
collect
( expr: TirExpr, polarity: boolean, acc: IsNarrowing[] )
packages/pebble/src/compiler/AstCompiler/utils/extractIsNarrowings.ts:45
↓ 1 callers
Function
combineSurrogates
(hi: number, lo: number)
packages/pebble/src/utils/text.ts:221
↓ 1 callers
Method
compileAllDeps
* @returns `true` if there were no errors. `false` otherwise.
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1563
↓ 1 callers
Function
compileOk
( srcText: string )
packages/pebble/src/compiler/__tests__/compiler.openItems.0_3_3.test.ts:23
↓ 1 callers
Function
compilePebbleProject
(opts: CliCompileOptions)
packages/pebble-cli/src/compile/compilePebbleProject.ts:8
↓ 1 callers
Function
compileTypedProgram
( cfg: CompilerOptions, tirProgram: TypedProgram )
packages/pebble/src/compiler/TirCompiler/compileTirProgram.ts:14
↓ 1 callers
Function
completeCompileOptions
(flags: CliCompileFlags)
packages/pebble-cli/src/compile/completeCompileOptions.ts:21
↓ 1 callers
Function
completeCompilerOptions
( options: Partial<CompilerOptions>, complete: Partial<CompilerOptions> = defaultOptions as Partial<Co
packages/pebble/src/IR/toUPLC/CompilerOptions.ts:203
↓ 1 callers
Function
completeExportOptions
(flags: CliExportFlags)
packages/pebble-cli/src/export/completeExportOptions.ts:23
↓ 1 callers
Function
completeUplcOptimizations
( options: Partial<CompilerUplcOptimizations>, complete: CompilerUplcOptimizations = defaultUplcOptimi
packages/pebble/src/IR/toUPLC/CompilerOptions.ts:56
↓ 1 callers
Function
constValueToJson
( value: IRConstValue )
packages/pebble/src/IR/IRNodes/IRConst.ts:380
↓ 1 callers
Function
constantList
( elems: TirExpr[], elemsT: TirType, ctx: ToIRTermCtx )
packages/pebble/src/compiler/tir/expressions/litteral/TirLitArrExpr.ts:86
↓ 1 callers
Function
containsFreeVar
Returns true if `term` contains a free `IRVar(p)` reference. A * binding inside `term` that re-uses `p`'s symbol shadows it (these * are rare given
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseLetBindingsAndReturnRoot.ts:124
← previous
next →
601–700 of 2,440, ranked by callers