MCPcopy Create free account

hub / github.com/HarmonicLabs/pebble / functions

Functions2,440 in github.com/HarmonicLabs/pebble

↓ 6 callersFunctionrewriteToCaseOverConstAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteToCaseOverConstAndReturnRoot.ts:62
↓ 6 callersMethodsetFuncParam
( name: string, type: TirType )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:128
↓ 6 callersMethodtoAstName
* @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 callersMethodtoJSON
()
packages/pebble/src/IR/IRNodes/IRApp.ts:146
↓ 5 callersFunctionB
( h: string )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:27
↓ 5 callersMethod_compileBackend
( cfg: CompilerOptions, program: TypedProgram, skipFileOutput: boolean = false )
packages/pebble/src/compiler/Compiler.ts:396
↓ 5 callersFunction_compileFuncExpr
( ctx: AstCompilationCtx, expr: FuncExpr, expectedFuncType: TirType | undefined, isMethod: boo
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileFuncExpr.ts:73
↓ 5 callersFunction_compileSopEncodedConcreteType
( ctx: AstCompilationCtx, typeExpr: AstTypeExpr )
packages/pebble/src/compiler/AstCompiler/internal/types/_compileSopEncodedConcreteType.ts:13
↓ 5 callersFunction_fromDataUplcFunc
( _target_t: TirType )
packages/pebble/src/compiler/tir/expressions/TirFromDataExpr.ts:206
↓ 5 callersFunction_loop
( ir: IRTerm, dbn: number )
packages/pebble/src/IR/utils/showIR.ts:32
↓ 5 callersFunctionapplyNarrowingsToScope
( scope: AstScope, narrowings: IsNarrowing[] )
packages/pebble/src/compiler/AstCompiler/utils/extractIsNarrowings.ts:149
↓ 5 callersFunctionassertNoIfThenElse
Pretty-printed UPLC must NOT mention `ifThenElse` after bool case lowering.
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:51
↓ 5 callersMethodclone
()
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:68
↓ 5 callersMethodclone
()
packages/pebble/src/IR/IRNodes/IRNative/index.ts:132
↓ 5 callersMethodcompileFile
( path: string, isEntryFile = false )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:336
↓ 5 callersFunctioncompileSingleFn
( name: string, src: string )
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:8
↓ 5 callersFunctionconstToString
( ir: IRConst )
packages/pebble/src/IR/utils/showIR.ts:392
↓ 5 callersFunctiondecideCanAssignField
( currentDecision: CanAssign, fieldDecision: CanAssign )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:438
↓ 5 callersMethoddefineGenericType
( tirKey: string, arity: number, mkApplied: ( tyArgs: TirType[] ) => TirType )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:233
↓ 5 callersMethoddefineVar
* @returns the symbol of the defined variable (for eventual `new IRFunc( ... )`)
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:126
↓ 5 callersFunctionexportFunction
(srcText: string, functionName: string)
packages/pebble/src/compiler/__tests__/export.isExpr.narrowing.test.ts:13
↓ 5 callersFunctionextractIsNarrowings
( expr: TirExpr, polarity: boolean )
packages/pebble/src/compiler/AstCompiler/utils/extractIsNarrowings.ts:35
↓ 5 callersFunctionflattenSopNamedDeconstructInplace_addTopDestructToCtx_getNestedDeconstruct
( decl: TirNamedDeconstructVarDecl | TirSingleDeconstructVarDecl, ctx: ExpressifyCtx, /** * T
packages/pebble/src/compiler/TirCompiler/expressify/flattenSopNamedDeconstructInplace_addTopDestructToCtx_getNestedDeconstruct.ts:16
↓ 5 callersFunctionfmt
(n: bigint | number)
packages/pebble/src/compiler/__tests__/bench.listLength.test.ts:60
↓ 5 callersFunctiongetOptTypeArg
( opt_t: TirType )
packages/pebble/src/compiler/tir/types/utils/getOptTypeArg.ts:6
↓ 5 callersFunctiongetVarNameForDbn
( dbn: number )
packages/pebble/src/IR/utils/showIR.ts:23
↓ 5 callersMethodhasDataEncoding
()
packages/pebble/src/compiler/tir/types/TirEnumType.ts:23
↓ 5 callersFunctionheadBuiltin
( listArg: UPLCTerm )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:23
↓ 5 callersFunctionisIRConstPair
( value: any )
packages/pebble/src/IR/IRNodes/IRConst.ts:45
↓ 5 callersMethodnext32
Returns an unsigned 32-bit integer.
packages/pebble/src/compiler/test/fuzz/PRNG.ts:23
↓ 5 callersFunctionnumCodeUnits
(cp: number)
packages/pebble/src/utils/text.ts:226
↓ 5 callersMethodparentCtorIdx
( localIdx: number )
packages/pebble/src/compiler/tir/types/TirStructType.ts:189
↓ 5 callersFunctionparseFile
( path: string, src: string, getUid: () => string = defaultSymbolForge.getUid.bind( defaultSymbolF
packages/pebble/src/parser/parseFile.ts:16
↓ 5 callersFunctionprettyIRText
( _ir: IRTerm, _indent = 2 )
packages/pebble/src/IR/utils/showIR.ts:167
↓ 5 callersFunctionremoveUnusedVarsAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/removeUnusuedVarsAndReturnRoot.ts:9
↓ 5 callersMethodrun
( config?: Partial<CompilerOptions> )
packages/pebble/src/compiler/Compiler.ts:126
↓ 5 callersFunctionrunIsolated
(srcText: string)
packages/pebble/src/compiler/__tests__/compiler.isExpr.narrowing.test.ts:11
↓ 5 callersFunctiontoNamedDeconstructVarDecl
( varDecl: TirSingleDeconstructVarDecl | TirNamedDeconstructVarDecl )
packages/pebble/src/compiler/TirCompiler/expressify/toNamedDeconstructVarDecl.ts:7
↓ 5 callersMethodtryParseCallExprOrReturnSame
* 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 callersMethodzigzagBigint
( bigint: bigint )
packages/pebble/src/utils/UPLCFlatUtils/index.ts:35
↓ 4 callersFunctionI
( n: number )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:26
↓ 4 callersFunction_compileNamedDeconstructVarDecl
( ctx: AstCompilationCtx, decl: NamedDeconstructVarDecl, typeHint: TirType | undefined, // coming
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:102
↓ 4 callersFunction_getDeconstructedFields
( ctx: AstCompilationCtx, astDeconstruct: ISingleDeconstructVarDecl, ctorDef: TirStructConstr )
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:341
↓ 4 callersFunction_getVarDeclTypeAndExpr
( ctx: AstCompilationCtx, decl: { type: AstTypeExpr | undefined, initExpr: PebbleExpr | undefined, ran
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:392
↓ 4 callersFunction_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 callersFunction_isWhitespace
( ch: number )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:2133
↓ 4 callersFunction_toDataUplcFunc
( origin_t: TirType )
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:171
↓ 4 callersFunctionaddHoisted
( h: IRHoisted )
packages/pebble/src/IR/utils/showIR.ts:82
↓ 4 callersMethodanonymous
* usually used for anonymous arrow functions
packages/pebble/src/ast/nodes/common/Identifier.ts:25
↓ 4 callersFunctionapply
( u: any, ...consts: any[] )
packages/pebble/src/compiler/__tests__/compiler.orderbookBugs.0_3_5.test.ts:21
↓ 4 callersFunctionarithFn
( body: string )
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:148
↓ 4 callersMethodbodyBlockStmt
()
packages/pebble/src/ast/nodes/expr/functions/FuncExpr.ts:44
↓ 4 callersFunctionc
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:63
↓ 4 callersFunctioncanAssignToOptional
( type: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:55
↓ 4 callersFunctionchunks3Test
( n : number )
packages/pebble/src/utils/UPLCFlatUtils/__tests__/encodeBigIntAsVaraibleLengthBitStream.test.ts:82
↓ 4 callersFunctioncompileContract
(srcText: string)
packages/pebble/src/compiler/__tests__/bench.chooseListToIRCase.test.ts:48
↓ 4 callersFunctioncompileExport
* 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 callersFunctioncompileIRToUPLC
( term: IRTerm, paritalOptions: Partial<CompilerOptions> = defaultOptions )
packages/pebble/src/IR/toUPLC/compileIRToUPLC.ts:31
↓ 4 callersFunctioncountVar
( term: IRTerm, sym: symbol )
packages/pebble/src/IR/toUPLC/subRoutines/__tests__/inlineSingleUseLetBindings.test.ts:411
↓ 4 callersFunctioncurrentCompilationCtx
()
packages/pebble/src/IR/CompilationCtx.ts:40
↓ 4 callersFunctiond
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:64
↓ 4 callersMethoddefinitelyTerminates
()
packages/pebble/src/compiler/tir/statements/TirIfStmt.ts:40
↓ 4 callersFunctiondetermineReassignedVariablesAndReturn
( stmt: TirStmt )
packages/pebble/src/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.ts:97
↓ 4 callersFunctiondirname
Obtains the directory portion of a normalized path.
packages/pebble/src/compiler/path/path.ts:85
↓ 4 callersFunctione
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:127
↓ 4 callersMethodeq
( other: TirTypeParam )
packages/pebble/src/compiler/tir/types/TirTypeParam.ts:45
↓ 4 callersFunctionexpressifyIfBranch
( ctx: ExpressifyCtx, branch: TirStmt, reassignedNames: string[], sop: TirSoPStructType, l
packages/pebble/src/compiler/TirCompiler/expressify/expressifyIfBranch.ts:25
↓ 4 callersFunctionfillLow
(p: Partial3)
packages/pebble/src/utils/semverSatisfies.ts:34
↓ 4 callersFunctiongetCanAssign
( a: TirType, b: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:114
↓ 4 callersFunctiongetHoistedTerms
( irTerm: IRTerm )
packages/pebble/src/IR/IRNodes/IRHoisted.ts:259
↓ 4 callersFunctiongetLettedTerms
( irTerm: IRTerm, options?: Partial<GetLettedTermsOptions> )
packages/pebble/src/IR/IRNodes/IRLetted.ts:306
↓ 4 callersFunctionhandleHoistedAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts:19
↓ 4 callersFunctionhoistedToStr
( ir: IRHoisted )
packages/pebble/src/IR/utils/showIR.ts:382
↓ 4 callersFunctioninputsOf
( res: TestResult )
packages/pebble/src/compiler/__tests__/compiler.testStmt.property.int.test.ts:98
↓ 4 callersFunctionisClosedIRTerm
( term: IRTerm )
packages/pebble/src/IR/utils/isClosedIRTerm.ts:62
↓ 4 callersFunctionisColorsEnabled
()
packages/pebble/src/utils/terminal.ts:29
↓ 4 callersFunctionisExplicitAssignmentStmt
( stmt: any )
packages/pebble/src/ast/nodes/statements/AssignmentStmt.ts:120
↓ 4 callersFunctionisIdentifierPart
(cp: number)
packages/pebble/src/utils/text.ts:271
↓ 4 callersFunctionisIdentifierStart
(cp: number)
packages/pebble/src/utils/text.ts:262
↓ 4 callersFunctionisPropAccessExpr
( thing: any )
packages/pebble/src/ast/nodes/expr/PropAccessExpr.ts:43
↓ 4 callersFunctionisSingleConstrStruct
( type: TirType )
packages/pebble/src/compiler/TirCompiler/expressify/isSingleConstrStruct.ts:5
↓ 4 callersFunctionisTirBinaryExpr
( thing: any )
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:84
↓ 4 callersFunctionisTirOptType
( t: any )
packages/pebble/src/compiler/tir/types/TirNativeType/native/Optional/isTirOptType.ts:5
↓ 4 callersFunctionlettedToStr
( ir: IRLetted )
packages/pebble/src/IR/utils/showIR.ts:387
↓ 4 callersFunctionmodifyTermAndPushToReprocess
( current: IRTerm, newTerm: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteToCaseOverConstAndReturnRoot.ts:66
↓ 4 callersMethodparseFuncDecl
( flags: CommonFlags, startPos?: number, defaultReturnType?: AstTypeExpr | undefined
packages/pebble/src/parser/Parser.ts:1694
↓ 4 callersMethodparseIdentifier
( startRange?: SourceRange | undefined )
packages/pebble/src/parser/Parser.ts:2201
↓ 4 callersMethodparseVarStmt
( flags: CommonFlags, startPos: number, opts: Partial<ParseVarOpts> = defaultParseVarO
packages/pebble/src/parser/Parser.ts:1810
↓ 4 callersMethodreadHexBytes
()
packages/pebble/src/tokenizer/Tokenizer.ts:1055
↓ 4 callersMethodreadInteger
()
packages/pebble/src/tokenizer/Tokenizer.ts:1023
↓ 4 callersFunctionremoveSingleDotDirsFromPath
* 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 callersFunctionreplaceWithBody
( root: IRTerm, app: IRTerm, body: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/inlineSingleUseLetBindingsAndReturnRoot.ts:174
↓ 4 callersFunctionresolvePath
(filename: string, baseDir: string)
packages/pebble-cli/src/utils/crateFsIo.ts:6
↓ 4 callersMethodresolveValue
( name: string )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:189
↓ 4 callersFunctionrewriteNativesAppliedToConstantsAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:18
↓ 4 callersMethodrun
* 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 callersFunctionrunTestSuite
* 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 callersFunctionsanifyTree
(ir: IRTerm)
packages/pebble/src/IR/toUPLC/subRoutines/sanifyTree.ts:9
↓ 4 callersMethodsig
()
packages/pebble/src/compiler/tir/expressions/TirFuncExpr.ts:24
↓ 4 callersMethodskipStatement
Skips over a statement on errors in an attempt to reduce unnecessary diagnostic noise.
packages/pebble/src/parser/Parser.ts:4562
← previousnext →201–300 of 2,440, ranked by callers