CostEstimator
CostEstimator estimates variable sizes and custom call costs.
Methods
Section titled “Methods”estimateCallCost()
Section titled “estimateCallCost()”estimateCallCost(
functionName,overloadId,target,args):CallEstimate|undefined
estimateCallCost returns a custom cost estimate for a function call when one is available.
Parameters
Section titled “Parameters”functionName
Section titled “functionName”string
overloadId
Section titled “overloadId”string
target
Section titled “target”AstNode | undefined
AstNode[]
Returns
Section titled “Returns”CallEstimate | undefined
estimateSize()
Section titled “estimateSize()”estimateSize(
element):SizeEstimate|undefined
estimateSize returns a size hint for a variable-width value when one is available.
Parameters
Section titled “Parameters”element
Section titled “element”Returns
Section titled “Returns”SizeEstimate | undefined