@univerjs/engine-formula v0.5.4


Class: Lexer

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer.ts:27

Extends

Constructors

new Lexer()

new Lexer(
   _definedNamesService, 
   _lexerTreeBuilder, 
   _formulaCurrentConfigService): Lexer

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

Parameters

ParameterType
_definedNamesServiceIDefinedNamesService
_lexerTreeBuilderLexerTreeBuilder
_formulaCurrentConfigServiceIFormulaCurrentConfigService

Returns

Lexer

Overrides

Disposable.constructor

Properties

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

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


treeBuilder()

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

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

Parameters

ParameterTypeDefault value
formulaStringstringundefined
transformSuffixbooleantrue

Returns

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