brighterscript 0.66.0-alpha.2 → 0.66.0-alpha.3

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.
Files changed (124) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +0 -6
  3. package/dist/BsConfig.d.ts +0 -5
  4. package/dist/Cache.js +3 -3
  5. package/dist/Cache.js.map +1 -1
  6. package/dist/CodeActionUtil.d.ts +2 -2
  7. package/dist/DiagnosticCollection.js +8 -5
  8. package/dist/DiagnosticCollection.js.map +1 -1
  9. package/dist/DiagnosticMessages.d.ts +6 -1
  10. package/dist/DiagnosticMessages.js +5 -0
  11. package/dist/DiagnosticMessages.js.map +1 -1
  12. package/dist/FunctionScope.d.ts +1 -1
  13. package/dist/LanguageServer.d.ts +5 -1
  14. package/dist/LanguageServer.js +7 -0
  15. package/dist/LanguageServer.js.map +1 -1
  16. package/dist/Logger.d.ts +2 -1
  17. package/dist/Logger.js +10 -2
  18. package/dist/Logger.js.map +1 -1
  19. package/dist/Program.d.ts +1 -3
  20. package/dist/Program.js +4 -12
  21. package/dist/Program.js.map +1 -1
  22. package/dist/ProgramBuilder.js +1 -1
  23. package/dist/ProgramBuilder.js.map +1 -1
  24. package/dist/Scope.d.ts +11 -6
  25. package/dist/Scope.js +77 -93
  26. package/dist/Scope.js.map +1 -1
  27. package/dist/SymbolTable.d.ts +11 -5
  28. package/dist/SymbolTable.js +21 -8
  29. package/dist/SymbolTable.js.map +1 -1
  30. package/dist/astUtils/reflection.d.ts +4 -0
  31. package/dist/astUtils/reflection.js +9 -1
  32. package/dist/astUtils/reflection.js.map +1 -1
  33. package/dist/bscPlugin/hover/HoverProcessor.d.ts +5 -0
  34. package/dist/bscPlugin/hover/HoverProcessor.js +108 -77
  35. package/dist/bscPlugin/hover/HoverProcessor.js.map +1 -1
  36. package/dist/bscPlugin/hover/HoverProcessor.spec.js +83 -29
  37. package/dist/bscPlugin/hover/HoverProcessor.spec.js.map +1 -1
  38. package/dist/bscPlugin/validation/BrsFileValidator.d.ts +0 -4
  39. package/dist/bscPlugin/validation/BrsFileValidator.js +10 -16
  40. package/dist/bscPlugin/validation/BrsFileValidator.js.map +1 -1
  41. package/dist/bscPlugin/validation/ScopeValidator.d.ts +4 -0
  42. package/dist/bscPlugin/validation/ScopeValidator.js +77 -42
  43. package/dist/bscPlugin/validation/ScopeValidator.js.map +1 -1
  44. package/dist/bscPlugin/validation/ScopeValidator.spec.js +684 -0
  45. package/dist/bscPlugin/validation/ScopeValidator.spec.js.map +1 -0
  46. package/dist/cli.js +95 -13
  47. package/dist/cli.js.map +1 -1
  48. package/dist/files/BrsFile.Class.spec.js +5 -0
  49. package/dist/files/BrsFile.Class.spec.js.map +1 -1
  50. package/dist/files/BrsFile.d.ts +1 -11
  51. package/dist/files/BrsFile.js +9 -101
  52. package/dist/files/BrsFile.js.map +1 -1
  53. package/dist/files/BrsFile.spec.js +3 -267
  54. package/dist/files/BrsFile.spec.js.map +1 -1
  55. package/dist/globalCallables.js +78 -78
  56. package/dist/globalCallables.js.map +1 -1
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.js +1 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/interfaces.d.ts +7 -5
  61. package/dist/interfaces.js.map +1 -1
  62. package/dist/parser/Expression.d.ts +4 -3
  63. package/dist/parser/Expression.js +32 -9
  64. package/dist/parser/Expression.js.map +1 -1
  65. package/dist/parser/SGParser.d.ts +2 -2
  66. package/dist/parser/Statement.d.ts +11 -6
  67. package/dist/parser/Statement.js +54 -21
  68. package/dist/parser/Statement.js.map +1 -1
  69. package/dist/parser/tests/expression/TernaryExpression.spec.js +2 -2
  70. package/dist/types/BaseFunctionType.d.ts +8 -0
  71. package/dist/types/BaseFunctionType.js +25 -0
  72. package/dist/types/BaseFunctionType.js.map +1 -0
  73. package/dist/types/BooleanType.js +2 -1
  74. package/dist/types/BooleanType.js.map +1 -1
  75. package/dist/types/BscTypeKind.d.ts +1 -0
  76. package/dist/types/BscTypeKind.js +1 -0
  77. package/dist/types/BscTypeKind.js.map +1 -1
  78. package/dist/types/ClassType.js +1 -1
  79. package/dist/types/ClassType.js.map +1 -1
  80. package/dist/types/DoubleType.js +1 -0
  81. package/dist/types/DoubleType.js.map +1 -1
  82. package/dist/types/EnumType.d.ts +20 -4
  83. package/dist/types/EnumType.js +14 -2
  84. package/dist/types/EnumType.js.map +1 -1
  85. package/dist/types/FloatType.js +1 -0
  86. package/dist/types/FloatType.js.map +1 -1
  87. package/dist/types/FunctionType.d.ts +6 -19
  88. package/dist/types/FunctionType.js +12 -44
  89. package/dist/types/FunctionType.js.map +1 -1
  90. package/dist/types/IntegerType.js +1 -0
  91. package/dist/types/IntegerType.js.map +1 -1
  92. package/dist/types/InterfaceType.js +3 -3
  93. package/dist/types/InterfaceType.js.map +1 -1
  94. package/dist/types/InvalidType.d.ts +1 -0
  95. package/dist/types/InvalidType.js +3 -1
  96. package/dist/types/InvalidType.js.map +1 -1
  97. package/dist/types/LongIntegerType.js +1 -0
  98. package/dist/types/LongIntegerType.js.map +1 -1
  99. package/dist/types/ObjectType.js +2 -9
  100. package/dist/types/ObjectType.js.map +1 -1
  101. package/dist/types/ReferenceType.spec.js +6 -6
  102. package/dist/types/ReferenceType.spec.js.map +1 -1
  103. package/dist/types/StringType.js +4 -1
  104. package/dist/types/StringType.js.map +1 -1
  105. package/dist/types/TypedFunctionType.d.ts +27 -0
  106. package/dist/types/TypedFunctionType.js +69 -0
  107. package/dist/types/TypedFunctionType.js.map +1 -0
  108. package/dist/types/TypedFunctionType.spec.d.ts +1 -0
  109. package/dist/types/TypedFunctionType.spec.js +23 -0
  110. package/dist/types/TypedFunctionType.spec.js.map +1 -0
  111. package/dist/types/UnionType.js +1 -1
  112. package/dist/types/UnionType.js.map +1 -1
  113. package/dist/types/VoidType.js +2 -1
  114. package/dist/types/VoidType.js.map +1 -1
  115. package/dist/types/index.d.ts +1 -1
  116. package/dist/types/index.js +1 -1
  117. package/dist/types/index.js.map +1 -1
  118. package/dist/util.d.ts +22 -5
  119. package/dist/util.js +245 -79
  120. package/dist/util.js.map +1 -1
  121. package/package.json +3 -1
  122. package/dist/types/FunctionType.spec.js +0 -23
  123. package/dist/types/FunctionType.spec.js.map +0 -1
  124. /package/dist/{types/FunctionType.spec.d.ts → bscPlugin/validation/ScopeValidator.spec.d.ts} +0 -0
