MCPcopy Create free account

hub / github.com/HarmonicLabs/pebble / functions

Functions2,440 in github.com/HarmonicLabs/pebble

↓ 431 callersMethodtoString
@returns the AST name (human friendly)
packages/pebble/src/compiler/tir/types/TirType.ts:11
↓ 339 callersMethodrange
* pure function for the same state
packages/pebble/src/tokenizer/Tokenizer.ts:783
↓ 330 callersFunction_ir_apps
( ...terms: [ IRTerm, IRTerm, ...IRTerm[] ] )
packages/pebble/src/IR/IRNodes/IRApp.ts:157
↓ 219 callersMethodskip
* * @param expectedToken The token type that the tokenizer should skip if it matches the current token. * @param identifierHandling *
packages/pebble/src/tokenizer/Tokenizer.ts:709
↓ 203 callersMethodget
( key: string )
packages/pebble-cli/src/repl/pebbleRepl.ts:200
↓ 128 callersMethodjoin
( a: SourceRange | HasSourceRange, b: SourceRange | HasSourceRange )
packages/pebble/src/ast/Source/SourceRange.ts:41
↓ 127 callersFunctioncreateMemoryCompilerIoApi
({ sources, outputs, useConsoleAsOutput }: Partial<MemoryCompilerIoApi> = {})
packages/pebble/src/compiler/io/CompilerIoApi.ts:41
↓ 126 callersMethodset
( key: string, src: string )
packages/pebble-cli/src/repl/pebbleRepl.ts:193
↓ 122 callersFunctiondefineBuiltin
( scope: AstScope, astName: string, tag: IRNativeTag, funcType: TirFuncT,
packages/pebble/src/compiler/tir/program/stdScope/populateStdNamespace.ts:110
↓ 106 callersMethodint
( n: number | bigint )
packages/pebble/src/IR/IRNodes/IRConst.ts:187
↓ 104 callersMethodclone
()
packages/pebble/src/IR/IRNodes/IRApp.ts:137
↓ 84 callersMethoddata
( d: Data )
packages/pebble/src/IR/IRNodes/IRConst.ts:197
↓ 83 callersFunction_compileExpr
( ctx: AstCompilationCtx, expr: PebbleExpr, /** * this is just a type **hint** * it is o
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileExpr.ts:40
↓ 83 callersFunctiongetUnaliased
( t: TirType )
packages/pebble/src/compiler/tir/types/utils/getUnaliased.ts:4
↓ 83 callersMethodtoTirTypeKey
* @returns the TIR name * * if the type is generic, it returns only the name of the generic type
packages/pebble/src/compiler/tir/types/TirType.ts:17
↓ 82 callersMethodhas
( key: string )
packages/pebble-cli/src/repl/pebbleRepl.ts:205
↓ 79 callersFunctioncanAssignTo
( a: TirType, b: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:109
↓ 54 callersMethodclone
()
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:542
↓ 54 callersFunctionsemverSatisfies
(version: string, range: string)
packages/pebble/src/utils/semverSatisfies.ts:136
↓ 52 callersFunctionmergeSortedStrArrInplace
( target: string[], source: string[] )
packages/pebble/src/utils/array/mergeSortedStrArrInplace.ts:7
↓ 52 callersMethodnext
advances the tokenizer and returns the new token
packages/pebble/src/tokenizer/Tokenizer.ts:113
↓ 50 callersMethodtoIR
( ctx: ToIRTermCtx )
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:553
↓ 39 callersFunctionapplyAndExpectInt
(uplc: any, arg: UPLCConst, expected: bigint)
packages/pebble/src/compiler/__tests__/export.dataCaseExpr.test.ts:43
↓ 39 callersMethodbool
( b: boolean )
packages/pebble/src/IR/IRNodes/IRConst.ts:177
↓ 39 callersMethodincludes
( elem: string )
packages/pebble/src/compiler/TirCompiler/internal/deps/DepsNode.ts:18
↓ 39 callersFunctionisIRHash
( hash: any )
packages/pebble/src/IR/IRHash.ts:36
↓ 36 callersMethodchildren
()
packages/pebble/src/IR/IRTerm.ts:38
↓ 36 callersMethoddeps
()
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:570
↓ 36 callersMethodpretty
( indent: number )
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:533
↓ 35 callersMethodcompile
* compiles the entry file specified in the config * * the result is store in `this.program`
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:283
↓ 35 callersMethodreadIdentifier
()
packages/pebble/src/tokenizer/Tokenizer.ts:793
↓ 33 callersMethodexport
( funcName: string, modulePath?: string )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:135
↓ 32 callersFunction_modifyChildFromTo
( parent: IRParentTerm | undefined, currentChild: IRTerm | IRHash, newChild: IRTerm )
packages/pebble/src/IR/toUPLC/_internal/_modifyChildFromTo.ts:21
↓ 32 callersFunctiondefineGenericBuiltin
( scope: AstScope, astName: string, nTypeParams: number, buildSig: ( typeArgs:
packages/pebble/src/compiler/tir/program/stdScope/populateStdNamespace.ts:382
↓ 31 callersMethodgetAppliedGeneric
( genericTirKey: string, concreteArgsNames: (string | TirType)[] )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:252
↓ 31 callersFunctiontirTypeStructurallyEqual
( a: TirType, b: TirType )
packages/pebble/src/compiler/tir/types/utils/inferTypeArgs.ts:94
↓ 28 callersFunctionev
( uplc: UPLCTerm, a: UPLCConst, b: UPLCConst )
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:51
↓ 28 callersMethodkeys
()
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseAndReturnRoot/InlineSingleUseCtx.ts:53
↓ 28 callersMethodskipIdentifier
(identifierHandling: IdentifierHandling = IdentifierHandling.Prefer)
packages/pebble/src/tokenizer/Tokenizer.ts:687
↓ 27 callersMethodreset
Resets the stream to offset zero.
packages/pebble/src/compiler/io/IOutputStream.ts:53
↓ 26 callersMethodparseExpr
( precedence: Precedence = Precedence.Comma )
packages/pebble/src/parser/Parser.ts:2427
↓ 26 callersMethodpeek
( identifierHandling: IdentifierHandling = IdentifierHandling.Default, maxCompoundLength: numb
packages/pebble/src/tokenizer/Tokenizer.ts:641
↓ 25 callersFunctionmodifyTermAndPushToReprocess
( current: IRTerm, newTerm: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:25
↓ 25 callersFunctionsubstituteTypeParams
( t: TirType, subst: Map<symbol, TirType> )
packages/pebble/src/compiler/tir/types/utils/substituteTypeParams.ts:19
↓ 24 callersMethodexport
( config: Partial<ExportOptions> & HasFuncitonName )
packages/pebble/src/compiler/Compiler.ts:100
↓ 24 callersMethodlistOf
( t: TirType )
packages/pebble/src/IR/IRNodes/IRConst.ts:202
↓ 22 callersFunctiona
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:60
↓ 21 callersFunction_ir_lazyIfThenElse
( condition: IRTerm, thenBranch: IRTerm, elseBranch: IRTerm, )
packages/pebble/src/IR/tree_utils/_ir_lazyIfThenElse.ts:7
↓ 21 callersMethodatEnd
()
packages/pebble/src/ast/Source/SourceRange.ts:77
↓ 21 callersFunctioncompileSrc
* Type-argument inference for generic function calls — including namespace * generics like `std.list.foldl(...)` and top-level `std.id(...)`. * * I
packages/pebble/src/compiler/__tests__/compiler.genericInference.test.ts:21
↓ 21 callersFunctionfreshTypeParam
()
packages/pebble/src/compiler/tir/types/utils/__tests__/substituteTypeParams.test.ts:85
↓ 21 callersFunctionintList
(values: number[])
packages/pebble/src/compiler/__tests__/compiler.forOf.test.ts:59
↓ 21 callersFunctionisIRTerm
( stuff: any )
packages/pebble/src/IR/utils/isIRTerm.ts:17
↓ 20 callersMethodclone
()
packages/pebble/src/compiler/tir/expressions/TirShowExpr.ts:62
↓ 20 callersMethoddefineNamespace
define a namespace in this scope; returns `false` if shadowed in current scope
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:359
↓ 20 callersFunctionexportFunction
(srcText: string, functionName: string)
packages/pebble/src/compiler/__tests__/export.dataCaseExpr.test.ts:17
↓ 19 callersFunctioncompileSrc
(srcText: string)
packages/pebble/src/compiler/__tests__/compiler.state.test.ts:3
↓ 19 callersFunctiongetListTypeArg
( list_t: TirType )
packages/pebble/src/compiler/tir/types/utils/getListTypeArg.ts:7
↓ 19 callersMethodintroduceLettedConstant
( name: string, lettedExpr: TirExpr, declRange: SourceRange )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:204
↓ 18 callersFunctionequalIrHash
( a: IRHash, b: IRHash )
packages/pebble/src/IR/IRHash.ts:44
↓ 18 callersFunctionexportFunction
* Tests dedicated to `for-of` lowering. Use these to iterate on the * desugaring in `src/compiler/TirCompiler/expressify/expressifyForStmt.ts` * (`l
packages/pebble/src/compiler/__tests__/compiler.forOf.test.ts:19
↓ 18 callersMethodtoIR
( ctx: ToIRTermCtx )
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:109
↓ 17 callersFunctioncompileSrc
( src: string, functionName: string = "main" )
packages/pebble/src/compiler/__tests__/compiler.stdNativeFns.test.ts:6
↓ 17 callersFunctionconcatUint8Arr
( ...arrs: (Uint8Array | Uint32Array)[] )
packages/pebble/src/IR/utils/concatUint8Arr.ts:2
↓ 17 callersFunctionexpressifyVars
( ctx: ExpressifyCtx, expr: TirExpr )
packages/pebble/src/compiler/TirCompiler/expressify/expressifyVars.ts:76
↓ 17 callersMethodfromStmtsAndContinuation
( assertions: TirAssertStmt[], continuation: TirExpr, )
packages/pebble/src/compiler/tir/expressions/TirAssertAndContinueExpr.ts:59
↓ 17 callersFunctioninlineSingleUseLetBindingsAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseLetBindingsAndReturnRoot.ts:36
↓ 17 callersFunctionisTirType
( thing: any )
packages/pebble/src/compiler/tir/types/TirType.ts:39
↓ 16 callersFunctioncompileSrc
* Built-in `Show` interface coverage. * * Every Pebble type with a built-in `_showIR` lowering should support * `.show()` returning UTF-8 bytes (he
packages/pebble/src/compiler/__tests__/compiler.show.test.ts:18
↓ 16 callersFunctioninferTypeArgs
( formal: TirType, actual: TirType, env: Map<symbol, TirType> )
packages/pebble/src/compiler/tir/types/utils/inferTypeArgs.ts:24
↓ 16 callersFunctionletApp
* IR-level unit tests for the single-use let inliner. * * These build minimal synthetic IR trees that exercise each branch of * the inliner's decis
packages/pebble/src/IR/toUPLC/subRoutines/__tests__/inlineSingleUseLetBindings.test.ts:27
↓ 16 callersFunctiontestParse
( src: string, log: boolean = false )
packages/pebble/src/parser/__test__/parse.test.ts:6
↓ 15 callersFunctionisIRParentTerm
( stuff: T | undefined )
packages/pebble/src/IR/utils/isIRParentTerm.ts:28
↓ 15 callersFunctionisLetApp
( term: IRTerm, p: symbol )
packages/pebble/src/IR/toUPLC/subRoutines/__tests__/inlineSingleUseLetBindings.test.ts:32
↓ 15 callersFunctionmakeSubst
( tp: TirTypeParam, concrete: TirType )
packages/pebble/src/compiler/tir/types/utils/__tests__/substituteTypeParams.test.ts:90
↓ 15 callersMethodmark
#__PURE__ gets the current state
packages/pebble/src/tokenizer/Tokenizer.ts:743
↓ 15 callersMethodnewBranchChildScope
()
packages/pebble/src/compiler/AstCompiler/AstCompilationCtx.ts:74
↓ 15 callersMethodonlyNameConst
( name: string, range: SourceRange )
packages/pebble/src/ast/nodes/statements/declarations/VarDecl/SimpleVarDecl.ts:38
↓ 15 callersMethodparseTypeExpr
( suppressErrors: boolean = false )
packages/pebble/src/parser/Parser.ts:2244
↓ 15 callersMethodreadonly
()
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:315
↓ 15 callersFunctiontestPath
( relative: string, absolute: string, expected: string | undefined )
packages/pebble/src/compiler/path/__tests__/getAbsolutePath.test.ts:5
↓ 15 callersMethodwalkExpr
( expr: TirExpr )
packages/pebble/src/compiler/SourceTypeMap.ts:326
↓ 14 callersFunction_hoisted_litBytes
( s: string )
packages/pebble/src/compiler/tir/expressions/TirShowExpr.ts:152
↓ 14 callersFunctionapplyAndExpectInt
(uplc: any, arg: UPLCConst, expected: bigint)
packages/pebble/src/compiler/__tests__/export.isExpr.narrowing.test.ts:38
↓ 14 callersMethodbuildWith
( placeholder: TirType )
packages/pebble/src/compiler/tir/types/utils/__tests__/substituteTypeParams.test.ts:37
↓ 14 callersFunctionevalInt1
( uplc: UPLCTerm, n: bigint )
packages/pebble/src/compiler/__tests__/compiler.enum.test.ts:46
↓ 14 callersFunctionexpectClean
( compiler: Compiler, result: { result?: { tag: number } } )
packages/pebble/src/compiler/__tests__/compiler.docExamples.test.ts:34
↓ 14 callersFunctionhashIrData
( data: Uint8Array )
packages/pebble/src/IR/IRHash.ts:31
↓ 14 callersMethodindexOf
( member: string )
packages/pebble/src/compiler/tir/types/TirEnumType.ts:17
↓ 14 callersFunctionrunSrc
* Each runnable Pebble snippet on https://pebble.harmoniclabs.tech is * mirrored here as a `compiler.run(...)` invocation so we catch the moment * a
packages/pebble/src/compiler/__tests__/compiler.docExamples.test.ts:21
↓ 13 callersFunction__getBinOpAssignmentLeftArg
( ctx: AstCompilationCtx, stmt: ExplicitAssignmentStmt, varType: TirType, exprType: TirType )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileAssignmentStmt.ts:250
↓ 13 callersFunction_compileStatement
( ctx: AstCompilationCtx, stmt: BodyStmt )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileStatement.ts:46
↓ 13 callersFunction_exprReplaceParamsAndAssertNoLitContext
( compiler: AstCompiler, expr: PebbleExpr, paramsInternalNamesMap: Map<string, string>, rename
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:1061
↓ 13 callersFunctionapplyAndExpectInt
(uplc: any, arg: UPLCConst, expected: bigint)
packages/pebble/src/compiler/__tests__/compiler.forOf.test.ts:47
↓ 13 callersMethoddefineValue
( valueInfos: IVariableInfos )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:174
↓ 13 callersFunctionirHashToHex
( hash: IRHash )
packages/pebble/src/IR/IRHash.ts:49
↓ 13 callersFunctionisTirStructType
( thing: any )
packages/pebble/src/compiler/tir/types/TirStructType.ts:20
↓ 13 callersMethodsetNewVariableName
( oldName: string, newName: string )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:112
↓ 13 callersFunctionvalueArg
( entries: Array<{ policy: string, tokens: Array<{ name: string, qty: bigint }> }> )
packages/pebble/src/compiler/__tests__/export.valueEquality.test.ts:26
↓ 13 callersMethodwrite
Writes a chunk of data to the stream.
packages/pebble/src/compiler/io/IOutputStream.ts:6
next →1–100 of 2,440, ranked by callers