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


Class: Lexer

Extends

Constructors

new Lexer()

new Lexer(
   _definedNamesService, 
   _lexerTreeBuilder, 
   _formulaCurrentConfigService): Lexer

Parameters

ParameterType
_definedNamesServiceIDefinedNamesService
_lexerTreeBuilderLexerTreeBuilder
_formulaCurrentConfigServiceIFormulaCurrentConfigService

Returns

Lexer

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/engine-formula/src/engine/analysis/lexer.ts:28

Properties

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

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

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


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


treeBuilder()

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

Parameters

ParameterTypeDefault value
formulaStringstringundefined
transformSuffixbooleantrue

Returns

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

Defined in

submodules/univer/packages/engine-formula/src/engine/analysis/lexer.ts:36