UNPKG

@univerjs-pro/engine-formula

Version:

UniverSheet pro base-formula-engine

25 lines (24 loc) 1.3 kB
import { Nullable } from '@univerjs/core'; import { IDefinedNamesServiceParam, IExprTreeNode, IFunctionNames, ISuperTable, LexerTreeBuilder } from '@univerjs/engine-formula'; export declare class LexerTreeProBuilder extends LexerTreeBuilder { private _hasNewExcelFunction; private _lambdaFunctionParameterSet; private _xlpmPrefix; private _xlfnPrefix; private _resetPrefix; private _clearPrefix; getNewFormulaWithPrefix(formulaString: string, hasFunction: (functionToken: IFunctionNames) => boolean): string | null; private _generateNewFunctionString; private _handleNewFunctionChild; private _clearFunctionString; private _checkAddBracketForMinus; private _currentUnitId; getFormulaExprTree(formulaString: string, unitId: string, hasFunction: (functionToken: IFunctionNames) => boolean, getDefinedNameName: (unitId: string, name: string) => Nullable<IDefinedNamesServiceParam>, getTable: (unitId: string, tableName: string) => Nullable<ISuperTable>): IExprTreeNode | null; private _generateExprTree; private _handleChildrenForExprTree; private _checkColonNodeForExprTree; private _handleTextNodeForExprTree; private _getTableNameFromStructuredRef; private _handleLambdaForExprTree; private _getCurNodeTypeForExprTree; }