@univerjs/engine-formula v0.5.0-beta.1Docs


Class: AstTreeBuilder

Extends

Constructors

new AstTreeBuilder()

new AstTreeBuilder(
   _runtimeService, 
   _astRootNodeFactory, 
   _functionNodeFactory, 
   _lambdaNodeFactory, 
   _lambdaParameterNodeFactory, 
   _operatorNodeFactory, 
   _prefixNodeFactory, 
   _referenceNodeFactory, 
   _suffixNodeFactory, 
   _unionNodeFactory, 
   _valueNodeFactory): AstTreeBuilder

Parameters

ParameterType
_runtimeServiceIFormulaRuntimeService
_astRootNodeFactoryAstRootNodeFactory
_functionNodeFactoryFunctionNodeFactory
_lambdaNodeFactoryLambdaNodeFactory
_lambdaParameterNodeFactoryLambdaParameterNodeFactory
_operatorNodeFactoryOperatorNodeFactory
_prefixNodeFactoryPrefixNodeFactory
_referenceNodeFactoryReferenceNodeFactory
_suffixNodeFactorySuffixNodeFactory
_unionNodeFactoryUnionNodeFactory
_valueNodeFactoryValueNodeFactory

Returns

AstTreeBuilder

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/engine-formula/src/engine/analysis/parser.ts:53

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

submodules/univer/packages/engine-formula/src/engine/analysis/parser.ts:71


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


parse()

parse(lexerNode): Nullable<BaseAstNode>

Parameters

ParameterType
lexerNodeLexerNode

Returns

Nullable<BaseAstNode>

Defined in

submodules/univer/packages/engine-formula/src/engine/analysis/parser.ts:79