DeclareNewSymbolSyntax
01 Syntax
SMRUCC.Rsharp.Language.Syntax.SyntaxParser.SyntaxImplements.DeclareNewSymbolSyntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| DeclareNewSymbol | 3 | const x as type = xxx |
| getNames | 1 | get tuple names or a single symbol name |
03 Members
const x as type = xxx
Parameters
| Name | Type | Description |
|---|---|---|
code | List(Of Token()) | - |
[readonly] | Boolean | - |
opts | SyntaxBuilderOptions | - |
DeclareNewSymbol(Token(), SyntaxBuilderOptions)
declare a parameter symbol
Parameters
| Name | Type | Description |
|---|---|---|
singleToken | Token() | - |
declare a new parameter with optional default value
Parameters
| Name | Type | Description |
|---|---|---|
symbol | Token() | - |
value | Token() | - |
opts | SyntaxBuilderOptions | - |
funcParameter | Boolean | - |
getNames(Token(), SyntaxBuilderOptions)
get tuple names or a single symbol name
Parameters
| Name | Type | Description |
|---|---|---|
code | Token() | - |
Returns
returns the correct token text or an exception object without stacktrace information