brighterscript 1.0.0-alpha.15 → 1.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -0
- package/README.md +28 -9
- package/dist/DependencyGraph.js +5 -4
- package/dist/DependencyGraph.js.map +1 -1
- package/dist/DiagnosticMessages.d.ts +16 -1
- package/dist/DiagnosticMessages.js +15 -0
- package/dist/DiagnosticMessages.js.map +1 -1
- package/dist/Logger.js +5 -5
- package/dist/Logger.js.map +1 -1
- package/dist/Program.d.ts +2 -2
- package/dist/Program.js +5 -3
- package/dist/Program.js.map +1 -1
- package/dist/ProgramBuilder.js +1 -1
- package/dist/ProgramBuilder.js.map +1 -1
- package/dist/Scope.d.ts +58 -8
- package/dist/Scope.js +142 -23
- package/dist/Scope.js.map +1 -1
- package/dist/XmlScope.js +1 -1
- package/dist/XmlScope.js.map +1 -1
- package/dist/astUtils/creators.d.ts +10 -6
- package/dist/astUtils/creators.js +93 -12
- package/dist/astUtils/creators.js.map +1 -1
- package/dist/astUtils/creators.spec.js +10 -0
- package/dist/astUtils/creators.spec.js.map +1 -1
- package/dist/astUtils/reflection.d.ts +8 -3
- package/dist/astUtils/reflection.js +18 -2
- package/dist/astUtils/reflection.js.map +1 -1
- package/dist/astUtils/reflection.spec.js +15 -4
- package/dist/astUtils/reflection.spec.js.map +1 -1
- package/dist/astUtils/visitors.d.ts +4 -1
- package/dist/astUtils/visitors.js.map +1 -1
- package/dist/astUtils/visitors.spec.js +2 -0
- package/dist/astUtils/visitors.spec.js.map +1 -1
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.js +2 -2
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.js.map +1 -1
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.js +7 -3
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.js.map +1 -1
- package/dist/{types/FunctionType.spec.d.ts → bscPlugin/transpile/BrsFilePreTranspileProcessor.spec.d.ts} +0 -0
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.spec.js +32 -0
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.spec.js.map +1 -0
- package/dist/diagnosticUtils.js +3 -3
- package/dist/diagnosticUtils.js.map +1 -1
- package/dist/examples/plugins/removePrint.js +12 -14
- package/dist/examples/plugins/removePrint.js.map +1 -1
- package/dist/files/BrsFile.Class.spec.js +3 -3
- package/dist/files/BrsFile.Class.spec.js.map +1 -1
- package/dist/files/BrsFile.d.ts +2 -2
- package/dist/files/BrsFile.js +99 -63
- package/dist/files/BrsFile.js.map +1 -1
- package/dist/files/BrsFile.spec.js +187 -67
- package/dist/files/BrsFile.spec.js.map +1 -1
- package/dist/files/XmlFile.js +3 -3
- package/dist/files/XmlFile.js.map +1 -1
- package/dist/globalCallables.js +79 -79
- package/dist/globalCallables.js.map +1 -1
- package/dist/interfaces.d.ts +43 -4
- package/dist/parser/Expression.d.ts +91 -22
- package/dist/parser/Expression.js +191 -57
- package/dist/parser/Expression.js.map +1 -1
- package/dist/parser/Parser.Class.spec.js +6 -6
- package/dist/parser/Parser.Class.spec.js.map +1 -1
- package/dist/parser/Parser.d.ts +3 -6
- package/dist/parser/Parser.js +166 -155
- package/dist/parser/Parser.js.map +1 -1
- package/dist/parser/Parser.spec.js +61 -6
- package/dist/parser/Parser.spec.js.map +1 -1
- package/dist/parser/SGTypes.d.ts +2 -2
- package/dist/parser/SGTypes.js +2 -2
- package/dist/parser/SGTypes.js.map +1 -1
- package/dist/parser/Statement.d.ts +85 -57
- package/dist/parser/Statement.js +228 -173
- package/dist/parser/Statement.js.map +1 -1
- package/dist/parser/tests/statement/For.spec.d.ts +1 -0
- package/dist/parser/tests/statement/For.spec.js +46 -0
- package/dist/parser/tests/statement/For.spec.js.map +1 -0
- package/dist/parser/tests/statement/ForEach.spec.d.ts +1 -0
- package/dist/parser/tests/statement/ForEach.spec.js +37 -0
- package/dist/parser/tests/statement/ForEach.spec.js.map +1 -0
- package/dist/parser/tests/statement/InterfaceStatement.spec.js +181 -0
- package/dist/parser/tests/statement/InterfaceStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/TryCatch.spec.js +7 -5
- package/dist/parser/tests/statement/TryCatch.spec.js.map +1 -1
- package/dist/types/ArrayType.js +4 -1
- package/dist/types/ArrayType.js.map +1 -1
- package/dist/types/ArrayType.spec.js +3 -1
- package/dist/types/ArrayType.spec.js.map +1 -1
- package/dist/types/BooleanType.d.ts +4 -2
- package/dist/types/BooleanType.js +7 -2
- package/dist/types/BooleanType.js.map +1 -1
- package/dist/types/BooleanType.spec.js +3 -1
- package/dist/types/BooleanType.spec.js.map +1 -1
- package/dist/types/BscType.d.ts +1 -0
- package/dist/types/BscType.js +16 -1
- package/dist/types/BscType.js.map +1 -1
- package/dist/types/CustomType.js +10 -0
- package/dist/types/CustomType.js.map +1 -1
- package/dist/types/DoubleType.d.ts +2 -0
- package/dist/types/DoubleType.js +7 -2
- package/dist/types/DoubleType.js.map +1 -1
- package/dist/types/DoubleType.spec.js +3 -1
- package/dist/types/DoubleType.spec.js.map +1 -1
- package/dist/types/DynamicType.d.ts +2 -0
- package/dist/types/DynamicType.js +5 -1
- package/dist/types/DynamicType.js.map +1 -1
- package/dist/types/FloatType.d.ts +3 -1
- package/dist/types/FloatType.js +7 -2
- package/dist/types/FloatType.js.map +1 -1
- package/dist/types/FloatType.spec.js +2 -0
- package/dist/types/FloatType.spec.js.map +1 -1
- package/dist/types/FunctionType.d.ts +3 -21
- package/dist/types/FunctionType.js +8 -65
- package/dist/types/FunctionType.js.map +1 -1
- package/dist/types/IntegerType.d.ts +3 -1
- package/dist/types/IntegerType.js +7 -2
- package/dist/types/IntegerType.js.map +1 -1
- package/dist/types/IntegerType.spec.js +3 -1
- package/dist/types/IntegerType.spec.js.map +1 -1
- package/dist/types/InterfaceType.d.ts +13 -10
- package/dist/types/InterfaceType.js +33 -29
- package/dist/types/InterfaceType.js.map +1 -1
- package/dist/types/InterfaceType.spec.js +36 -16
- package/dist/types/InterfaceType.spec.js.map +1 -1
- package/dist/types/InvalidType.d.ts +4 -2
- package/dist/types/InvalidType.js +7 -2
- package/dist/types/InvalidType.js.map +1 -1
- package/dist/types/InvalidType.spec.js +2 -0
- package/dist/types/InvalidType.spec.js.map +1 -1
- package/dist/types/LazyType.js +4 -0
- package/dist/types/LazyType.js.map +1 -1
- package/dist/types/LongIntegerType.d.ts +3 -1
- package/dist/types/LongIntegerType.js +7 -2
- package/dist/types/LongIntegerType.js.map +1 -1
- package/dist/types/LongIntegerType.spec.js +2 -0
- package/dist/types/LongIntegerType.spec.js.map +1 -1
- package/dist/types/ObjectType.d.ts +2 -1
- package/dist/types/ObjectType.js +4 -2
- package/dist/types/ObjectType.js.map +1 -1
- package/dist/types/StringType.d.ts +4 -2
- package/dist/types/StringType.js +7 -2
- package/dist/types/StringType.js.map +1 -1
- package/dist/types/StringType.spec.js +2 -0
- package/dist/types/StringType.spec.js.map +1 -1
- package/dist/types/TypedFunctionType.d.ts +28 -0
- package/dist/types/TypedFunctionType.js +88 -0
- package/dist/types/TypedFunctionType.js.map +1 -0
- package/dist/types/TypedFunctionType.spec.d.ts +1 -0
- package/dist/types/TypedFunctionType.spec.js +37 -0
- package/dist/types/TypedFunctionType.spec.js.map +1 -0
- package/dist/types/UninitializedType.js.map +1 -1
- package/dist/types/VoidType.d.ts +4 -2
- package/dist/types/VoidType.js +5 -1
- package/dist/types/VoidType.js.map +1 -1
- package/dist/types/helpers.js +7 -2
- package/dist/types/helpers.js.map +1 -1
- package/dist/util.d.ts +2 -2
- package/dist/util.js +39 -46
- package/dist/util.js.map +1 -1
- package/dist/validators/ClassValidator.d.ts +14 -1
- package/dist/validators/ClassValidator.js +129 -82
- package/dist/validators/ClassValidator.js.map +1 -1
- package/package.json +2 -3
- package/dist/types/FunctionType.spec.js +0 -29
- package/dist/types/FunctionType.spec.js.map +0 -1
package/dist/globalCallables.js
CHANGED
|
@@ -6,7 +6,7 @@ const ArrayType_1 = require("./types/ArrayType");
|
|
|
6
6
|
const BooleanType_1 = require("./types/BooleanType");
|
|
7
7
|
const DynamicType_1 = require("./types/DynamicType");
|
|
8
8
|
const FloatType_1 = require("./types/FloatType");
|
|
9
|
-
const
|
|
9
|
+
const TypedFunctionType_1 = require("./types/TypedFunctionType");
|
|
10
10
|
const IntegerType_1 = require("./types/IntegerType");
|
|
11
11
|
const ObjectType_1 = require("./types/ObjectType");
|
|
12
12
|
const StringType_1 = require("./types/StringType");
|
|
@@ -17,7 +17,7 @@ exports.globalFile.parse('');
|
|
|
17
17
|
let mathFunctions = [{
|
|
18
18
|
name: 'Abs',
|
|
19
19
|
shortDescription: 'Returns the absolute value of the argument.',
|
|
20
|
-
type: new
|
|
20
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
21
21
|
file: exports.globalFile,
|
|
22
22
|
params: [{
|
|
23
23
|
name: 'x',
|
|
@@ -28,7 +28,7 @@ let mathFunctions = [{
|
|
|
28
28
|
name: 'Atn',
|
|
29
29
|
shortDescription: 'Returns the arctangent (in radians) of the argument.',
|
|
30
30
|
documentation: '`ATN(X)` returns "the angle whose tangent is X". To get arctangent in degrees, multiply `ATN(X)` by `57.29578`.',
|
|
31
|
-
type: new
|
|
31
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
32
32
|
file: exports.globalFile,
|
|
33
33
|
params: [{
|
|
34
34
|
name: 'x',
|
|
@@ -38,7 +38,7 @@ let mathFunctions = [{
|
|
|
38
38
|
}, {
|
|
39
39
|
name: 'Cdbl',
|
|
40
40
|
shortDescription: 'Returns a single precision float representation of the argument. Someday may return double.',
|
|
41
|
-
type: new
|
|
41
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
42
42
|
file: exports.globalFile,
|
|
43
43
|
params: [{
|
|
44
44
|
name: 'x',
|
|
@@ -48,7 +48,7 @@ let mathFunctions = [{
|
|
|
48
48
|
}, {
|
|
49
49
|
name: 'Cint',
|
|
50
50
|
shortDescription: 'Returns an integer representation of the argument, rounding up from midpoints. CINT(2.1) returns 2; CINT(2.5) returns 3; CINT(-2.2) returns -2; CINT(-2.5) returns -2; CINT(-2.6) returns -3.',
|
|
51
|
-
type: new
|
|
51
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
52
52
|
file: exports.globalFile,
|
|
53
53
|
params: [{
|
|
54
54
|
name: 'x',
|
|
@@ -58,7 +58,7 @@ let mathFunctions = [{
|
|
|
58
58
|
}, {
|
|
59
59
|
name: 'Cos',
|
|
60
60
|
shortDescription: 'Returns the cosine of the argument (argument must be in radians). To obtain the cosine of X when X is in degrees, use CGS(X*.01745329).',
|
|
61
|
-
type: new
|
|
61
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
62
62
|
file: exports.globalFile,
|
|
63
63
|
params: [{
|
|
64
64
|
name: 'x',
|
|
@@ -68,7 +68,7 @@ let mathFunctions = [{
|
|
|
68
68
|
}, {
|
|
69
69
|
name: 'Csng',
|
|
70
70
|
shortDescription: 'Returns a single-precision float representation of the argument.',
|
|
71
|
-
type: new
|
|
71
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
72
72
|
file: exports.globalFile,
|
|
73
73
|
params: [{
|
|
74
74
|
name: 'x',
|
|
@@ -78,7 +78,7 @@ let mathFunctions = [{
|
|
|
78
78
|
}, {
|
|
79
79
|
name: 'Exp',
|
|
80
80
|
shortDescription: 'Returns the "natural exponential" of X, that is, ex. This is the inverse of the LOG function, so X=EXP(LOG(X)).',
|
|
81
|
-
type: new
|
|
81
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
82
82
|
file: exports.globalFile,
|
|
83
83
|
params: [{
|
|
84
84
|
name: 'x',
|
|
@@ -88,7 +88,7 @@ let mathFunctions = [{
|
|
|
88
88
|
}, {
|
|
89
89
|
name: 'Fix',
|
|
90
90
|
shortDescription: 'Returns a truncated representation of the argument. All digits to the right of the decimal point are simply chopped off, so the resultant value is an integer. For non-negative X, FIX(X)=lNT(X). For negative values of X, FIX(X)=INT(X)+1. For example, FIX(2.2) returns 2, and FIX(-2.2) returns -2.',
|
|
91
|
-
type: new
|
|
91
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
92
92
|
file: exports.globalFile,
|
|
93
93
|
params: [{
|
|
94
94
|
name: 'x',
|
|
@@ -98,7 +98,7 @@ let mathFunctions = [{
|
|
|
98
98
|
}, {
|
|
99
99
|
name: 'Int',
|
|
100
100
|
shortDescription: 'Returns an integer representation of the argument, using the largest whole number that is not greater than the argument.. INT(2.5) returns 2; INT(-2.5) returns -3; and INT(1000101.23) returns 10000101.',
|
|
101
|
-
type: new
|
|
101
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
102
102
|
file: exports.globalFile,
|
|
103
103
|
params: [{
|
|
104
104
|
name: 'x',
|
|
@@ -108,7 +108,7 @@ let mathFunctions = [{
|
|
|
108
108
|
}, {
|
|
109
109
|
name: 'Log',
|
|
110
110
|
shortDescription: 'Returns the natural logarithm of the argument, that is, loge(x) or ln(x). This is the inverse of the EXP function, so LOG(EXP(X)) = X. To find the logarithm of a number to another base b, use the formula logb(X) = loge(X) / loge(b). For example, LOG(32767) / LOG(2) returns the logarithm to base 2 of 32767.',
|
|
111
|
-
type: new
|
|
111
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
112
112
|
file: exports.globalFile,
|
|
113
113
|
params: [{
|
|
114
114
|
name: 'x',
|
|
@@ -118,7 +118,7 @@ let mathFunctions = [{
|
|
|
118
118
|
}, {
|
|
119
119
|
name: 'Rnd',
|
|
120
120
|
shortDescription: 'Generates a pseudo-random number using the current pseudo-random "seed number" (generated internally and not accessible to user).returns an integer between 1 and integer inclusive . For example, RND(55) returns a pseudo-random integer greater than zero and less than 56.',
|
|
121
|
-
type: new
|
|
121
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
122
122
|
file: exports.globalFile,
|
|
123
123
|
params: [{
|
|
124
124
|
name: 'range',
|
|
@@ -128,7 +128,7 @@ let mathFunctions = [{
|
|
|
128
128
|
}, {
|
|
129
129
|
name: 'Rnd',
|
|
130
130
|
shortDescription: 'Generates a pseudo-random number using the current pseudo-random "seed number" (generated internally and not accessible to user). Returns a float value between 0 and 1.',
|
|
131
|
-
type: new
|
|
131
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
132
132
|
file: exports.globalFile,
|
|
133
133
|
params: [{
|
|
134
134
|
name: '0',
|
|
@@ -138,7 +138,7 @@ let mathFunctions = [{
|
|
|
138
138
|
}, {
|
|
139
139
|
name: 'Sgn',
|
|
140
140
|
shortDescription: 'The "sign" function: returns -1 for X negative, 0 for X zero, and +1 for X positive.',
|
|
141
|
-
type: new
|
|
141
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
142
142
|
file: exports.globalFile,
|
|
143
143
|
params: [{
|
|
144
144
|
name: 'x',
|
|
@@ -148,7 +148,7 @@ let mathFunctions = [{
|
|
|
148
148
|
}, {
|
|
149
149
|
name: 'Sgn',
|
|
150
150
|
shortDescription: 'The "sign" function: returns -1 for X negative, 0 for X zero, and +1 for X positive.',
|
|
151
|
-
type: new
|
|
151
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
152
152
|
file: exports.globalFile,
|
|
153
153
|
params: [{
|
|
154
154
|
name: 'x',
|
|
@@ -158,7 +158,7 @@ let mathFunctions = [{
|
|
|
158
158
|
}, {
|
|
159
159
|
name: 'Sin',
|
|
160
160
|
shortDescription: 'Returns the sine of the argument (argument must be in radians). To obtain the sine of X when X is in degrees, use SIN(X*.01745329).',
|
|
161
|
-
type: new
|
|
161
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
162
162
|
file: exports.globalFile,
|
|
163
163
|
params: [{
|
|
164
164
|
name: 'x',
|
|
@@ -168,7 +168,7 @@ let mathFunctions = [{
|
|
|
168
168
|
}, {
|
|
169
169
|
name: 'Sqr',
|
|
170
170
|
shortDescription: 'Returns the square root of the argument. SQR(X) is the same as X ^ (1/2), only faster.',
|
|
171
|
-
type: new
|
|
171
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
172
172
|
file: exports.globalFile,
|
|
173
173
|
params: [{
|
|
174
174
|
name: 'x',
|
|
@@ -178,7 +178,7 @@ let mathFunctions = [{
|
|
|
178
178
|
}, {
|
|
179
179
|
name: 'Tan',
|
|
180
180
|
shortDescription: 'Returns the tangent of the argument (argument must be in radians). To obtain the tangent of X when X is in degrees, use TAN(X*.01745329).',
|
|
181
|
-
type: new
|
|
181
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
182
182
|
file: exports.globalFile,
|
|
183
183
|
params: [{
|
|
184
184
|
name: 'x',
|
|
@@ -189,7 +189,7 @@ let mathFunctions = [{
|
|
|
189
189
|
let runtimeFunctions = [{
|
|
190
190
|
name: 'CreateObject',
|
|
191
191
|
shortDescription: 'Creates a BrightScript Component of class classname specified. Return invalid if the object creation fails. Some Objects have optional parameters in their constructor that are passed after name.',
|
|
192
|
-
type: new
|
|
192
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
193
193
|
file: exports.globalFile,
|
|
194
194
|
params: [{
|
|
195
195
|
name: 'name',
|
|
@@ -219,7 +219,7 @@ let runtimeFunctions = [{
|
|
|
219
219
|
}, {
|
|
220
220
|
name: 'Type',
|
|
221
221
|
shortDescription: 'Returns the type of a variable and/or object. See the BrightScript Component specification for a list of types.',
|
|
222
|
-
type: new
|
|
222
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
223
223
|
file: exports.globalFile,
|
|
224
224
|
params: [{
|
|
225
225
|
name: 'variable',
|
|
@@ -233,13 +233,13 @@ let runtimeFunctions = [{
|
|
|
233
233
|
}, {
|
|
234
234
|
name: 'GetGlobalAA',
|
|
235
235
|
shortDescription: 'Each script has a global Associative Array. It can be fetched with this function. ',
|
|
236
|
-
type: new
|
|
236
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
237
237
|
file: exports.globalFile,
|
|
238
238
|
params: []
|
|
239
239
|
}, {
|
|
240
240
|
name: 'Box',
|
|
241
241
|
shortDescription: 'Box() will return an object version of an intrinsic type, or pass through an object if given one.',
|
|
242
|
-
type: new
|
|
242
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
243
243
|
file: exports.globalFile,
|
|
244
244
|
params: [{
|
|
245
245
|
name: 'x',
|
|
@@ -249,7 +249,7 @@ let runtimeFunctions = [{
|
|
|
249
249
|
}, {
|
|
250
250
|
name: 'Run',
|
|
251
251
|
shortDescription: `The Run function can be used to compile and run a script dynamically.\nThe file specified by that path is compiled and run.\nArguments may be passed to the script's Main function, and that script may return a result value.'`,
|
|
252
|
-
type: new
|
|
252
|
+
type: new TypedFunctionType_1.TypedFunctionType(new DynamicType_1.DynamicType()),
|
|
253
253
|
file: exports.globalFile,
|
|
254
254
|
params: [{
|
|
255
255
|
name: 'filename',
|
|
@@ -264,7 +264,7 @@ let runtimeFunctions = [{
|
|
|
264
264
|
}, {
|
|
265
265
|
name: 'Run',
|
|
266
266
|
shortDescription: `The Run function can be used to compile and run a script dynamically.\nAll files specified are compiled together, then run.\nArguments may be passed to the script's Main function, and that script may return a result value.'`,
|
|
267
|
-
type: new
|
|
267
|
+
type: new TypedFunctionType_1.TypedFunctionType(new DynamicType_1.DynamicType()),
|
|
268
268
|
file: exports.globalFile,
|
|
269
269
|
params: [{
|
|
270
270
|
name: 'filename',
|
|
@@ -279,7 +279,7 @@ let runtimeFunctions = [{
|
|
|
279
279
|
}, {
|
|
280
280
|
name: 'Eval',
|
|
281
281
|
shortDescription: `Eval can be used to run a code snippet in the context of the current function. It performs a compile, and then the bytecode execution.\nIf a compilation error occurs, no bytecode execution is performed, and Eval returns an roList with one or more compile errors. Each list entry is an roAssociativeArray with ERRNO and ERRSTR keys describing the error.\nIf compilation succeeds, bytecode execution is performed and the integer runtime error code is returned. These are the same error codes as returned by GetLastRunRuntimeError().\nEval() can be usefully in two cases. The first is when you need to dynamically generate code at runtime.\nThe other is if you need to execute a statement that could result in a runtime error, but you don't want code execution to stop. '`,
|
|
282
|
-
type: new
|
|
282
|
+
type: new TypedFunctionType_1.TypedFunctionType(new DynamicType_1.DynamicType()),
|
|
283
283
|
file: exports.globalFile,
|
|
284
284
|
isDeprecated: true,
|
|
285
285
|
params: [{
|
|
@@ -290,13 +290,13 @@ let runtimeFunctions = [{
|
|
|
290
290
|
}, {
|
|
291
291
|
name: 'GetLastRunCompileError',
|
|
292
292
|
shortDescription: 'Returns an roList of compile errors, or invalid if no errors. Each list entry is an roAssociativeArray with the keys: ERRNO, ERRSTR, FILESPEC, and LINENO.',
|
|
293
|
-
type: new
|
|
293
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
294
294
|
file: exports.globalFile,
|
|
295
295
|
params: []
|
|
296
296
|
}, {
|
|
297
297
|
name: 'GetLastRunRuntimeError',
|
|
298
298
|
shortDescription: 'Returns an error code result after the last script Run().These are normal:\\,&hFF==ERR_OKAY\\n&hFC==ERR_NORMAL_END\\n&hE2==ERR_VALUE_RETURN',
|
|
299
|
-
type: new
|
|
299
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
300
300
|
file: exports.globalFile,
|
|
301
301
|
params: []
|
|
302
302
|
}];
|
|
@@ -304,7 +304,7 @@ let globalUtilityFunctions = [
|
|
|
304
304
|
{
|
|
305
305
|
name: 'Sleep',
|
|
306
306
|
shortDescription: 'This function causes the script to pause for the specified time, without wasting CPU cycles. There are 1000 milliseconds in one second.',
|
|
307
|
-
type: new
|
|
307
|
+
type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
|
|
308
308
|
file: exports.globalFile,
|
|
309
309
|
params: [{
|
|
310
310
|
name: 'milliseconds',
|
|
@@ -314,7 +314,7 @@ let globalUtilityFunctions = [
|
|
|
314
314
|
}, {
|
|
315
315
|
name: 'Wait',
|
|
316
316
|
shortDescription: 'This function waits on objects that are "waitable" (those that have a MessagePort interface). Wait() returns the event object that was posted to the message port. If timeout is zero, "wait" will wait for ever. Otherwise, Wait will return after timeout milliseconds if no messages are received. In this case, Wait returns a type "invalid".',
|
|
317
|
-
type: new
|
|
317
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
318
318
|
file: exports.globalFile,
|
|
319
319
|
params: [{
|
|
320
320
|
name: 'timeout',
|
|
@@ -328,7 +328,7 @@ let globalUtilityFunctions = [
|
|
|
328
328
|
}, {
|
|
329
329
|
name: 'GetInterface',
|
|
330
330
|
shortDescription: 'Each BrightScript Component has one or more interfaces. This function returns a value of type "Interface". \nNote that generally BrightScript Components allow you to skip the interface specification. In which case, the appropriate interface within the object is used. This works as long as the function names within the interfaces are unique.',
|
|
331
|
-
type: new
|
|
331
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
332
332
|
file: exports.globalFile,
|
|
333
333
|
params: [{
|
|
334
334
|
name: 'object',
|
|
@@ -342,7 +342,7 @@ let globalUtilityFunctions = [
|
|
|
342
342
|
}, {
|
|
343
343
|
name: 'FindMemberFunction',
|
|
344
344
|
shortDescription: 'Returns the interface from the object that provides the specified function, or invalid if not found.',
|
|
345
|
-
type: new
|
|
345
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
346
346
|
file: exports.globalFile,
|
|
347
347
|
params: [{
|
|
348
348
|
name: 'object',
|
|
@@ -356,7 +356,7 @@ let globalUtilityFunctions = [
|
|
|
356
356
|
}, {
|
|
357
357
|
name: 'UpTime',
|
|
358
358
|
shortDescription: 'Returns the uptime of the system since the last reboot in seconds.',
|
|
359
|
-
type: new
|
|
359
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
360
360
|
file: exports.globalFile,
|
|
361
361
|
params: [{
|
|
362
362
|
name: 'dummy',
|
|
@@ -366,13 +366,13 @@ let globalUtilityFunctions = [
|
|
|
366
366
|
}, {
|
|
367
367
|
name: 'RebootSystem',
|
|
368
368
|
shortDescription: 'Requests the system to perform a soft reboot. The Roku platform has disabled this feature.',
|
|
369
|
-
type: new
|
|
369
|
+
type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
|
|
370
370
|
file: exports.globalFile,
|
|
371
371
|
params: []
|
|
372
372
|
}, {
|
|
373
373
|
name: 'ListDir',
|
|
374
374
|
shortDescription: 'Returns a List object containing the contents of the directory path specified.',
|
|
375
|
-
type: new
|
|
375
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
376
376
|
file: exports.globalFile,
|
|
377
377
|
params: [{
|
|
378
378
|
name: 'path',
|
|
@@ -382,7 +382,7 @@ let globalUtilityFunctions = [
|
|
|
382
382
|
}, {
|
|
383
383
|
name: 'ReadAsciiFile',
|
|
384
384
|
shortDescription: 'This function reads the specified file and returns the data as a string.\nThe file can be encoded as either UTF-8 (which includes the 7-bit ASCII subset) or UTF-16.\nAn empty string is returned if the file can not be read.',
|
|
385
|
-
type: new
|
|
385
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
386
386
|
file: exports.globalFile,
|
|
387
387
|
params: [{
|
|
388
388
|
name: 'filePath',
|
|
@@ -392,7 +392,7 @@ let globalUtilityFunctions = [
|
|
|
392
392
|
}, {
|
|
393
393
|
name: 'WriteAsciiFile',
|
|
394
394
|
shortDescription: 'This function writes the specified string data to a file at the specified location.\nThe string data is written as UTF-8 encoded (which includes the 7-bit ASCII subset).\nThe function returns true if the file was successfully written.',
|
|
395
|
-
type: new
|
|
395
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
396
396
|
file: exports.globalFile,
|
|
397
397
|
params: [{
|
|
398
398
|
name: 'filePath',
|
|
@@ -406,7 +406,7 @@ let globalUtilityFunctions = [
|
|
|
406
406
|
}, {
|
|
407
407
|
name: 'CopyFile',
|
|
408
408
|
shortDescription: 'Make a copy of a file.',
|
|
409
|
-
type: new
|
|
409
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
410
410
|
file: exports.globalFile,
|
|
411
411
|
params: [{
|
|
412
412
|
name: 'source',
|
|
@@ -420,7 +420,7 @@ let globalUtilityFunctions = [
|
|
|
420
420
|
}, {
|
|
421
421
|
name: 'MoveFile',
|
|
422
422
|
shortDescription: 'Rename a file.',
|
|
423
|
-
type: new
|
|
423
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
424
424
|
file: exports.globalFile,
|
|
425
425
|
params: [{
|
|
426
426
|
name: 'source',
|
|
@@ -444,7 +444,7 @@ A '*' matches zero or more arbitrary characters.
|
|
|
444
444
|
The character class '[...]' matches any single character specified within the brackets. The closing bracket is treated as a member of the character class if it immediately follows the opening bracket. i.e. '[]]' matches a single close bracket. Within the class '-' can be used to specify a range unless it is the first or last character. e.g. '[A-Cf-h]' is equivalent to '[ABCfgh]'.
|
|
445
445
|
A character class can be negated by specifying '^' as the first character. To match a literal '^' place it elsewhere within the class.
|
|
446
446
|
The characters '?', '*' and '[' lose their special meaning if preceded by a single '\\'. A single '\\' can be matched as '\\\\'.`,
|
|
447
|
-
type: new
|
|
447
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ArrayType_1.ArrayType(new StringType_1.StringType())),
|
|
448
448
|
file: exports.globalFile,
|
|
449
449
|
params: [{
|
|
450
450
|
name: 'path',
|
|
@@ -458,7 +458,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
458
458
|
}, {
|
|
459
459
|
name: 'DeleteFile',
|
|
460
460
|
shortDescription: 'Delete the specified file.',
|
|
461
|
-
type: new
|
|
461
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
462
462
|
file: exports.globalFile,
|
|
463
463
|
params: [{
|
|
464
464
|
name: 'file',
|
|
@@ -468,7 +468,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
468
468
|
}, {
|
|
469
469
|
name: 'DeleteDirectory',
|
|
470
470
|
shortDescription: 'Deletes the specified directory. It is only possible to delete an empty directory.',
|
|
471
|
-
type: new
|
|
471
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
472
472
|
file: exports.globalFile,
|
|
473
473
|
params: [{
|
|
474
474
|
name: 'dir',
|
|
@@ -478,7 +478,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
478
478
|
}, {
|
|
479
479
|
name: 'CreateDirectory',
|
|
480
480
|
shortDescription: 'Creates the specified Directory. Only one directory can be created at a time',
|
|
481
|
-
type: new
|
|
481
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
482
482
|
file: exports.globalFile,
|
|
483
483
|
params: [{
|
|
484
484
|
name: 'dir',
|
|
@@ -488,7 +488,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
488
488
|
}, {
|
|
489
489
|
name: 'FormatDrive',
|
|
490
490
|
shortDescription: 'Formats a specified drive using the specified filesystem.',
|
|
491
|
-
type: new
|
|
491
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
492
492
|
file: exports.globalFile,
|
|
493
493
|
params: [{
|
|
494
494
|
name: 'drive',
|
|
@@ -502,7 +502,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
502
502
|
}, {
|
|
503
503
|
name: 'StrToI',
|
|
504
504
|
shortDescription: 'Return the integer value of the string, or 0 if nothing is parsed.',
|
|
505
|
-
type: new
|
|
505
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
506
506
|
file: exports.globalFile,
|
|
507
507
|
params: [{
|
|
508
508
|
name: 'str',
|
|
@@ -512,7 +512,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
512
512
|
}, {
|
|
513
513
|
name: 'RunGarbageCollector',
|
|
514
514
|
shortDescription: `This function runs the garbage collector. It returns and Associative Array with some statistics regarding the garbage collection. \nSee the Garbage Collection section of the manual for more detail. You don't normally need to call this function.`,
|
|
515
|
-
type: new
|
|
515
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
516
516
|
file: exports.globalFile,
|
|
517
517
|
params: []
|
|
518
518
|
}, {
|
|
@@ -522,7 +522,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
|
|
|
522
522
|
Any roAssociativeArray objects in the returned objects will be case sensitive. As of Roku OS 9.4, to return a case-insensitive structure, set the flags parameter to "i".
|
|
523
523
|
If the "i" option is used, and the jsonString includes multiple keys that match case-insensitively, duplicates are overwritten and only the last matching values are preserved.
|
|
524
524
|
An error will be returned if arrays/associative arrays are nested more than 256 levels deep.`,
|
|
525
|
-
type: new
|
|
525
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
526
526
|
file: exports.globalFile,
|
|
527
527
|
params: [{
|
|
528
528
|
name: 'jsonString',
|
|
@@ -545,7 +545,7 @@ An error will be returned if arrays/associative arrays are nested more than 256
|
|
|
545
545
|
If an error occurs an empty string will be returned.
|
|
546
546
|
|
|
547
547
|
Normally non-ASCII characters are escaped in the output string as "\\uXXXX" where XXXX is the hexadecimal representation of the Unicode character value. If flags=1, non-ASCII characters are not escaped.`,
|
|
548
|
-
type: new
|
|
548
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
549
549
|
file: exports.globalFile,
|
|
550
550
|
params: [{
|
|
551
551
|
name: 'object',
|
|
@@ -562,7 +562,7 @@ Normally non-ASCII characters are escaped in the output string as "\\uXXXX" wher
|
|
|
562
562
|
|
|
563
563
|
In some cases you may want to include a placeholder marker in a localizable string that gets dynamically substituted with a value at runtime.
|
|
564
564
|
One way to accomplish that is to use the Replace method on the string value returned from the Tr() lookup.`,
|
|
565
|
-
type: new
|
|
565
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
566
566
|
file: exports.globalFile,
|
|
567
567
|
params: [{
|
|
568
568
|
name: 'source',
|
|
@@ -575,7 +575,7 @@ let globalStringFunctions = [
|
|
|
575
575
|
{
|
|
576
576
|
name: 'UCase',
|
|
577
577
|
shortDescription: 'Converts the string to all upper case.',
|
|
578
|
-
type: new
|
|
578
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
579
579
|
file: exports.globalFile,
|
|
580
580
|
params: [{
|
|
581
581
|
name: 's',
|
|
@@ -585,7 +585,7 @@ let globalStringFunctions = [
|
|
|
585
585
|
}, {
|
|
586
586
|
name: 'LCase',
|
|
587
587
|
shortDescription: 'Converts the string to all lower case.',
|
|
588
|
-
type: new
|
|
588
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
589
589
|
file: exports.globalFile,
|
|
590
590
|
params: [{
|
|
591
591
|
name: 's',
|
|
@@ -595,7 +595,7 @@ let globalStringFunctions = [
|
|
|
595
595
|
}, {
|
|
596
596
|
name: 'Asc',
|
|
597
597
|
shortDescription: 'Returns the Unicode ("ASCII") value for the first character of the specified string\n An empty string argument will return 0.',
|
|
598
|
-
type: new
|
|
598
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
599
599
|
file: exports.globalFile,
|
|
600
600
|
params: [{
|
|
601
601
|
name: 'letter',
|
|
@@ -611,7 +611,7 @@ let globalStringFunctions = [
|
|
|
611
611
|
By using Chr, you can create strings containing characters which cannot be contained in quotes, such as newline or the quote character itself.
|
|
612
612
|
|
|
613
613
|
print (Chr(34) + "hello" + Chr(34)) ' prints: "hello"`,
|
|
614
|
-
type: new
|
|
614
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
615
615
|
file: exports.globalFile,
|
|
616
616
|
params: [{
|
|
617
617
|
name: 'ch',
|
|
@@ -621,7 +621,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
621
621
|
}, {
|
|
622
622
|
name: 'Instr',
|
|
623
623
|
shortDescription: 'Returns the position of the first instances of substring within text, starting at the specified start position.\nReturns 0 if the substring is not found. Unlike the ifString.Instr() method, the first position is 1.',
|
|
624
|
-
type: new
|
|
624
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
625
625
|
file: exports.globalFile,
|
|
626
626
|
params: [{
|
|
627
627
|
name: 'start',
|
|
@@ -639,7 +639,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
639
639
|
}, {
|
|
640
640
|
name: 'Left',
|
|
641
641
|
shortDescription: 'Returns the first n characters of s. ',
|
|
642
|
-
type: new
|
|
642
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
643
643
|
file: exports.globalFile,
|
|
644
644
|
params: [{
|
|
645
645
|
name: 's',
|
|
@@ -653,7 +653,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
653
653
|
}, {
|
|
654
654
|
name: 'Len',
|
|
655
655
|
shortDescription: 'Returns the number of characters in the specified string.',
|
|
656
|
-
type: new
|
|
656
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
657
657
|
file: exports.globalFile,
|
|
658
658
|
params: [{
|
|
659
659
|
name: 's',
|
|
@@ -663,7 +663,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
663
663
|
}, {
|
|
664
664
|
name: 'Mid',
|
|
665
665
|
shortDescription: 'Returns a substring of s with length n and starting at position p.\nn may be omitted, in which case the string starting at p and ending at the end of the string is returned.\nUnlike the ifString.Mid() method, the first character in the string is position 1.',
|
|
666
|
-
type: new
|
|
666
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
667
667
|
file: exports.globalFile,
|
|
668
668
|
params: [{
|
|
669
669
|
name: 's',
|
|
@@ -682,7 +682,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
682
682
|
}, {
|
|
683
683
|
name: 'Right',
|
|
684
684
|
shortDescription: 'Returns the last n characters of s.',
|
|
685
|
-
type: new
|
|
685
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
686
686
|
file: exports.globalFile,
|
|
687
687
|
params: [{
|
|
688
688
|
name: 's',
|
|
@@ -696,7 +696,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
696
696
|
}, {
|
|
697
697
|
name: 'Str',
|
|
698
698
|
shortDescription: 'Converts a value to a string. Str(A), for example, returns a string equal to the decimal representation of the numeric value of A.\nNote: for non-negative numbers, a leading blank is inserted before the value string as a sign placeholder.',
|
|
699
|
-
type: new
|
|
699
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
700
700
|
file: exports.globalFile,
|
|
701
701
|
params: [{
|
|
702
702
|
name: 'value',
|
|
@@ -706,7 +706,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
706
706
|
}, {
|
|
707
707
|
name: 'StrI',
|
|
708
708
|
shortDescription: 'Converts a value to a string. Str(A), for example, returns a string equal to the decimal representation of the numeric value of A.\nNote: for non-negative numbers, a leading blank is inserted before the value string as a sign placeholder. If the radix parameter is provided, then converts the integer value into a string representation using the given radix.\nIf radix is not 2 .. 36 then an empty string is returned.\nNote that the returned string does not include a base prefix and uses lowercase letters to represent those digits in bases greater than 10.',
|
|
709
|
-
type: new
|
|
709
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
710
710
|
file: exports.globalFile,
|
|
711
711
|
params: [{
|
|
712
712
|
name: 'value',
|
|
@@ -720,7 +720,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
720
720
|
}, {
|
|
721
721
|
name: 'string',
|
|
722
722
|
shortDescription: 'Returns a string composed of n copies of the second argument concatenated together.',
|
|
723
|
-
type: new
|
|
723
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
724
724
|
file: exports.globalFile,
|
|
725
725
|
params: [{
|
|
726
726
|
name: 'n',
|
|
@@ -734,7 +734,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
734
734
|
}, {
|
|
735
735
|
name: 'StringI',
|
|
736
736
|
shortDescription: 'Returns a string composed of n copies of the character whose Unicode value is the second argument.',
|
|
737
|
-
type: new
|
|
737
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
738
738
|
file: exports.globalFile,
|
|
739
739
|
params: [{
|
|
740
740
|
name: 'n',
|
|
@@ -748,7 +748,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
748
748
|
}, {
|
|
749
749
|
name: 'Val',
|
|
750
750
|
shortDescription: 'Performs the inverse of the STR function: returns the number represented by the characters in a string argument.\nFor example, if A$="12" and B$="34" then VAL(A$+ "."+B$) returns the number 12.34.',
|
|
751
|
-
type: new
|
|
751
|
+
type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
|
|
752
752
|
file: exports.globalFile,
|
|
753
753
|
params: [{
|
|
754
754
|
name: 'str',
|
|
@@ -758,7 +758,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
758
758
|
}, {
|
|
759
759
|
name: 'Val',
|
|
760
760
|
shortDescription: 'Returns the integer value from parsing the string with the specified radix.\nRadix should be 2 .. 36 or the special value 0 (which automatically identified hexadecimal or octal numbers based on 0x or 0 prefixes respectively).\nLeading whitespace is ignored then as much of the rest of the string will be parsed as valid.',
|
|
761
|
-
type: new
|
|
761
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
762
762
|
file: exports.globalFile,
|
|
763
763
|
params: [{
|
|
764
764
|
name: 'str',
|
|
@@ -772,7 +772,7 @@ By using Chr, you can create strings containing characters which cannot be conta
|
|
|
772
772
|
}, {
|
|
773
773
|
name: 'Substitute',
|
|
774
774
|
shortDescription: 'Replaces all instances of {0} or ^0 in str with arg0. Similarly, replaces all instances of {1} or ^1 with arg1, {2} or ^2 with arg2, and {3} or ^3 with arg3.',
|
|
775
|
-
type: new
|
|
775
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
776
776
|
file: exports.globalFile,
|
|
777
777
|
params: [{
|
|
778
778
|
name: 'str',
|
|
@@ -801,7 +801,7 @@ let programStatementFunctions = [
|
|
|
801
801
|
{
|
|
802
802
|
name: 'Tab',
|
|
803
803
|
shortDescription: 'Moves the cursor to the specified position on the current line (modulo the width of your console if you specify TAB positions greater than the console width). TAB may be used several times in a PRINT list. No punctuation is required after a TAB modifier. Numerical expressions may be used to specify a TAB position. TAB cannot be used to move the cursor to the left. If the cursor is beyond the specified position, the TAB is ignored.',
|
|
804
|
-
type: new
|
|
804
|
+
type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
|
|
805
805
|
file: exports.globalFile,
|
|
806
806
|
params: [{
|
|
807
807
|
name: 'expression',
|
|
@@ -811,7 +811,7 @@ let programStatementFunctions = [
|
|
|
811
811
|
}, {
|
|
812
812
|
name: 'Pos',
|
|
813
813
|
shortDescription: 'Returns a number from 0 to window width, indicating the current cursor position on the cursor. Requires a "dummy argument" (any numeric expression).',
|
|
814
|
-
type: new
|
|
814
|
+
type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
|
|
815
815
|
file: exports.globalFile,
|
|
816
816
|
params: [{
|
|
817
817
|
name: 'x',
|
|
@@ -822,32 +822,32 @@ let programStatementFunctions = [
|
|
|
822
822
|
}, {
|
|
823
823
|
name: 'Roku_Ads',
|
|
824
824
|
shortDescription: 'The main entry point for instantiating the ad interface. This object manages ad server requests, parses ad structure, schedules and renders ads, and triggers tracking beacons.\n\nThe Roku ad parser/renderer object returned has global scope because it is meant to represent interaction with external resources (the ad server and any tracking services) that have persistence and state independent of the ad rendering within a client application.',
|
|
825
|
-
type: new
|
|
825
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
826
826
|
file: exports.globalFile,
|
|
827
827
|
params: []
|
|
828
828
|
}, {
|
|
829
829
|
name: 'bslBrightScriptErrorCodes',
|
|
830
830
|
shortDescription: 'Returns an roAssociativeArray with name value pairs of the error name and corresponding integer value, for example ERR_OKAY = &hFF.',
|
|
831
|
-
type: new
|
|
831
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
832
832
|
file: exports.globalFile,
|
|
833
833
|
params: []
|
|
834
834
|
}, {
|
|
835
835
|
name: 'bslGeneralConstants',
|
|
836
836
|
shortDescription: 'Returns an roAssociativeArray with name value pairs of system constants, for example MAX_INT = 2147483647.',
|
|
837
|
-
type: new
|
|
837
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
838
838
|
file: exports.globalFile,
|
|
839
839
|
params: []
|
|
840
840
|
}, {
|
|
841
841
|
name: 'bslUniversalControlEventCodes',
|
|
842
842
|
shortDescription: 'Returns an roAssociativeArray with name value pairs of the remote key code (buttons) constants, for example BUTTON_SELECT_PRESSED = 6.',
|
|
843
|
-
type: new
|
|
843
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
844
844
|
file: exports.globalFile,
|
|
845
845
|
params: []
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
848
|
name: 'AsciiToHex',
|
|
849
849
|
shortDescription: 'Returns the hex encoded string, for example AsciiToHex("Hi!") = "486921".',
|
|
850
|
-
type: new
|
|
850
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
851
851
|
file: exports.globalFile,
|
|
852
852
|
params: [{
|
|
853
853
|
name: 'ascii',
|
|
@@ -857,7 +857,7 @@ let programStatementFunctions = [
|
|
|
857
857
|
}, {
|
|
858
858
|
name: 'HexToAscii',
|
|
859
859
|
shortDescription: 'Returns a string that is the hex decoded string, for example HexToAscii("486921") = "Hi!".',
|
|
860
|
-
type: new
|
|
860
|
+
type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
|
|
861
861
|
file: exports.globalFile,
|
|
862
862
|
params: [{
|
|
863
863
|
name: 'hex',
|
|
@@ -868,7 +868,7 @@ let programStatementFunctions = [
|
|
|
868
868
|
{
|
|
869
869
|
name: 'HexToInteger',
|
|
870
870
|
shortDescription: 'Returns the integer value of the passed in hex string.',
|
|
871
|
-
type: new
|
|
871
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
872
872
|
file: exports.globalFile,
|
|
873
873
|
params: [{
|
|
874
874
|
name: 'hex',
|
|
@@ -878,7 +878,7 @@ let programStatementFunctions = [
|
|
|
878
878
|
}, {
|
|
879
879
|
name: 'HexToInteger',
|
|
880
880
|
shortDescription: 'Returns a string that is the hex decoded string, for example HexToAscii("486921") = "Hi!".',
|
|
881
|
-
type: new
|
|
881
|
+
type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
|
|
882
882
|
file: exports.globalFile,
|
|
883
883
|
params: [{
|
|
884
884
|
name: 'hex',
|
|
@@ -894,7 +894,7 @@ ExtraInfo: roAssociativeArray
|
|
|
894
894
|
Regions: roAssociativeArray of name, roRegions pairs
|
|
895
895
|
Animations: roAssociativeArray of name, roArray of roRegion pairs.
|
|
896
896
|
Backgrounds: roAssociativeArray of name, path pairs.`,
|
|
897
|
-
type: new
|
|
897
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
898
898
|
file: exports.globalFile,
|
|
899
899
|
params: [{
|
|
900
900
|
name: 'filename',
|
|
@@ -904,7 +904,7 @@ Backgrounds: roAssociativeArray of name, path pairs.`,
|
|
|
904
904
|
}, {
|
|
905
905
|
name: 'dfDrawMessage',
|
|
906
906
|
shortDescription: 'dest is an roScreen/roBitmap/roRegion and region is an roRegion.\nGreys the entire dest region and draws it the region centered on the drawable dest.',
|
|
907
|
-
type: new
|
|
907
|
+
type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
|
|
908
908
|
file: exports.globalFile,
|
|
909
909
|
params: [{
|
|
910
910
|
name: 'dest',
|
|
@@ -918,7 +918,7 @@ Backgrounds: roAssociativeArray of name, path pairs.`,
|
|
|
918
918
|
}, {
|
|
919
919
|
name: 'dfDrawImage',
|
|
920
920
|
shortDescription: 'Returns True if successful.\nCreates a bitmap out of the image stored in the filename "path" and draws it at position (x,y) of the drawable dest.',
|
|
921
|
-
type: new
|
|
921
|
+
type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
|
|
922
922
|
file: exports.globalFile,
|
|
923
923
|
params: [{
|
|
924
924
|
name: 'dest',
|
|
@@ -951,7 +951,7 @@ Right: right region if there is a pillar box area on the right
|
|
|
951
951
|
Upper: upper region if there is a letterbox area at thetop
|
|
952
952
|
Lower: lower region if there is a letterbox area at the bottom
|
|
953
953
|
When using these regions as drawables, your graphics will be translated and clipped to these regions.`,
|
|
954
|
-
type: new
|
|
954
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
955
955
|
file: exports.globalFile,
|
|
956
956
|
params: [{
|
|
957
957
|
name: 'screen',
|
|
@@ -980,7 +980,7 @@ When using these regions as drawables, your graphics will be translated and clip
|
|
|
980
980
|
backgroundName is a key for the Backgrounds roAssociative array of backgrounds.
|
|
981
981
|
Backgrounds is an roAssociative array of background name keys and file path string values
|
|
982
982
|
This function creates an roBitmap out of the background image file and returns a region the size of the entire roBitmap.`,
|
|
983
|
-
type: new
|
|
983
|
+
type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
|
|
984
984
|
file: exports.globalFile,
|
|
985
985
|
params: [{
|
|
986
986
|
name: 'backgroundName',
|