the generator module for the type script definition
TypeScriptDefine
01 Syntax
SMRUCC.Rsharp.Development.CodeAnalysis.TypeScriptDefine
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ExtractModule | 2 | |
| BuildNamespaceTree | 1 | due to the reason of R symbol name may contains the dot symbol and this may confuse the javascript/python syntax, so needs the tree structure to solve this problem |
| MapTypeScriptType | 1 | mapping R# clr type to typescript type mark string |
| ExtractPackage | 2 |
03 Members
ExtractModule(GlobalEnvironment, Package())
extract the typescript module definition
Parameters
| Name | Type | Description |
|---|---|---|
pkg | GlobalEnvironment | - |
Parameters
| Name | Type | Description |
|---|---|---|
pkgs | Package() | modules with the same namespace reference |
ts | TextWriter | - |
BuildNamespaceTree(
String, Package())due to the reason of R symbol name may contains the dot symbol and this may confuse the javascript/python syntax, so needs the tree structure to solve this problem
Parameters
| Name | Type | Description |
|---|---|---|
root | String | - |
pkg | Package() | - |
MapTypeScriptType(RType)
mapping R# clr type to typescript type mark string
Parameters
| Name | Type | Description |
|---|---|---|
type | RType | - |
ExtractPackage(SymbolExpression(),
String)