MCPcopy Create free account

hub / github.com/HarmonicLabs/pebble / functions

Functions2,440 in github.com/HarmonicLabs/pebble

↓ 12 callersFunctiondefineDepth
( term: IRTerm, depth: number )
packages/pebble/src/IR/toUPLC/_internal/depth.ts:5
↓ 12 callersFunctiondefineSingleConstructorStruct
( name: string, fields: { [x: string]: TirType }, opts: DefineStructOpts, meth
packages/pebble/src/compiler/tir/program/stdScope/stdScope.ts:262
↓ 12 callersFunctionevalBool2
( uplc: UPLCTerm, a: boolean, b: boolean )
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:21
↓ 12 callersMethodnewChild
()
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:107
↓ 12 callersMethodtoConcreteTirTypeName
()
packages/pebble/src/compiler/tir/types/TirEnumType.ts:28
↓ 12 callersFunctionval
a Value with a single policy/token and the given quantity
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:40
↓ 12 callersFunctionwrapManyStatements
( stmts: TirStmt[] | undefined, range: SourceRange )
packages/pebble/src/compiler/AstCompiler/utils/wrapManyStatementsOrReturnSame.ts:5
↓ 11 callersMethodaddEntry
( start: number, end: number, type: TirType, name?: string, kind?: "expression" | "type-reference" )
packages/pebble/src/compiler/SourceTypeMap.ts:106
↓ 11 callersFunctionasLambda
( bodyBuilder: ( listArg: UPLCTerm ) => UPLCTerm )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:70
↓ 11 callersMethodcheck
* runs the frontend only (parsing + semantic analysis + type checking) * without requiring a contract and without throwing on diagnostics. *
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:238
↓ 11 callersFunctioncompileSrc
( src: string, functionName: string = "main" )
packages/pebble/src/compiler/__tests__/compiler.stdBuiltins.test.ts:6
↓ 11 callersFunctioncontainsVar
( term: IRTerm, sym: symbol )
packages/pebble/src/IR/toUPLC/subRoutines/__tests__/inlineSingleUseLetBindings.test.ts:424
↓ 11 callersFunctiondefineMultiConstructorStruct
( name: string, constrs: { [x: string]: { [x: string]: TirNativeType } }, opts: Define
packages/pebble/src/compiler/tir/program/stdScope/stdScope.ts:324
↓ 11 callersFunctiongetApplicationTerms
( term: IRTerm )
packages/pebble/src/IR/toUPLC/utils/getApplicationTerms.ts:11
↓ 11 callersFunctionirHashToBytes
( hash: IRHash )
packages/pebble/src/IR/IRHash.ts:59
↓ 11 callersMethodlineAt
Determines the line number at the specified position. Starts at `1`.
packages/pebble/src/ast/Source/Source.ts:64
↓ 11 callersFunctionmapArrayLike
( arr: ArrayLike<T>, fn: ( elem: T, idx: number, thisArr: ArrayLike<T> ) => Out )
packages/pebble/src/IR/IRNodes/utils/mapArrayLike.ts:2
↓ 11 callersMethodreadString
(quote: number = 0, isTaggedTemplate: boolean = false)
packages/pebble/src/tokenizer/Tokenizer.ts:812
↓ 11 callersFunctionrunRow
( label: string, term: UPLCTerm, arg: UPLCConst )
packages/pebble/src/compiler/__tests__/bench.headTailVsCase.test.ts:101
↓ 11 callersFunctionrunTestSuite
* Property-test coverage for the `test name( a: int, ... ) { ... }` feature * over the built-in `int` fuzzer. * * A `test` with one or more paramet
packages/pebble/src/compiler/__tests__/compiler.testStmt.property.int.test.ts:20
↓ 11 callersFunctionrunTestSuite
* Unit-test coverage for the `test name() { ... }` language feature. * * A `test` with no parameters is a *unit* test: the compiler synthesises a *
packages/pebble/src/compiler/__tests__/compiler.testStmt.unit.test.ts:19
↓ 11 callersMethodtest
( config?: Partial<CompilerOptions> & { nameFilter?: string | RegExp; propertyIterations?: num
packages/pebble/src/compiler/Compiler.ts:152
↓ 11 callersMethodtoUPLC
( ctx: ToUplcCtx )
packages/pebble/src/IR/IRTerm.ts:39
↓ 10 callersFunction_defineUnambigousAlias
( name: string, tirType: TirType, methodsNames: Map<AstFuncName, TirFuncName> = new Ma
packages/pebble/src/compiler/tir/program/stdScope/stdScope.ts:193
↓ 10 callersFunctionb
()
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:61
↓ 10 callersMethodclone
()
packages/pebble/src/compiler/tir/expressions/TirVariableAccessExpr.ts:33
↓ 10 callersFunctioncmpFn
( op: string )
packages/pebble/src/compiler/__tests__/export.valueComparisons.test.ts:25
↓ 10 callersFunctioncompileExport
* Benchmark: chooseList → IRCase migration. * * Reports compiled UPLC size and (where applicable) CEK CPU/mem budget * for a handful of list-heavy
packages/pebble/src/compiler/__tests__/bench.chooseListToIRCase.test.ts:16
↓ 10 callersFunctiondefineAliasFromProgram
( scope: AstScope, astName: string, existingTirFuncName: string )
packages/pebble/src/compiler/tir/program/stdScope/populateStdNamespace.ts:819
↓ 10 callersFunctionevalAndReport
(label: string, uplc: any, sizeBytes: number, arg: UPLCConst)
packages/pebble/src/compiler/__tests__/bench.dataLowering.test.ts:64
↓ 10 callersFunctionevalBool1
( uplc: UPLCTerm, n: bigint )
packages/pebble/src/compiler/__tests__/compiler.enum.test.ts:51
↓ 10 callersFunctionexportFunction
( srcText: string, functionName: string, encodingStrategy: EncodingStrategy = "default" )
packages/pebble/src/compiler/__tests__/export.untaggedStruct.test.ts:19
↓ 10 callersMethodfromScope
( program: TypedProgram, scope: AstScope )
packages/pebble/src/compiler/AstCompiler/AstCompilationCtx.ts:98
↓ 10 callersFunctiongetStructType
( type: TirType | undefined )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:42
↓ 10 callersMethodisConcrete
()
packages/pebble/src/compiler/tir/types/TirEnumType.ts:22
↓ 10 callersMethodisConst
()
packages/pebble/src/ast/nodes/statements/declarations/VarDecl/SimpleVarDecl.ts:22
↓ 10 callersMethodparseStatement
( { topLevel, isExport }: Partial<ParseStmtOpts> = { topLe
packages/pebble/src/parser/Parser.ts:3474
↓ 10 callersMethodwalkVarDecl
( decl: TirSimpleVarDecl | TirNamedDeconstructVarDecl | TirSingleDeconstructVarDecl | TirArrayLikeDeconstr, is
packages/pebble/src/compiler/SourceTypeMap.ts:508
↓ 9 callersFunction_compileDataEncodedConcreteType
( ctx: AstCompilationCtx, typeExpr: AstTypeExpr, optionalsAsSop: boolean = false )
packages/pebble/src/compiler/AstCompiler/internal/types/_compileDataEncodedConcreteType.ts:13
↓ 9 callersFunction_inlineFromData
( target_t: TirType, dataExprIR: IRTerm, )
packages/pebble/src/compiler/tir/expressions/TirFromDataExpr.ts:80
↓ 9 callersMethod_parseVarDecl
* the parsed variable declaration may or may not have a type and/or an initializer * * this is so that `_parseVarDecl` can be used both whe
packages/pebble/src/parser/Parser.ts:1899
↓ 9 callersMethoddefineUnambigousType
( name: string, tirTypeKey: string, allowsDataEncoding: boolean, methodsNames:
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:234
↓ 9 callersFunctionevalAndRow
(label: string, uplc: any, sizeBytes: number, arg: UPLCConst)
packages/pebble/src/compiler/__tests__/bench.chooseListToIRCase.test.ts:115
↓ 9 callersFunctionexportFlat
* Hermeticity regression tests. * * These guard against process-global compiler state leaking between * compilations. The historical bug: the IR ha
packages/pebble/src/compiler/__tests__/compiler.hermetic.test.ts:22
↓ 9 callersFunctiongetConstInt
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/rewriteNativesAppliedToConstantsAndReturnRoot.ts:598
↓ 9 callersFunctionvalueArg
A literal `(con value …)` UPLC arg holding `[(policy, [(name, qty), …]), …]`.
packages/pebble/src/compiler/__tests__/export.valueOperators.test.ts:28
↓ 8 callersFunction_getMatchedPurposeBlockStatements
( compiler: AstCompiler, methods: FuncDecl[], paramsInternalNamesMap: Map<string, string>, con
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:482
↓ 8 callersFunction_ir_caseList
( listTerm: IRTerm, caseNil: IRTerm, caseCons: IRTerm, consParams?: { head: symbol; tail: symb
packages/pebble/src/IR/tree_utils/_ir_caseList.ts:14
↓ 8 callersFunctionapplyAndExpectInt
(uplc: any, arg: UPLCConst, expected: bigint)
packages/pebble/src/compiler/__tests__/export.untaggedStruct.test.ts:55
↓ 8 callersFunctionassert
( thing: T, message: string = "TypeAssertion failed" )
packages/pebble/src/utils/assert.ts:1
↓ 8 callersFunctioncompileSingleFn
( name: string, src: string )
packages/pebble/src/compiler/__tests__/compiler.enum.test.ts:8
↓ 8 callersMethoddefineType
( name: string, possibleTirTypes: PossibleTirTypes )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:256
↓ 8 callersFunctionevalBool
( uplc: UPLCTerm, a: UPLCConst, b: UPLCConst )
packages/pebble/src/compiler/__tests__/export.valueEquality.test.ts:33
↓ 8 callersFunctionfilterSortedStrArrInplace
( target: string[], source: string[] )
packages/pebble/src/utils/array/filterSortedStrArrInplace.ts:7
↓ 8 callersFunctionfirstArg
(n: bigint)
packages/pebble/src/compiler/__tests__/export.isExpr.narrowing.test.ts:51
↓ 8 callersFunctiongetValueUplc
(value: Value)
packages/pebble/src/compiler/__tests__/export.mintBatch.test.ts:268
↓ 8 callersMethodgetVariable
( name: string )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:171
↓ 8 callersFunctionisDecimal
(c: number)
packages/pebble/src/utils/text.ts:236
↓ 8 callersFunctionisExpressifyFuncParam
( thing: any )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:46
↓ 8 callersMethodresolveType
( name: string )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:279
↓ 8 callersFunctionwriteFile
(filePath: string, content: string)
packages/pebble-cli/src/init/initPebbleProject.ts:138
↓ 7 callersMethodbytes
( b: | Uint8Array )
packages/pebble/src/IR/IRNodes/IRConst.ts:182
↓ 7 callersFunctioncheckOnly
( src: string )
packages/pebble/src/compiler/__tests__/compiler.enum.test.ts:21
↓ 7 callersMethodclone
()
packages/pebble/src/compiler/tir/types/TirEnumType.ts:32
↓ 7 callersMethodclone
()
packages/pebble/src/compiler/tir/expressions/TirFromDataExpr.ts:54
↓ 7 callersMethodcompile
( config?: Partial<CompilerOptions> )
packages/pebble/src/compiler/Compiler.ts:79
↓ 7 callersFunctioncompileSrc
* Backtick-delimited template strings — `` `text ${expr} more text` `` — * compile to a chain of `appendByteString` calls. Each text fragment is * U
packages/pebble/src/compiler/__tests__/compiler.templateStr.test.ts:13
↓ 7 callersMethodencodeBigIntAsVariableLengthBitStream
* source: https://hydra.iohk.io/build/5988492/download/1/plutus-core-specification.pdf#Variable%20length%20data * * Non-empty lists are enc
packages/pebble/src/utils/UPLCFlatUtils/index.ts:67
↓ 7 callersFunctionexpectFullyConcrete
* Walks a TIR type and asserts no `TirTypeParam` is reachable. Catches the * "silent passthrough on missing case" failure mode of `substituteTypePara
packages/pebble/src/compiler/tir/types/utils/__tests__/substituteTypeParams.test.ts:99
↓ 7 callersFunctionexpressifyFuncBody
( ctx: ExpressifyCtx, bodyStmts: TirStmt[], // passed when compiling loops loopReplacements: L
packages/pebble/src/compiler/TirCompiler/expressify/expressify.ts:81
↓ 7 callersFunctiongetAbsolutePath
(relativePath: string, absolutePath: string)
packages/pebble/src/compiler/path/getAbsolutePath.ts:99
↓ 7 callersFunctiongetValueUplc
(value: Value)
packages/pebble/src/compiler/__tests__/export.valueOf.test.ts:230
↓ 7 callersFunctionisTirVarDecl
( thing: any )
packages/pebble/src/compiler/tir/statements/TirVarDecl/TirVarDecl.ts:19
↓ 7 callersFunctionmoveStmt
( stmts: TopLevelStmt[], fromIdx: number, toIdx: number )
packages/pebble/src/parser/hoistStatementsInplace.ts:14
↓ 7 callersFunctionnativeTagToString
( nativeTag: IRNativeTag )
packages/pebble/src/IR/IRNodes/IRNative/IRNativeTag.ts:191
↓ 7 callersMethodnewChildScope
( infos: Partial<ScopeInfos> )
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:317
↓ 7 callersMethodparseBlockStmt
( topLevel: boolean = false )
packages/pebble/src/parser/Parser.ts:3736
↓ 7 callersFunctionparseLoose
(input: string)
packages/pebble/src/utils/semverSatisfies.ts:11
↓ 7 callersMethodparseStruct
( structDeclFlags: StructDeclAstFlags, flags = CommonFlags.Const, startPos?: number
packages/pebble/src/parser/Parser.ts:1427
↓ 7 callersFunctionrunTestSuite
* Property-test coverage for the `test name( x: boolean, ... ) { ... }` * feature over the built-in `boolean` fuzzer. * * `boolean` parameters are
packages/pebble/src/compiler/__tests__/compiler.testStmt.property.bool.test.ts:17
↓ 7 callersFunctionsecondArg
(k: bigint)
packages/pebble/src/compiler/__tests__/export.isExpr.narrowing.test.ts:53
↓ 6 callersFunction_compileVarDecl
( ctx: AstCompilationCtx, decl: VarDecl, typeHint: TirType | undefined, // coming from deconstruct
packages/pebble/src/compiler/AstCompiler/internal/statements/_compileVarStmt.ts:45
↓ 6 callersFunction_defineStdUnambigous
( t: TirType )
packages/pebble/src/compiler/tir/program/stdScope/stdScope.ts:56
↓ 6 callersFunction_inlineToData
( origin_t: TirType, exprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirToDataExpr.ts:93
↓ 6 callersFunction_showIR
( origin_t: TirType, exprIR: IRTerm )
packages/pebble/src/compiler/tir/expressions/TirShowExpr.ts:96
↓ 6 callersFunctioncanCastToData
( a: TirType )
packages/pebble/src/compiler/tir/types/utils/canCastTo.ts:166
↓ 6 callersFunctioncompileSingleFn
( name: string, src: string )
packages/pebble/src/compiler/__tests__/export.valueEquality.test.ts:12
↓ 6 callersFunctioncompileSingleFn
Compile a single-function pebble program and return its parsed UPLC body.
packages/pebble/src/compiler/__tests__/export.valueOperators.test.ts:13
↓ 6 callersFunctioncompileSrc
( src: string, functionName: string = "main" )
packages/pebble/src/compiler/__tests__/compiler.interfaceConstraints.test.ts:6
↓ 6 callersFunctioncurrChildHash
()
packages/pebble/src/IR/toUPLC/_internal/_modifyChildFromTo.ts:53
↓ 6 callersFunctionfmt
(n: bigint | number)
packages/pebble/src/compiler/__tests__/bench.listVsArrayAccess.test.ts:64
↓ 6 callersFunctiongetUnboundedVars
( term: IRTerm, knownVars?: Set<symbol> | undefined )
packages/pebble/src/IR/toUPLC/subRoutines/handleLetted/groupByScope.ts:104
↓ 6 callersMethodhasFlag
(flag: StructDeclAstFlags)
packages/pebble/src/ast/nodes/statements/declarations/StructDecl.ts:39
↓ 6 callersMethodintroducedVars
()
packages/pebble/src/compiler/tir/statements/TirVarDecl/TirSimpleVarDecl.ts:58
↓ 6 callersFunctionioApi
()
packages/pebble/src/compiler/__tests__/compiler.compilerVersion.test.ts:7
↓ 6 callersFunctionisLineBreak
(c: number)
packages/pebble/src/utils/text.ts:142
↓ 6 callersMethodisNextTokenOnNewLine
()
packages/pebble/src/tokenizer/Tokenizer.ts:669
↓ 6 callersFunctioniterTree
( _term: IRTerm, fn: ( elem: IRTerm, dbn: number ) => (boolean | undefined | void), // necessary f
packages/pebble/src/IR/toUPLC/_internal/iterTree.ts:13
↓ 6 callersMethodnewChild
()
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:53
↓ 6 callersFunctionnormalizeEnumToInt
( t: TirType, int_t: TirIntT )
packages/pebble/src/compiler/tir/types/utils/normalizeEnumToInt.ts:13
← previousnext →101–200 of 2,440, ranked by callers