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
↓ 2 callers
Function
_ir_or
( left: IRTerm, right: IRTerm )
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:1204
↓ 2 callers
Function
_ir_valueStrictLess
strict Value `lo < hi`
packages/pebble/src/compiler/tir/expressions/binary/TirBinaryExpr.ts:42
↓ 2 callers
Method
_lookupLinearMap
(keyT: TirType, valT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:903
↓ 2 callers
Function
_readWord
( text: string, pos: number )
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:2138
↓ 2 callers
Method
_some
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:923
↓ 2 callers
Function
_uniqueFuncName
* Returns a function name that does not appear in the source text. * Starts with `baseName` and appends an incrementing suffix if needed.
packages/pebble/src/compiler/AstCompiler/AstCompiler.ts:1819
↓ 2 callers
Function
abs
( n: bigint )
packages/pebble/src/compiler/__tests__/export.ecd.test.ts:8
↓ 2 callers
Function
addBudget
( a: TestBudget, b: TestBudget )
packages/pebble/src/compiler/test/TestResult.ts:46
↓ 2 callers
Function
addLetted
( l: IRLetted )
packages/pebble/src/IR/utils/showIR.ts:101
↓ 2 callers
Method
allVars
()
packages/pebble/src/IR/toUPLC/ctx/ToUplcCtx.ts:93
↓ 2 callers
Method
andMaskOfLength
* returns a ```bigint``` of that as the last ```n``` bits setted to ones; * * example * ```ts * BitUtils.getMaskOfLength( 7 ) ===
packages/pebble/src/utils/BitUtils/index.ts:42
↓ 2 callers
Method
bytesMembers
()
packages/pebble/src/compiler/SourceTypeMap.ts:257
↓ 2 callers
Function
canAssignStruct
( a: TirStructType | TirAliasType<TirStructType>, b: TirStructType | TirAliasType<TirStructType>,
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:324
↓ 2 callers
Function
canBeUInteger
( something: any )
packages/pebble/src/utils/ints.ts:5
↓ 2 callers
Method
clone
()
packages/pebble/src/compiler/AstCompiler/scope/AstScope.ts:448
↓ 2 callers
Function
compile
( src: string )
packages/pebble/src/compiler/__tests__/compiler.communityBugs.0_3_5.test.ts:11
↓ 2 callers
Function
compileExport
* Benchmark: computing the length of a `List<int>`. * * Two strategies compared: * * 1. NATIVE — `xs.length()` (== `std.list.length(xs)`). Lowe
packages/pebble/src/compiler/__tests__/bench.listLength.test.ts:31
↓ 2 callers
Method
create
Creates a new diagnostic message of the specified category.
packages/pebble/src/diagnostics/DiagnosticMessage.ts:41
↓ 2 callers
Function
deltaPct
(reference: bigint, candidate: bigint)
packages/pebble/src/compiler/__tests__/bench.listLength.test.ts:80
↓ 2 callers
Method
deps
()
packages/pebble/src/compiler/tir/statements/TirMatchStmt.ts:71
↓ 2 callers
Method
deps
()
packages/pebble/src/compiler/tir/statements/TirIfStmt.ts:48
↓ 2 callers
Method
deps
()
packages/pebble/src/compiler/tir/expressions/TirFuncExpr.ts:119
↓ 2 callers
Method
deps
()
packages/pebble/src/compiler/tir/expressions/TirCaseExpr.ts:97
↓ 2 callers
Function
diagnosticCategoryToString
(category: DiagnosticCategory)
packages/pebble/src/diagnostics/DiagnosticCategory.ts:17
↓ 2 callers
Function
digitToBytes
( n: IRTerm )
packages/pebble/src/IR/tree_utils/intToUtf8Bytes.ts:28
↓ 2 callers
Method
ensureSorted
()
packages/pebble/src/compiler/SourceTypeMap.ts:114
↓ 2 callers
Method
entry
( dependent: Source )
packages/pebble/src/compiler/AstCompiler/utils/deps/ResolveStackNode.ts:9
↓ 2 callers
Method
equalListOf
( type: TirType )
packages/pebble/src/IR/IRNodes/IRNative/index.ts:323
↓ 2 callers
Function
eval1
( v: boolean )
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:103
↓ 2 callers
Function
evalBool1
( uplc: UPLCTerm, a: boolean )
packages/pebble/src/compiler/__tests__/export.boolCaseLowering.test.ts:29
↓ 2 callers
Function
expressify
( func: TirFuncExpr, loopReplacements: LoopReplacements | undefined, program: TypedProgram, pa
packages/pebble/src/compiler/TirCompiler/expressify/expressify.ts:54
↓ 2 callers
Function
expressifyListMethodCall
( ctx: ExpressifyCtx, objectExpr: TirExpr, methodCall: TirCallExpr, methodName: string, li
packages/pebble/src/compiler/TirCompiler/expressify/expressifyVars.ts:891
↓ 2 callers
Function
expressifyTerminatingIfStmt
( parentCtx: ExpressifyCtx, stmt: TirIfStmt, loopReplacements: LoopReplacements | undefined )
packages/pebble/src/compiler/TirCompiler/expressify/expressifyTerminatingIfStmt.ts:9
↓ 2 callers
Function
findPropInImpls
( ctx: AstCompilationCtx, methodsNamesPtr: Map<AstFuncName, TirFuncName>, propName: string )
packages/pebble/src/compiler/AstCompiler/utils/getPropAccessReturnType.ts:209
↓ 2 callers
Method
forgetChachedArrays
()
packages/pebble/src/compiler/AstCompiler/utils/getTirFuncSigTree/TirFuncSigTree.ts:54
↓ 2 callers
Function
formatDiagnosticContext
Formats the diagnostic context for the specified range, optionally with terminal colors.
packages/pebble/src/diagnostics/DiagnosticMessage.ts:192
↓ 2 callers
Function
getConstrDestructPattern
( type: TirSoPStructType, range: SourceRange, initExpr: TirExpr | undefined, constrIndex: numb
packages/pebble/src/compiler/TirCompiler/expressify/expressify.ts:868
↓ 2 callers
Function
getDataFuncSignature
( ctx: AstCompilationCtx, signature: AstFuncType )
packages/pebble/src/compiler/AstCompiler/internal/exprs/_compileFuncExpr.ts:354
↓ 2 callers
Function
getDepthInMaxScope
( term: IRTerm, maxScope: IRTerm )
packages/pebble/src/IR/toUPLC/_internal/lowestCommonAncestor.ts:6
↓ 2 callers
Function
getEnumType
( type: TirType | undefined )
packages/pebble/src/compiler/tir/types/TirEnumType.ts:48
↓ 2 callers
Function
getEnvRelativePath
( filePath: string, projectRoot: string )
packages/pebble/src/compiler/path/getAbsolutePath.ts:70
↓ 2 callers
Method
getExportedSymbols
( srcAbsPathsrcAbsPath: string )
packages/pebble/src/compiler/tir/program/TypedProgram.ts:283
↓ 2 callers
Function
getMaxScope
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleLetted/groupByScope.ts:41
↓ 2 callers
Method
getNOfUsedBits
* @returns the number of bits from the first setted to ```1``` on the left up until the end
packages/pebble/src/utils/BitUtils/index.ts:61
↓ 2 callers
Function
getSortedHoistedSet
( hoistedTerms: HoistedSetEntry[] )
packages/pebble/src/IR/IRNodes/IRHoisted.ts:210
↓ 2 callers
Function
getSortedLettedSet
( lettedTerms: LettedSetEntry[] )
packages/pebble/src/IR/IRNodes/IRLetted.ts:234
↓ 2 callers
Method
getUid
()
packages/pebble/src/compiler/internalVar.ts:46
↓ 2 callers
Method
getVarAccessIR
( name: string )
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:75
↓ 2 callers
Method
getVarAccessSym
( name: string )
packages/pebble/src/compiler/tir/expressions/ToIRTermCtx.ts:61
↓ 2 callers
Function
handleLettedAndReturnRoot
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleLetted/index.ts:26
↓ 2 callers
Function
handleRecursiveTerms
( term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/handleRecursiveTerms.ts:11
↓ 2 callers
Function
hasSourceRange
( obj: any )
packages/pebble/src/ast/nodes/HasSourceRange.ts:8
↓ 2 callers
Function
hashVarSym
( s: symbol )
packages/pebble/src/IR/IRNodes/utils/hashVarSym.ts:25
↓ 2 callers
Method
headList
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:334
↓ 2 callers
Function
i64_low
(value: bigint)
packages/pebble/src/tokenizer/Tokenizer.ts:1529
↓ 2 callers
Function
inferNameWithFile
( result: CallStackSiteInfos, file: string[] )
packages/pebble/src/utils/getCallStackAt/index.ts:308
↓ 2 callers
Method
introduceDeconstrDataLettedFields
( stmt: TirNamedDeconstructVarDecl, lettedInitExpr: TirLettedExpr )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:350
↓ 2 callers
Method
introduceSingleConstrDataLettedFields
( varName: string, structExpr: TirExpr, structType: TirDataStructType )
packages/pebble/src/compiler/TirCompiler/expressify/ExpressifyCtx.ts:267
↓ 2 callers
Function
isAlpha
(c: number)
packages/pebble/src/utils/text.ts:230
↓ 2 callers
Function
isForcedNative
( node: IRTerm )
packages/pebble/src/IR/IRNodes/IRNative/isForcedNative.ts:22
↓ 2 callers
Function
isForcedNativeTag
( tag: IRNativeTag )
packages/pebble/src/IR/IRNodes/IRNative/isForcedNative.ts:5
↓ 2 callers
Method
isHashPresent
()
packages/pebble/src/IR/IRNodes/IRApp.ts:73
↓ 2 callers
Function
isIRConstValue
( value: any )
packages/pebble/src/IR/IRNodes/IRConst.ts:291
↓ 2 callers
Function
isIRConstValueList
( value: any )
packages/pebble/src/IR/IRNodes/IRConst.ts:208
↓ 2 callers
Function
isIdentifier
(str: string)
packages/pebble/src/utils/text.ts:280
↓ 2 callers
Function
isLitteralExpr
( thing: any )
packages/pebble/src/ast/nodes/expr/litteral/LitteralExpr.ts:32
↓ 2 callers
Function
isOctal
(c: number)
packages/pebble/src/utils/text.ts:241
↓ 2 callers
Function
isOptionalEncodingBridge
( from: TirType, to: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:86
↓ 2 callers
Function
isPebbleExpr
( thing: any )
packages/pebble/src/ast/nodes/expr/PebbleExpr.ts:38
↓ 2 callers
Method
isSopNode
()
packages/pebble/src/compiler/AstCompiler/utils/getTirFuncSigTree/TirFuncSigTree.ts:147
↓ 2 callers
Function
isStructOrStructAlias
( type: TirType )
packages/pebble/src/compiler/tir/types/utils/canAssignTo.ts:36
↓ 2 callers
Function
isTirEnumType
( thing: any )
packages/pebble/src/compiler/tir/types/TirEnumType.ts:43
↓ 2 callers
Function
isTirExpr
( thing: any )
packages/pebble/src/compiler/tir/expressions/TirExpr.ts:56
↓ 2 callers
Function
isVarStmt
( node: any )
packages/pebble/src/ast/nodes/statements/VarStmt.ts:16
↓ 2 callers
Function
isWhiteSpace
(c: number)
packages/pebble/src/utils/text.ts:157
↓ 2 callers
Function
keepSortedStrArrInplace
( target: string[], source: string[] )
packages/pebble/src/utils/array/keepSortedArrInplace.ts:7
↓ 2 callers
Function
lookupInUnicodeMap
(code: number, map: number[])
packages/pebble/src/utils/text.ts:658
↓ 2 callers
Function
makeArrayLikeProxy
( arr: ArrayLike<T>, isValidElem: ( elem: T ) => boolean, initModifyElem: ( elem: T ) => T, mo
packages/pebble/src/IR/IRNodes/utils/makeArrayLikeProxy.ts:3
↓ 2 callers
Function
makeBinaryExpr
( token: T, left: PebbleExpr, right: PebbleExpr, range: SourceRange )
packages/pebble/src/ast/nodes/expr/binary/BinaryExpr.ts:83
↓ 2 callers
Function
makeFallbackBody
()
packages/pebble/src/compiler/AstCompiler/internal/_deriveContractBody/_deriveContractBody.ts:1413
↓ 2 callers
Function
makeUnaryPrefixExpr
( token: T, operand: PebbleExpr, range: SourceRange )
packages/pebble/src/ast/nodes/expr/unary/UnaryPrefixExpr.ts:47
↓ 2 callers
Function
markRecursiveHoistsAsForced
( _term: IRTerm )
packages/pebble/src/IR/toUPLC/subRoutines/markRecursiveHoistsAsForced.ts:24
↓ 2 callers
Method
methodsFromMap
( methodsPtr: Map<string, string> )
packages/pebble/src/compiler/SourceTypeMap.ts:219
↓ 2 callers
Method
mkCons
(elemT: TirType)
packages/pebble/src/compiler/tir/expressions/TirNativeFunc.ts:323
↓ 2 callers
Function
nativeToIR
( native: IRNative )
packages/pebble/src/IR/toUPLC/subRoutines/replaceNatives/nativeToIR.ts:907
↓ 2 callers
Method
newChild
( params: symbol[] )
packages/pebble/src/IR/toUPLC/subRoutines/removeUnusuedVarsAndReturnRoot/RemoveUnusedVarsCtx.ts:29
↓ 2 callers
Method
newFunctionChildScope
( returnType: TirType, isMethod: boolean )
packages/pebble/src/compiler/AstCompiler/AstCompilationCtx.ts:56
↓ 2 callers
Method
onlyIdentifier
( identifier: Identifier, flags: CommonFlags )
packages/pebble/src/ast/nodes/statements/declarations/VarDecl/SimpleVarDecl.ts:27
↓ 2 callers
Method
parseEnum
( flags: CommonFlags, startPos: number )
packages/pebble/src/parser/Parser.ts:1738
↓ 2 callers
Method
parseFile
( path: string, src: string, getUid: () => string = defaultSymbolForge.getUid.bind( de
packages/pebble/src/parser/Parser.ts:129
↓ 2 callers
Method
parseFunctionExpr
()
packages/pebble/src/parser/Parser.ts:3162
↓ 2 callers
Method
parseImportDeclaration
()
packages/pebble/src/parser/Parser.ts:1321
↓ 2 callers
Method
parseInterface
( flags: CommonFlags, startPos?: number, )
packages/pebble/src/parser/Parser.ts:1354
↓ 2 callers
Method
parseNamespaceDecl
* parse a namespace body: `{ (private? <member-decl>)* }` * * called with `namespace` already consumed; `startPos` is the position * of
packages/pebble/src/parser/Parser.ts:787
↓ 2 callers
Method
parseParameters
()
packages/pebble/src/parser/Parser.ts:3221
↓ 2 callers
Method
parseTypeParameters
()
packages/pebble/src/parser/Parser.ts:910
↓ 2 callers
Method
parseTypeStmt
( flags: CommonFlags = CommonFlags.None, startPos?: number )
packages/pebble/src/parser/Parser.ts:1087
↓ 2 callers
Method
parseUsingDecl
()
packages/pebble/src/parser/Parser.ts:605
↓ 2 callers
Method
parseUsingPath
* parse a dotted chain of identifiers: `A`, `A.B`, `A.B.C`, ... * used for namespace paths on the RHS of `using` statements.
packages/pebble/src/parser/Parser.ts:693
↓ 2 callers
Function
positiveIntAsBytes
( n: number | bigint )
packages/pebble/src/IR/utils/positiveIntAsBytes.ts:7
← previous
next →
401–500 of 2,440, ranked by callers