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


Class: LexerNode

Constructors

new LexerNode()

new LexerNode(): LexerNode

Returns

LexerNode

Methods

addChildren()

addChildren(children): void

Parameters

ParameterType
childrenstring | LexerNode

Returns

void

Defined in

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


addChildrenFirst()

addChildrenFirst(children): void

Parameters

ParameterType
childrenstring | LexerNode

Returns

void

Defined in

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


changeToParent()

changeToParent(newParentLexerNode): void

Parameters

ParameterType
newParentLexerNodeLexerNode

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Defined in

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


getChildren()

getChildren(): (string | LexerNode)[]

Returns

(string | LexerNode)[]

Defined in

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


getDefinedNames()

getDefinedNames(): string[]

Returns

string[]

Defined in

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


getFunctionDefinitionPrivacyVar()

getFunctionDefinitionPrivacyVar(): Nullable<LambdaPrivacyVarType>

Returns

Nullable<LambdaPrivacyVarType>

Defined in

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


getLambdaId()

getLambdaId(): Nullable<string>

Returns

Nullable<string>

Defined in

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


getLambdaParameter()

getLambdaParameter(): string

Returns

string

Defined in

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


getParent()

getParent(): Nullable<LexerNode>

Returns

Nullable<LexerNode>

Defined in

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


getStartIndex()

getStartIndex(): number

Returns

number

Defined in

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


getToken()

getToken(): string

Returns

string

Defined in

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


hasDefinedNames()

hasDefinedNames(): boolean

Returns

boolean

Defined in

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


removeChild()

removeChild(lexerNode): void

Parameters

ParameterType
lexerNodeLexerNode

Returns

void

Defined in

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


replaceChild()

replaceChild(lexerNode, newLexerNode): void

Parameters

ParameterType
lexerNodeLexerNode
newLexerNodeLexerNode

Returns

void

Defined in

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


serialize()

serialize(): {
  children: childrenSerialization;
  ed: number;
  st: number;
  token: string;
}

Returns

{
  children: childrenSerialization;
  ed: number;
  st: number;
  token: string;
}
NameTypeDefault valueDefined in
children(string | LexerNodeJson)[]childrenSerializationsubmodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:190
ednumber-submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:189
stnumber-submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:188
tokenstring-submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:187

Defined in

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


setChildren()

setChildren(children): void

Parameters

ParameterType
children(string | LexerNode)[]

Returns

void

Defined in

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


setDefinedNames()

setDefinedNames(definedNames): void

Parameters

ParameterType
definedNamesstring[]

Returns

void

Defined in

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


setIndex()

setIndex(st, ed): void

Parameters

ParameterType
stnumber
ednumber

Returns

void

Defined in

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


setLambdaId()

setLambdaId(lambdaId): void

Parameters

ParameterType
lambdaIdstring

Returns

void

Defined in

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


setLambdaParameter()

setLambdaParameter(lambdaParameter): void

Parameters

ParameterType
lambdaParameterstring

Returns

void

Defined in

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


setLambdaPrivacyVar()

setLambdaPrivacyVar(lambdaPrivacyVar): void

Parameters

ParameterType
lambdaPrivacyVarLambdaPrivacyVarType

Returns

void

Defined in

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


setParent()

setParent(lexerNode): void

Parameters

ParameterType
lexerNodeLexerNode

Returns

void

Defined in

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


setToken()

setToken(token): void

Parameters

ParameterType
tokenstring

Returns

void

Defined in

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