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

@univerjs/engine-formula v0.4.2Docs


Class: Lexer

Extends

Constructors

new Lexer()

new Lexer(
   _definedNamesService, 
   _lexerTreeBuilder, 
   _formulaCurrentConfigService): Lexer

Parameters

ParameterType
_definedNamesServiceIDefinedNamesService
_lexerTreeBuilderLexerTreeBuilder
_formulaCurrentConfigServiceIFormulaCurrentConfigService

Returns

Lexer

Overrides

Disposable.constructor

Defined in

packages/engine-formula/src/engine/analysis/lexer.ts:28 (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

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (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)


treeBuilder()

treeBuilder(formulaString, transformSuffix): undefined | VALUE | LexerNode | (string | LexerNode)[]

Parameters

ParameterTypeDefault value
formulaStringstringundefined
transformSuffixbooleantrue

Returns

undefined | VALUE | LexerNode | (string | LexerNode)[]

Defined in

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


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