@univerjs/engine-formula v0.5.0-beta.1 • Docs
Class: LexerNode
Constructors
new LexerNode()
new LexerNode(): LexerNode
Returns
Methods
addChildren()
addChildren(children): void
Parameters
Parameter | Type |
---|---|
children | string | LexerNode |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:111
addChildrenFirst()
addChildrenFirst(children): void
Parameters
Parameter | Type |
---|---|
children | string | LexerNode |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:115
changeToParent()
changeToParent(newParentLexerNode): void
Parameters
Parameter | Type |
---|---|
newParentLexerNode | LexerNode |
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
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
Parameter | Type |
---|---|
lexerNode | LexerNode |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:162
replaceChild()
replaceChild(lexerNode, newLexerNode): void
Parameters
Parameter | Type |
---|---|
lexerNode | LexerNode |
newLexerNode | LexerNode |
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;
}
Name | Type | Default value | Defined in |
---|---|---|---|
children | (string | LexerNodeJson )[] | childrenSerialization | submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:190 |
ed | number | - | submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:189 |
st | number | - | submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:188 |
token | string | - | 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
Parameter | Type |
---|---|
children | (string | LexerNode )[] |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:107
setDefinedNames()
setDefinedNames(definedNames): void
Parameters
Parameter | Type |
---|---|
definedNames | string [] |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:132
setIndex()
setIndex(st, ed): void
Parameters
Parameter | Type |
---|---|
st | number |
ed | number |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:127
setLambdaId()
setLambdaId(lambdaId): void
Parameters
Parameter | Type |
---|---|
lambdaId | string |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:75
setLambdaParameter()
setLambdaParameter(lambdaParameter): void
Parameters
Parameter | Type |
---|---|
lambdaParameter | string |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:91
setLambdaPrivacyVar()
setLambdaPrivacyVar(lambdaPrivacyVar): void
Parameters
Parameter | Type |
---|---|
lambdaPrivacyVar | LambdaPrivacyVarType |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:83
setParent()
setParent(lexerNode): void
Parameters
Parameter | Type |
---|---|
lexerNode | LexerNode |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:99
setToken()
setToken(token): void
Parameters
Parameter | Type |
---|---|
token | string |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:123