@@ -7,7 +7,7 @@ const ArrayType_1 = require("./types/ArrayType");
7
7
  const BooleanType_1 = require("./types/BooleanType");
8
8
  const DynamicType_1 = require("./types/DynamicType");
9
9
  const FloatType_1 = require("./types/FloatType");
10
- const FunctionType_1 = require("./types/FunctionType");
10
+ const TypedFunctionType_1 = require("./types/TypedFunctionType");
11
11
  const IntegerType_1 = require("./types/IntegerType");
12
12
  const ObjectType_1 = require("./types/ObjectType");
13
13
  const StringType_1 = require("./types/StringType");
@@ -18,7 +18,7 @@ exports.globalFile.parse('');
18
18
  let mathFunctions = [{
19
19
  name: 'Abs',
20
20
  shortDescription: 'Returns the absolute value of the argument.',
21
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
21
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
22
22
  file: exports.globalFile,
23
23
  params: [{
24
24
  name: 'x',
@@ -29,7 +29,7 @@ let mathFunctions = [{
29
29
  name: 'Atn',
30
30
  shortDescription: 'Returns the arctangent (in radians) of the argument.',
31
31
  documentation: '`ATN(X)` returns "the angle whose tangent is X". To get arctangent in degrees, multiply `ATN(X)` by `57.29578`.',
32
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
32
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
33
33
  file: exports.globalFile,
34
34
  params: [{
35
35
  name: 'x',
@@ -39,7 +39,7 @@ let mathFunctions = [{
39
39
  }, {
40
40
  name: 'Cdbl',
41
41
  shortDescription: 'Returns a single precision float representation of the argument. Someday may return double.',
42
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
42
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
43
43
  file: exports.globalFile,
44
44
  params: [{
45
45
  name: 'x',
@@ -49,7 +49,7 @@ let mathFunctions = [{
49
49
  }, {
50
50
  name: 'Cint',
51
51
  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.',
52
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
52
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
53
53
  file: exports.globalFile,
54
54
  params: [{
55
55
  name: 'x',
@@ -59,7 +59,7 @@ let mathFunctions = [{
59
59
  }, {
60
60
  name: 'Cos',
61
61
  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).',
62
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
62
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
63
63
  file: exports.globalFile,
64
64
  params: [{
65
65
  name: 'x',
@@ -69,7 +69,7 @@ let mathFunctions = [{
69
69
  }, {
70
70
  name: 'Csng',
71
71
  shortDescription: 'Returns a single-precision float representation of the argument.',
72
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
72
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
73
73
  file: exports.globalFile,
74
74
  params: [{
75
75
  name: 'x',
@@ -79,7 +79,7 @@ let mathFunctions = [{
79
79
  }, {
80
80
  name: 'Exp',
81
81
  shortDescription: 'Returns the "natural exponential" of X, that is, ex. This is the inverse of the LOG function, so X=EXP(LOG(X)).',
82
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
82
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
83
83
  file: exports.globalFile,
84
84
  params: [{
85
85
  name: 'x',
@@ -89,7 +89,7 @@ let mathFunctions = [{
89
89
  }, {
90
90
  name: 'Fix',
91
91
  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.',
92
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
92
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
93
93
  file: exports.globalFile,
94
94
  params: [{
95
95
  name: 'x',
@@ -99,7 +99,7 @@ let mathFunctions = [{
99
99
  }, {
100
100
  name: 'Int',
101
101
  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.',
102
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
102
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
103
103
  file: exports.globalFile,
104
104
  params: [{
105
105
  name: 'x',
@@ -109,7 +109,7 @@ let mathFunctions = [{
109
109
  }, {
110
110
  name: 'Log',
111
111
  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.',
112
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
112
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
113
113
  file: exports.globalFile,
114
114
  params: [{
115
115
  name: 'x',
@@ -119,7 +119,7 @@ let mathFunctions = [{
119
119
  }, {
120
120
  name: 'Rnd',
121
121
  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.',
122
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
122
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
123
123
  file: exports.globalFile,
124
124
  params: [{
125
125
  name: 'range',
@@ -129,7 +129,7 @@ let mathFunctions = [{
129
129
  }, {
130
130
  name: 'Rnd',
131
131
  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.',
132
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
132
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
133
133
  file: exports.globalFile,
134
134
  params: [{
135
135
  name: '0',
@@ -139,7 +139,7 @@ let mathFunctions = [{
139
139
  }, {
140
140
  name: 'Sgn',
141
141
  shortDescription: 'The "sign" function: returns -1 for X negative, 0 for X zero, and +1 for X positive.',
142
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
142
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
143
143
  file: exports.globalFile,
144
144
  params: [{
145
145
  name: 'x',
@@ -149,7 +149,7 @@ let mathFunctions = [{
149
149
  }, {
150
150
  name: 'Sgn',
151
151
  shortDescription: 'The "sign" function: returns -1 for X negative, 0 for X zero, and +1 for X positive.',
152
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
152
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
153
153
  file: exports.globalFile,
154
154
  params: [{
155
155
  name: 'x',
@@ -159,7 +159,7 @@ let mathFunctions = [{
159
159
  }, {
160
160
  name: 'Sin',
161
161
  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).',
162
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
162
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
163
163
  file: exports.globalFile,
164
164
  params: [{
165
165
  name: 'x',
@@ -169,7 +169,7 @@ let mathFunctions = [{
169
169
  }, {
170
170
  name: 'Sqr',
171
171
  shortDescription: 'Returns the square root of the argument. SQR(X) is the same as X ^ (1/2), only faster.',
172
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
172
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
173
173
  file: exports.globalFile,
174
174
  params: [{
175
175
  name: 'x',
@@ -179,7 +179,7 @@ let mathFunctions = [{
179
179
  }, {
180
180
  name: 'Tan',
181
181
  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).',
182
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
182
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
183
183
  file: exports.globalFile,
184
184
  params: [{
185
185
  name: 'x',
@@ -190,7 +190,7 @@ let mathFunctions = [{
190
190
  let runtimeFunctions = [{
191
191
  name: 'CreateObject',
192
192
  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.',
193
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
193
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
194
194
  file: exports.globalFile,
195
195
  params: [{
196
196
  name: 'name',
@@ -220,7 +220,7 @@ let runtimeFunctions = [{
220
220
  }, {
221
221
  name: 'Type',
222
222
  shortDescription: 'Returns the type of a variable and/or object. See the BrightScript Component specification for a list of types.',
223
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
223
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
224
224
  file: exports.globalFile,
225
225
  params: [{
226
226
  name: 'variable',
@@ -234,13 +234,13 @@ let runtimeFunctions = [{
234
234
  }, {
235
235
  name: 'GetGlobalAA',
236
236
  shortDescription: 'Each script has a global Associative Array. It can be fetched with this function. ',
237
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
237
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
238
238
  file: exports.globalFile,
239
239
  params: []
240
240
  }, {
241
241
  name: 'Box',
242
242
  shortDescription: 'Box() will return an object version of an intrinsic type, or pass through an object if given one.',
243
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
243
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
244
244
  file: exports.globalFile,
245
245
  params: [{
246
246
  name: 'x',
@@ -250,7 +250,7 @@ let runtimeFunctions = [{
250
250
  }, {
251
251
  name: 'Run',
252
252
  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.'`,
253
- type: new FunctionType_1.FunctionType(new DynamicType_1.DynamicType()),
253
+ type: new TypedFunctionType_1.TypedFunctionType(new DynamicType_1.DynamicType()),
254
254
  file: exports.globalFile,
255
255
  params: [{
256
256
  name: 'filename',
@@ -265,7 +265,7 @@ let runtimeFunctions = [{
265
265
  }, {
266
266
  name: 'Run',
267
267
  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.'`,
268
- type: new FunctionType_1.FunctionType(new DynamicType_1.DynamicType()),
268
+ type: new TypedFunctionType_1.TypedFunctionType(new DynamicType_1.DynamicType()),
269
269
  file: exports.globalFile,
270
270
  params: [{
271
271
  name: 'filename',
@@ -280,7 +280,7 @@ let runtimeFunctions = [{
280
280
  }, {
281
281
  name: 'Eval',
282
282
  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. '`,
283
- type: new FunctionType_1.FunctionType(new DynamicType_1.DynamicType()),
283
+ type: new TypedFunctionType_1.TypedFunctionType(new DynamicType_1.DynamicType()),
284
284
  file: exports.globalFile,
285
285
  isDeprecated: true,
286
286
  params: [{
@@ -291,13 +291,13 @@ let runtimeFunctions = [{
291
291
  }, {
292
292
  name: 'GetLastRunCompileError',
293
293
  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.',
294
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
294
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
295
295
  file: exports.globalFile,
296
296
  params: []
297
297
  }, {
298
298
  name: 'GetLastRunRuntimeError',
299
299
  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',
300
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
300
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
301
301
  file: exports.globalFile,
302
302
  params: []
303
303
  }];
@@ -305,7 +305,7 @@ let globalUtilityFunctions = [
305
305
  {
306
306
  name: 'Sleep',
307
307
  shortDescription: 'This function causes the script to pause for the specified time, without wasting CPU cycles. There are 1000 milliseconds in one second.',
308
- type: new FunctionType_1.FunctionType(new VoidType_1.VoidType()),
308
+ type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
309
309
  file: exports.globalFile,
310
310
  params: [{
311
311
  name: 'milliseconds',
@@ -315,7 +315,7 @@ let globalUtilityFunctions = [
315
315
  }, {
316
316
  name: 'Wait',
317
317
  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".',
318
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
318
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
319
319
  file: exports.globalFile,
320
320
  params: [{
321
321
  name: 'timeout',
@@ -329,7 +329,7 @@ let globalUtilityFunctions = [
329
329
  }, {
330
330
  name: 'GetInterface',
331
331
  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.',
332
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
332
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
333
333
  file: exports.globalFile,
334
334
  params: [{
335
335
  name: 'object',
@@ -343,7 +343,7 @@ let globalUtilityFunctions = [
343
343
  }, {
344
344
  name: 'FindMemberFunction',
345
345
  shortDescription: 'Returns the interface from the object that provides the specified function, or invalid if not found.',
346
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
346
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
347
347
  file: exports.globalFile,
348
348
  params: [{
349
349
  name: 'object',
@@ -357,7 +357,7 @@ let globalUtilityFunctions = [
357
357
  }, {
358
358
  name: 'UpTime',
359
359
  shortDescription: 'Returns the uptime of the system since the last reboot in seconds.',
360
- type: new FunctionType_1.FunctionType(new FloatType_1.FloatType()),
360
+ type: new TypedFunctionType_1.TypedFunctionType(new FloatType_1.FloatType()),
361
361
  file: exports.globalFile,
362
362
  params: [{
363
363
  name: 'dummy',
@@ -367,13 +367,13 @@ let globalUtilityFunctions = [
367
367
  }, {
368
368
  name: 'RebootSystem',
369
369
  shortDescription: 'Requests the system to perform a soft reboot. The Roku platform has disabled this feature.',
370
- type: new FunctionType_1.FunctionType(new VoidType_1.VoidType()),
370
+ type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
371
371
  file: exports.globalFile,
372
372
  params: []
373
373
  }, {
374
374
  name: 'ListDir',
375
375
  shortDescription: 'Returns a List object containing the contents of the directory path specified.',
376
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
376
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
377
377
  file: exports.globalFile,
378
378
  params: [{
379
379
  name: 'path',
@@ -383,7 +383,7 @@ let globalUtilityFunctions = [
383
383
  }, {
384
384
  name: 'ReadAsciiFile',
385
385
  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.',
386
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
386
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
387
387
  file: exports.globalFile,
388
388
  params: [{
389
389
  name: 'filePath',
@@ -393,7 +393,7 @@ let globalUtilityFunctions = [
393
393
  }, {
394
394
  name: 'WriteAsciiFile',
395
395
  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.',
396
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
396
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
397
397
  file: exports.globalFile,
398
398
  params: [{
399
399
  name: 'filePath',
@@ -407,7 +407,7 @@ let globalUtilityFunctions = [
407
407
  }, {
408
408
  name: 'CopyFile',
409
409
  shortDescription: 'Make a copy of a file.',
410
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
410
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
411
411
  file: exports.globalFile,
412
412
  params: [{
413
413
  name: 'source',
@@ -421,7 +421,7 @@ let globalUtilityFunctions = [
421
421
  }, {
422
422
  name: 'MoveFile',
423
423
  shortDescription: 'Rename a file.',
424
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
424
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
425
425
  file: exports.globalFile,
426
426
  params: [{
427
427
  name: 'source',
@@ -445,7 +445,7 @@ A '*' matches zero or more arbitrary characters.
445
445
  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]'.
446
446
  A character class can be negated by specifying '^' as the first character. To match a literal '^' place it elsewhere within the class.
447
447
  The characters '?', '*' and '[' lose their special meaning if preceded by a single '\\'. A single '\\' can be matched as '\\\\'.`,
448
- type: new FunctionType_1.FunctionType(new ArrayType_1.ArrayType(new StringType_1.StringType())),
448
+ type: new TypedFunctionType_1.TypedFunctionType(new ArrayType_1.ArrayType(new StringType_1.StringType())),
449
449
  file: exports.globalFile,
450
450
  params: [{
451
451
  name: 'path',
@@ -459,7 +459,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
459
459
  }, {
460
460
  name: 'DeleteFile',
461
461
  shortDescription: 'Delete the specified file.',
462
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
462
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
463
463
  file: exports.globalFile,
464
464
  params: [{
465
465
  name: 'file',
@@ -469,7 +469,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
469
469
  }, {
470
470
  name: 'DeleteDirectory',
471
471
  shortDescription: 'Deletes the specified directory. It is only possible to delete an empty directory.',
472
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
472
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
473
473
  file: exports.globalFile,
474
474
  params: [{
475
475
  name: 'dir',
@@ -479,7 +479,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
479
479
  }, {
480
480
  name: 'CreateDirectory',
481
481
  shortDescription: 'Creates the specified Directory. Only one directory can be created at a time',
482
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
482
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
483
483
  file: exports.globalFile,
484
484
  params: [{
485
485
  name: 'dir',
@@ -489,7 +489,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
489
489
  }, {
490
490
  name: 'FormatDrive',
491
491
  shortDescription: 'Formats a specified drive using the specified filesystem.',
492
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
492
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
493
493
  file: exports.globalFile,
494
494
  params: [{
495
495
  name: 'drive',
@@ -503,7 +503,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
503
503
  }, {
504
504
  name: 'StrToI',
505
505
  shortDescription: 'Return the integer value of the string, or 0 if nothing is parsed.',
506
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
506
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
507
507
  file: exports.globalFile,
508
508
  params: [{
509
509
  name: 'str',
@@ -513,7 +513,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
513
513
  }, {
514
514
  name: 'RunGarbageCollector',
515
515
  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.`,
516
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
516
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
517
517
  file: exports.globalFile,
518
518
  params: []
519
519
  }, {
@@ -523,7 +523,7 @@ The characters '?', '*' and '[' lose their special meaning if preceded by a sing
523
523
  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".
524
524
  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.
525
525
  An error will be returned if arrays/associative arrays are nested more than 256 levels deep.`,
526
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
526
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
527
527
  file: exports.globalFile,
528
528
  params: [{
529
529
  name: 'jsonString',
@@ -546,7 +546,7 @@ An error will be returned if arrays/associative arrays are nested more than 256
546
546
  If an error occurs an empty string will be returned.
547
547
 
548
548
  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.`,
549
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
549
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
550
550
  file: exports.globalFile,
551
551
  params: [{
552
552
  name: 'object',
@@ -563,7 +563,7 @@ Normally non-ASCII characters are escaped in the output string as "\\uXXXX" wher
563
563
 
564
564
  In some cases you may want to include a placeholder marker in a localizable string that gets dynamically substituted with a value at runtime.
565
565
  One way to accomplish that is to use the Replace method on the string value returned from the Tr() lookup.`,
566
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
566
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
567
567
  file: exports.globalFile,
568
568
  params: [{
569
569
  name: 'source',
@@ -576,7 +576,7 @@ let globalStringFunctions = [
576
576
  {
577
577
  name: 'UCase',
578
578
  shortDescription: 'Converts the string to all upper case.',
579
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
579
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
580
580
  file: exports.globalFile,
581
581
  params: [{
582
582
  name: 's',
@@ -586,7 +586,7 @@ let globalStringFunctions = [
586
586
  }, {
587
587
  name: 'LCase',
588
588
  shortDescription: 'Converts the string to all lower case.',
589
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
589
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
590
590
  file: exports.globalFile,
591
591
  params: [{
592
592
  name: 's',
@@ -596,7 +596,7 @@ let globalStringFunctions = [
596
596
  }, {
597
597
  name: 'Asc',
598
598
  shortDescription: 'Returns the Unicode ("ASCII") value for the first character of the specified string\n An empty string argument will return 0.',
599
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
599
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
600
600
  file: exports.globalFile,
601
601
  params: [{
602
602
  name: 'letter',
@@ -612,7 +612,7 @@ let globalStringFunctions = [
612
612
  By using Chr, you can create strings containing characters which cannot be contained in quotes, such as newline or the quote character itself.
613
613
 
614
614
  print (Chr(34) + "hello" + Chr(34)) ' prints: "hello"`,
615
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
615
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
616
616
  file: exports.globalFile,
617
617
  params: [{
618
618
  name: 'ch',
@@ -622,7 +622,7 @@ By using Chr, you can create strings containing characters which cannot be conta
622
622
  }, {
623
623
  name: 'Instr',
624
624
  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.',
625
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
625
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
626
626
  file: exports.globalFile,
627
627
  params: [{
628
628
  name: 'start',
@@ -640,7 +640,7 @@ By using Chr, you can create strings containing characters which cannot be conta
640
640
  }, {
641
641
  name: 'Left',
642
642
  shortDescription: 'Returns the first n characters of s. ',
643
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
643
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
644
644
  file: exports.globalFile,
645
645
  params: [{
646
646
  name: 's',
@@ -654,7 +654,7 @@ By using Chr, you can create strings containing characters which cannot be conta
654
654
  }, {
655
655
  name: 'Len',
656
656
  shortDescription: 'Returns the number of characters in the specified string.',
657
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
657
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
658
658
  file: exports.globalFile,
659
659
  params: [{
660
660
  name: 's',
@@ -664,7 +664,7 @@ By using Chr, you can create strings containing characters which cannot be conta
664
664
  }, {
665
665
  name: 'Mid',
666
666
  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.',
667
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
667
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
668
668
  file: exports.globalFile,
669
669
  params: [{
670
670
  name: 's',
@@ -683,7 +683,7 @@ By using Chr, you can create strings containing characters which cannot be conta
683
683
  }, {
684
684
  name: 'Right',
685
685
  shortDescription: 'Returns the last n characters of s.',
686
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
686
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
687
687
  file: exports.globalFile,
688
688
  params: [{
689
689
  name: 's',
@@ -697,7 +697,7 @@ By using Chr, you can create strings containing characters which cannot be conta
697
697
  }, {
698
698
  name: 'Str',
699
699
  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.',
700
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
700
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
701
701
  file: exports.globalFile,
702
702
  params: [{
703
703
  name: 'value',
@@ -707,7 +707,7 @@ By using Chr, you can create strings containing characters which cannot be conta
707
707
  }, {
708
708
  name: 'StrI',
709
709
  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.',
710
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
710
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
711
711
  file: exports.globalFile,
712
712
  params: [{
713
713
  name: 'value',
@@ -721,7 +721,7 @@ By using Chr, you can create strings containing characters which cannot be conta
721
721
  }, {
722
722
  name: 'string',
723
723
  shortDescription: 'Returns a string composed of n copies of the second argument concatenated together.',
724
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
724
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
725
725
  file: exports.globalFile,
726
726
  params: [{
727
727
  name: 'n',
@@ -735,7 +735,7 @@ By using Chr, you can create strings containing characters which cannot be conta
735
735
  }, {
736
736
  name: 'StringI',
737
737
  shortDescription: 'Returns a string composed of n copies of the character whose Unicode value is the second argument.',
738
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
738
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
739
739
  file: exports.globalFile,
740
740
  params: [{
741
741
  name: 'n',
@@ -749,7 +749,7 @@ By using Chr, you can create strings containing characters which cannot be conta
749
749
  }, {
750
750
  name: 'Val',
751
751
  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. If radix is provided as the second parameter, it 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.',
752
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
752
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
753
753
  file: exports.globalFile,
754
754
  params: [{
755
755
  name: 'str',
@@ -763,7 +763,7 @@ By using Chr, you can create strings containing characters which cannot be conta
763
763
  }, {
764
764
  name: 'Substitute',
765
765
  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.',
766
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
766
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
767
767
  file: exports.globalFile,
768
768
  params: [{
769
769
  name: 'str',
@@ -792,7 +792,7 @@ let programStatementFunctions = [
792
792
  {
793
793
  name: 'Tab',
794
794
  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.',
795
- type: new FunctionType_1.FunctionType(new VoidType_1.VoidType()),
795
+ type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
796
796
  file: exports.globalFile,
797
797
  params: [{
798
798
  name: 'expression',
@@ -802,7 +802,7 @@ let programStatementFunctions = [
802
802
  }, {
803
803
  name: 'Pos',
804
804
  shortDescription: 'Returns a number from 0 to window width, indicating the current cursor position on the cursor. Requires a "dummy argument" (any numeric expression).',
805
- type: new FunctionType_1.FunctionType(new VoidType_1.VoidType()),
805
+ type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
806
806
  file: exports.globalFile,
807
807
  params: [{
808
808
  name: 'x',
@@ -813,32 +813,32 @@ let programStatementFunctions = [
813
813
  }, {
814
814
  name: 'Roku_Ads',
815
815
  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.',
816
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
816
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
817
817
  file: exports.globalFile,
818
818
  params: []
819
819
  }, {
820
820
  name: 'bslBrightScriptErrorCodes',
821
821
  shortDescription: 'Returns an roAssociativeArray with name value pairs of the error name and corresponding integer value, for example ERR_OKAY = &hFF.',
822
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
822
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
823
823
  file: exports.globalFile,
824
824
  params: []
825
825
  }, {
826
826
  name: 'bslGeneralConstants',
827
827
  shortDescription: 'Returns an roAssociativeArray with name value pairs of system constants, for example MAX_INT = 2147483647.',
828
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
828
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
829
829
  file: exports.globalFile,
830
830
  params: []
831
831
  }, {
832
832
  name: 'bslUniversalControlEventCodes',
833
833
  shortDescription: 'Returns an roAssociativeArray with name value pairs of the remote key code (buttons) constants, for example BUTTON_SELECT_PRESSED = 6.',
834
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
834
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
835
835
  file: exports.globalFile,
836
836
  params: []
837
837
  },
838
838
  {
839
839
  name: 'AsciiToHex',
840
840
  shortDescription: 'Returns the hex encoded string, for example AsciiToHex("Hi!") = "486921".',
841
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
841
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
842
842
  file: exports.globalFile,
843
843
  params: [{
844
844
  name: 'ascii',
@@ -848,7 +848,7 @@ let programStatementFunctions = [
848
848
  }, {
849
849
  name: 'HexToAscii',
850
850
  shortDescription: 'Returns a string that is the hex decoded string, for example HexToAscii("486921") = "Hi!".',
851
- type: new FunctionType_1.FunctionType(new StringType_1.StringType()),
851
+ type: new TypedFunctionType_1.TypedFunctionType(new StringType_1.StringType()),
852
852
  file: exports.globalFile,
853
853
  params: [{
854
854
  name: 'hex',
@@ -859,7 +859,7 @@ let programStatementFunctions = [
859
859
  {
860
860
  name: 'HexToInteger',
861
861
  shortDescription: 'Returns the integer value of the passed in hex string.',
862
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
862
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
863
863
  file: exports.globalFile,
864
864
  params: [{
865
865
  name: 'hex',
@@ -869,7 +869,7 @@ let programStatementFunctions = [
869
869
  }, {
870
870
  name: 'HexToInteger',
871
871
  shortDescription: 'Returns a string that is the hex decoded string, for example HexToAscii("486921") = "Hi!".',
872
- type: new FunctionType_1.FunctionType(new IntegerType_1.IntegerType()),
872
+ type: new TypedFunctionType_1.TypedFunctionType(new IntegerType_1.IntegerType()),
873
873
  file: exports.globalFile,
874
874
  params: [{
875
875
  name: 'hex',
@@ -885,7 +885,7 @@ ExtraInfo: roAssociativeArray
885
885
  Regions: roAssociativeArray of name, roRegions pairs
886
886
  Animations: roAssociativeArray of name, roArray of roRegion pairs.
887
887
  Backgrounds: roAssociativeArray of name, path pairs.`,
888
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
888
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
889
889
  file: exports.globalFile,
890
890
  params: [{
891
891
  name: 'filename',
@@ -895,7 +895,7 @@ Backgrounds: roAssociativeArray of name, path pairs.`,
895
895
  }, {
896
896
  name: 'dfDrawMessage',
897
897
  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.',
898
- type: new FunctionType_1.FunctionType(new VoidType_1.VoidType()),
898
+ type: new TypedFunctionType_1.TypedFunctionType(new VoidType_1.VoidType()),
899
899
  file: exports.globalFile,
900
900
  params: [{
901
901
  name: 'dest',
@@ -909,7 +909,7 @@ Backgrounds: roAssociativeArray of name, path pairs.`,
909
909
  }, {
910
910
  name: 'dfDrawImage',
911
911
  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.',
912
- type: new FunctionType_1.FunctionType(new BooleanType_1.BooleanType()),
912
+ type: new TypedFunctionType_1.TypedFunctionType(new BooleanType_1.BooleanType()),
913
913
  file: exports.globalFile,
914
914
  params: [{
915
915
  name: 'dest',
@@ -942,7 +942,7 @@ Right: right region if there is a pillar box area on the right
942
942
  Upper: upper region if there is a letterbox area at thetop
943
943
  Lower: lower region if there is a letterbox area at the bottom
944
944
  When using these regions as drawables, your graphics will be translated and clipped to these regions.`,
945
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
945
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
946
946
  file: exports.globalFile,
947
947
  params: [{
948
948
  name: 'screen',
@@ -971,7 +971,7 @@ When using these regions as drawables, your graphics will be translated and clip
971
971
  backgroundName is a key for the Backgrounds roAssociative array of backgrounds.
972
972
  Backgrounds is an roAssociative array of background name keys and file path string values
973
973
  This function creates an roBitmap out of the background image file and returns a region the size of the entire roBitmap.`,
974
- type: new FunctionType_1.FunctionType(new ObjectType_1.ObjectType()),
974
+ type: new TypedFunctionType_1.TypedFunctionType(new ObjectType_1.ObjectType()),
975
975
  file: exports.globalFile,
976
976
  params: [{
977
977
  name: 'backgroundName',