API Reference
@univerjs
@univerjs/engine-formula
classes
Asttreebuilder

@univerjs/engine-formula v0.4.2Docs


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

packages/engine-formula/src/engine/analysis/parser.ts:57 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/engine-formula/src/engine/analysis/parser.ts:75 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


parse()

parse(lexerNode): Nullable<BaseAstNode>

Parameters

ParameterType
lexerNodeLexerNode

Returns

Nullable<BaseAstNode>

Defined in

packages/engine-formula/src/engine/analysis/parser.ts:83 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.