brighterscript 0.59.0 → 0.60.1

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 (223) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +8 -4
  3. package/dist/CommentFlagProcessor.d.ts +1 -1
  4. package/dist/CommentFlagProcessor.js +1 -1
  5. package/dist/DependencyGraph.d.ts +3 -2
  6. package/dist/DependencyGraph.js +3 -2
  7. package/dist/DependencyGraph.js.map +1 -1
  8. package/dist/DiagnosticFilterer.js +1 -2
  9. package/dist/DiagnosticFilterer.js.map +1 -1
  10. package/dist/DiagnosticMessages.d.ts +6 -1
  11. package/dist/DiagnosticMessages.js +6 -1
  12. package/dist/DiagnosticMessages.js.map +1 -1
  13. package/dist/FunctionScope.d.ts +1 -1
  14. package/dist/FunctionScope.js +1 -1
  15. package/dist/KeyedThrottler.d.ts +3 -3
  16. package/dist/KeyedThrottler.js +3 -3
  17. package/dist/KeyedThrottler.js.map +1 -1
  18. package/dist/LanguageServer.d.ts +0 -7
  19. package/dist/LanguageServer.js +0 -7
  20. package/dist/LanguageServer.js.map +1 -1
  21. package/dist/Program.d.ts +5 -7
  22. package/dist/Program.js +11 -213
  23. package/dist/Program.js.map +1 -1
  24. package/dist/ProgramBuilder.d.ts +0 -1
  25. package/dist/ProgramBuilder.js +0 -1
  26. package/dist/ProgramBuilder.js.map +1 -1
  27. package/dist/Scope.d.ts +31 -33
  28. package/dist/Scope.js +47 -33
  29. package/dist/Scope.js.map +1 -1
  30. package/dist/SymbolTable.d.ts +0 -3
  31. package/dist/SymbolTable.js +0 -3
  32. package/dist/SymbolTable.js.map +1 -1
  33. package/dist/Watcher.d.ts +0 -3
  34. package/dist/Watcher.js +0 -3
  35. package/dist/Watcher.js.map +1 -1
  36. package/dist/astUtils/AstEditor.d.ts +1 -1
  37. package/dist/astUtils/AstEditor.js +1 -1
  38. package/dist/astUtils/AstEditor.spec.js +58 -58
  39. package/dist/astUtils/AstEditor.spec.js.map +1 -1
  40. package/dist/astUtils/creators.spec.js +5 -5
  41. package/dist/astUtils/creators.spec.js.map +1 -1
  42. package/dist/astUtils/reflection.spec.js +112 -112
  43. package/dist/astUtils/reflection.spec.js.map +1 -1
  44. package/dist/astUtils/stackedVisitor.spec.js +12 -12
  45. package/dist/astUtils/stackedVisitor.spec.js.map +1 -1
  46. package/dist/astUtils/visitors.d.ts +4 -0
  47. package/dist/astUtils/visitors.js +4 -0
  48. package/dist/astUtils/visitors.js.map +1 -1
  49. package/dist/astUtils/visitors.spec.js +21 -21
  50. package/dist/astUtils/visitors.spec.js.map +1 -1
  51. package/dist/bscPlugin/CallExpressionInfo.d.ts +35 -0
  52. package/dist/bscPlugin/CallExpressionInfo.js +131 -0
  53. package/dist/bscPlugin/CallExpressionInfo.js.map +1 -0
  54. package/dist/bscPlugin/SignatureHelpUtil.d.ts +10 -0
  55. package/dist/bscPlugin/SignatureHelpUtil.js +135 -0
  56. package/dist/bscPlugin/SignatureHelpUtil.js.map +1 -0
  57. package/dist/bscPlugin/codeActions/CodeActionsProcessor.spec.js +7 -7
  58. package/dist/bscPlugin/codeActions/CodeActionsProcessor.spec.js.map +1 -1
  59. package/dist/bscPlugin/hover/HoverProcessor.spec.js +27 -27
  60. package/dist/bscPlugin/hover/HoverProcessor.spec.js.map +1 -1
  61. package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.js +2 -2
  62. package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.js.map +1 -1
  63. package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.js +1 -2
  64. package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.js.map +1 -1
  65. package/dist/bscPlugin/validation/BrsFileValidator.d.ts +1 -0
  66. package/dist/bscPlugin/validation/BrsFileValidator.js +11 -0
  67. package/dist/bscPlugin/validation/BrsFileValidator.js.map +1 -1
  68. package/dist/bscPlugin/validation/BrsFileValidator.spec.js +39 -9
  69. package/dist/bscPlugin/validation/BrsFileValidator.spec.js.map +1 -1
  70. package/dist/files/BrsFile.Class.spec.js +11 -11
  71. package/dist/files/BrsFile.Class.spec.js.map +1 -1
  72. package/dist/files/BrsFile.d.ts +8 -20
  73. package/dist/files/BrsFile.js +16 -97
  74. package/dist/files/BrsFile.js.map +1 -1
  75. package/dist/files/BrsFile.spec.js +245 -187
  76. package/dist/files/BrsFile.spec.js.map +1 -1
  77. package/dist/files/XmlFile.d.ts +1 -4
  78. package/dist/files/XmlFile.js +1 -4
  79. package/dist/files/XmlFile.js.map +1 -1
  80. package/dist/files/XmlFile.spec.js +82 -82
  81. package/dist/files/XmlFile.spec.js.map +1 -1
  82. package/dist/files/tests/imports.spec.js +7 -7
  83. package/dist/files/tests/imports.spec.js.map +1 -1
  84. package/dist/lexer/Character.spec.js +5 -5
  85. package/dist/lexer/Character.spec.js.map +1 -1
  86. package/dist/lexer/Lexer.d.ts +0 -5
  87. package/dist/lexer/Lexer.js +0 -5
  88. package/dist/lexer/Lexer.js.map +1 -1
  89. package/dist/lexer/Lexer.spec.js +136 -136
  90. package/dist/lexer/Lexer.spec.js.map +1 -1
  91. package/dist/parser/AstNode.d.ts +1 -1
  92. package/dist/parser/AstNode.spec.js +3 -3
  93. package/dist/parser/AstNode.spec.js.map +1 -1
  94. package/dist/parser/Expression.js.map +1 -1
  95. package/dist/parser/Parser.Class.spec.js +60 -60
  96. package/dist/parser/Parser.Class.spec.js.map +1 -1
  97. package/dist/parser/Parser.d.ts +4 -4
  98. package/dist/parser/Parser.js +5 -8
  99. package/dist/parser/Parser.js.map +1 -1
  100. package/dist/parser/Parser.spec.js +229 -221
  101. package/dist/parser/Parser.spec.js.map +1 -1
  102. package/dist/parser/SGParser.spec.js +14 -14
  103. package/dist/parser/SGParser.spec.js.map +1 -1
  104. package/dist/parser/Statement.d.ts +3 -2
  105. package/dist/parser/Statement.js +12 -5
  106. package/dist/parser/Statement.js.map +1 -1
  107. package/dist/parser/Statement.spec.js +29 -11
  108. package/dist/parser/Statement.spec.js.map +1 -1
  109. package/dist/parser/tests/controlFlow/For.spec.js +15 -15
  110. package/dist/parser/tests/controlFlow/For.spec.js.map +1 -1
  111. package/dist/parser/tests/controlFlow/ForEach.spec.js +13 -13
  112. package/dist/parser/tests/controlFlow/ForEach.spec.js.map +1 -1
  113. package/dist/parser/tests/controlFlow/If.spec.js +93 -93
  114. package/dist/parser/tests/controlFlow/If.spec.js.map +1 -1
  115. package/dist/parser/tests/controlFlow/While.spec.js +12 -12
  116. package/dist/parser/tests/controlFlow/While.spec.js.map +1 -1
  117. package/dist/parser/tests/expression/Additive.spec.js +8 -8
  118. package/dist/parser/tests/expression/Additive.spec.js.map +1 -1
  119. package/dist/parser/tests/expression/ArrayLiterals.spec.js +26 -26
  120. package/dist/parser/tests/expression/ArrayLiterals.spec.js.map +1 -1
  121. package/dist/parser/tests/expression/AssociativeArrayLiterals.spec.js +27 -27
  122. package/dist/parser/tests/expression/AssociativeArrayLiterals.spec.js.map +1 -1
  123. package/dist/parser/tests/expression/Boolean.spec.js +8 -8
  124. package/dist/parser/tests/expression/Boolean.spec.js.map +1 -1
  125. package/dist/parser/tests/expression/Call.spec.js +45 -45
  126. package/dist/parser/tests/expression/Call.spec.js.map +1 -1
  127. package/dist/parser/tests/expression/Exponential.spec.js +5 -5
  128. package/dist/parser/tests/expression/Exponential.spec.js.map +1 -1
  129. package/dist/parser/tests/expression/Function.spec.js +36 -36
  130. package/dist/parser/tests/expression/Function.spec.js.map +1 -1
  131. package/dist/parser/tests/expression/Indexing.spec.js +29 -29
  132. package/dist/parser/tests/expression/Indexing.spec.js.map +1 -1
  133. package/dist/parser/tests/expression/Multiplicative.spec.js +9 -9
  134. package/dist/parser/tests/expression/Multiplicative.spec.js.map +1 -1
  135. package/dist/parser/tests/expression/NullCoalescenceExpression.spec.js +34 -34
  136. package/dist/parser/tests/expression/NullCoalescenceExpression.spec.js.map +1 -1
  137. package/dist/parser/tests/expression/PrefixUnary.spec.js +12 -12
  138. package/dist/parser/tests/expression/PrefixUnary.spec.js.map +1 -1
  139. package/dist/parser/tests/expression/Primary.spec.js +12 -12
  140. package/dist/parser/tests/expression/Primary.spec.js.map +1 -1
  141. package/dist/parser/tests/expression/Relational.spec.js +13 -13
  142. package/dist/parser/tests/expression/Relational.spec.js.map +1 -1
  143. package/dist/parser/tests/expression/TemplateStringExpression.spec.js +10 -10
  144. package/dist/parser/tests/expression/TemplateStringExpression.spec.js.map +1 -1
  145. package/dist/parser/tests/expression/TernaryExpression.spec.js +53 -53
  146. package/dist/parser/tests/expression/TernaryExpression.spec.js.map +1 -1
  147. package/dist/parser/tests/statement/AssignmentOperators.spec.js +15 -15
  148. package/dist/parser/tests/statement/AssignmentOperators.spec.js.map +1 -1
  149. package/dist/parser/tests/statement/ConstStatement.spec.js +6 -6
  150. package/dist/parser/tests/statement/ConstStatement.spec.js.map +1 -1
  151. package/dist/parser/tests/statement/Continue.spec.js +4 -4
  152. package/dist/parser/tests/statement/Continue.spec.js.map +1 -1
  153. package/dist/parser/tests/statement/Declaration.spec.js +19 -19
  154. package/dist/parser/tests/statement/Declaration.spec.js.map +1 -1
  155. package/dist/parser/tests/statement/Dim.spec.js +22 -22
  156. package/dist/parser/tests/statement/Dim.spec.js.map +1 -1
  157. package/dist/parser/tests/statement/Enum.spec.js +14 -14
  158. package/dist/parser/tests/statement/Enum.spec.js.map +1 -1
  159. package/dist/parser/tests/statement/Function.spec.js +35 -35
  160. package/dist/parser/tests/statement/Function.spec.js.map +1 -1
  161. package/dist/parser/tests/statement/Goto.spec.js +5 -5
  162. package/dist/parser/tests/statement/Goto.spec.js.map +1 -1
  163. package/dist/parser/tests/statement/Increment.spec.js +20 -20
  164. package/dist/parser/tests/statement/Increment.spec.js.map +1 -1
  165. package/dist/parser/tests/statement/LibraryStatement.spec.js +11 -11
  166. package/dist/parser/tests/statement/LibraryStatement.spec.js.map +1 -1
  167. package/dist/parser/tests/statement/Misc.spec.js +20 -20
  168. package/dist/parser/tests/statement/Misc.spec.js.map +1 -1
  169. package/dist/parser/tests/statement/PrintStatement.spec.js +16 -16
  170. package/dist/parser/tests/statement/PrintStatement.spec.js.map +1 -1
  171. package/dist/parser/tests/statement/ReturnStatement.spec.js +9 -9
  172. package/dist/parser/tests/statement/ReturnStatement.spec.js.map +1 -1
  173. package/dist/parser/tests/statement/Set.spec.js +22 -22
  174. package/dist/parser/tests/statement/Set.spec.js.map +1 -1
  175. package/dist/parser/tests/statement/Stop.spec.js +6 -6
  176. package/dist/parser/tests/statement/Stop.spec.js.map +1 -1
  177. package/dist/parser/tests/statement/Throw.spec.js +6 -6
  178. package/dist/parser/tests/statement/Throw.spec.js.map +1 -1
  179. package/dist/parser/tests/statement/TryCatch.spec.js +15 -15
  180. package/dist/parser/tests/statement/TryCatch.spec.js.map +1 -1
  181. package/dist/preprocessor/Manifest.spec.js +8 -8
  182. package/dist/preprocessor/Manifest.spec.js.map +1 -1
  183. package/dist/preprocessor/Preprocessor.d.ts +2 -2
  184. package/dist/preprocessor/Preprocessor.js +2 -2
  185. package/dist/preprocessor/Preprocessor.spec.js +25 -25
  186. package/dist/preprocessor/Preprocessor.spec.js.map +1 -1
  187. package/dist/preprocessor/PreprocessorParser.d.ts +1 -1
  188. package/dist/preprocessor/PreprocessorParser.js +1 -1
  189. package/dist/preprocessor/PreprocessorParser.spec.js +13 -13
  190. package/dist/preprocessor/PreprocessorParser.spec.js.map +1 -1
  191. package/dist/types/ArrayType.spec.js +9 -9
  192. package/dist/types/ArrayType.spec.js.map +1 -1
  193. package/dist/types/BooleanType.spec.js +3 -3
  194. package/dist/types/BooleanType.spec.js.map +1 -1
  195. package/dist/types/DoubleType.spec.js +3 -3
  196. package/dist/types/DoubleType.spec.js.map +1 -1
  197. package/dist/types/DynamicType.d.ts +0 -1
  198. package/dist/types/DynamicType.js +0 -1
  199. package/dist/types/DynamicType.js.map +1 -1
  200. package/dist/types/DynamicType.spec.js +3 -3
  201. package/dist/types/DynamicType.spec.js.map +1 -1
  202. package/dist/types/FloatType.spec.js +3 -3
  203. package/dist/types/FloatType.spec.js.map +1 -1
  204. package/dist/types/FunctionType.spec.js +6 -6
  205. package/dist/types/FunctionType.spec.js.map +1 -1
  206. package/dist/types/IntegerType.spec.js +3 -3
  207. package/dist/types/IntegerType.spec.js.map +1 -1
  208. package/dist/types/InterfaceType.spec.js +8 -8
  209. package/dist/types/InterfaceType.spec.js.map +1 -1
  210. package/dist/types/InvalidType.spec.js +3 -3
  211. package/dist/types/InvalidType.spec.js.map +1 -1
  212. package/dist/types/LongIntegerType.spec.js +3 -3
  213. package/dist/types/LongIntegerType.spec.js.map +1 -1
  214. package/dist/types/ObjectType.spec.js +3 -3
  215. package/dist/types/ObjectType.spec.js.map +1 -1
  216. package/dist/types/StringType.spec.js +3 -3
  217. package/dist/types/StringType.spec.js.map +1 -1
  218. package/dist/types/VoidType.spec.js +3 -3
  219. package/dist/types/VoidType.spec.js.map +1 -1
  220. package/dist/util.d.ts +21 -43
  221. package/dist/util.js +26 -54
  222. package/dist/util.js.map +1 -1
  223. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceType.spec.js","sourceRoot":"","sources":["../../src/types/InterfaceType.spec.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAC9B,iCAA+B;AAC/B,0DAAkD;AAElD,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,6CAA0C;AAC1C,6CAA0C;AAE1C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QACtB,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;YAClD,IAAA,aAAM,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;YAC7B,IAAA,aAAM,EAAC,K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IAC3C,OAAO,IAAI,6BAAa,CACpB,IAAA,8BAAW,EAAC,OAAO,CAAC,CACvB,CAAC;AACN,CAAC;AAED,SAAS,gBAAgB,CAAC,aAAsC,EAAE,aAAsC;IACpG,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IACzC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE;QAC1C,cAAM,CAAC,IAAI,CAAC,iBAAiB,WAAW,CAAC,QAAQ,EAAE,6BAA6B,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KAC7G;AACL,CAAC;AAED,SAAS,mBAAmB,CAAC,aAAsC,EAAE,aAAsC;IACvG,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IACzC,IAAI,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE;QACzC,cAAM,CAAC,IAAI,CAAC,iBAAiB,WAAW,CAAC,QAAQ,EAAE,iCAAiC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KACjH;AACL,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const chai_1 = require("chai");
3
+ const chai_config_spec_1 = require("../chai-config.spec");
4
4
  const DynamicType_1 = require("./DynamicType");
5
5
  const InvalidType_1 = require("./InvalidType");
6
6
  describe('InvalidType', () => {
7
7
  it('is equivalent to invalid types', () => {
8
- (0, chai_1.expect)(new InvalidType_1.InvalidType().isAssignableTo(new InvalidType_1.InvalidType())).to.be.true;
9
- (0, chai_1.expect)(new InvalidType_1.InvalidType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
8
+ (0, chai_config_spec_1.expect)(new InvalidType_1.InvalidType().isAssignableTo(new InvalidType_1.InvalidType())).to.be.true;
9
+ (0, chai_config_spec_1.expect)(new InvalidType_1.InvalidType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
10
10
  });
11
11
  });
12
12
  //# sourceMappingURL=InvalidType.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvalidType.spec.js","sourceRoot":"","sources":["../../src/types/InvalidType.spec.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAE9B,+CAA4C;AAC5C,+CAA4C;AAE5C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACtC,IAAA,aAAM,EAAC,IAAI,yBAAW,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACvE,IAAA,aAAM,EAAC,IAAI,yBAAW,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC3E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"InvalidType.spec.js","sourceRoot":"","sources":["../../src/types/InvalidType.spec.ts"],"names":[],"mappings":";;AAAA,0DAA6C;AAE7C,+CAA4C;AAC5C,+CAA4C;AAE5C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACtC,IAAA,yBAAM,EAAC,IAAI,yBAAW,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACvE,IAAA,yBAAM,EAAC,IAAI,yBAAW,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC3E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const chai_1 = require("chai");
3
+ const chai_config_spec_1 = require("../chai-config.spec");
4
4
  const DynamicType_1 = require("./DynamicType");
5
5
  const LongIntegerType_1 = require("./LongIntegerType");
6
6
  describe('LongIntegerType', () => {
7
7
  it('is equivalent to other long integer types', () => {
8
- (0, chai_1.expect)(new LongIntegerType_1.LongIntegerType().isAssignableTo(new LongIntegerType_1.LongIntegerType())).to.be.true;
9
- (0, chai_1.expect)(new LongIntegerType_1.LongIntegerType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
8
+ (0, chai_config_spec_1.expect)(new LongIntegerType_1.LongIntegerType().isAssignableTo(new LongIntegerType_1.LongIntegerType())).to.be.true;
9
+ (0, chai_config_spec_1.expect)(new LongIntegerType_1.LongIntegerType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
10
10
  });
11
11
  });
12
12
  //# sourceMappingURL=LongIntegerType.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LongIntegerType.spec.js","sourceRoot":"","sources":["../../src/types/LongIntegerType.spec.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAE9B,+CAA4C;AAC5C,uDAAoD;AAEpD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACjD,IAAA,aAAM,EAAC,IAAI,iCAAe,EAAE,CAAC,cAAc,CAAC,IAAI,iCAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC/E,IAAA,aAAM,EAAC,IAAI,iCAAe,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC/E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"LongIntegerType.spec.js","sourceRoot":"","sources":["../../src/types/LongIntegerType.spec.ts"],"names":[],"mappings":";;AAAA,0DAA6C;AAE7C,+CAA4C;AAC5C,uDAAoD;AAEpD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACjD,IAAA,yBAAM,EAAC,IAAI,iCAAe,EAAE,CAAC,cAAc,CAAC,IAAI,iCAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC/E,IAAA,yBAAM,EAAC,IAAI,iCAAe,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC/E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const chai_1 = require("chai");
3
+ const chai_config_spec_1 = require("../chai-config.spec");
4
4
  const DynamicType_1 = require("./DynamicType");
5
5
  const ObjectType_1 = require("./ObjectType");
6
6
  describe('ObjectType', () => {
7
7
  it('is equivalent to other object types', () => {
8
- (0, chai_1.expect)(new ObjectType_1.ObjectType().isAssignableTo(new ObjectType_1.ObjectType())).to.be.true;
9
- (0, chai_1.expect)(new ObjectType_1.ObjectType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
8
+ (0, chai_config_spec_1.expect)(new ObjectType_1.ObjectType().isAssignableTo(new ObjectType_1.ObjectType())).to.be.true;
9
+ (0, chai_config_spec_1.expect)(new ObjectType_1.ObjectType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
10
10
  });
11
11
  });
12
12
  //# sourceMappingURL=ObjectType.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectType.spec.js","sourceRoot":"","sources":["../../src/types/ObjectType.spec.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAE9B,+CAA4C;AAC5C,6CAA0C;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,IAAA,aAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACrE,IAAA,aAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC1E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ObjectType.spec.js","sourceRoot":"","sources":["../../src/types/ObjectType.spec.ts"],"names":[],"mappings":";;AAAA,0DAA6C;AAE7C,+CAA4C;AAC5C,6CAA0C;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,IAAA,yBAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACrE,IAAA,yBAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC1E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const chai_1 = require("chai");
3
+ const chai_config_spec_1 = require("../chai-config.spec");
4
4
  const DynamicType_1 = require("./DynamicType");
5
5
  const StringType_1 = require("./StringType");
6
6
  describe('StringType', () => {
7
7
  it('is equivalent to string types', () => {
8
- (0, chai_1.expect)(new StringType_1.StringType().isAssignableTo(new StringType_1.StringType())).to.be.true;
9
- (0, chai_1.expect)(new StringType_1.StringType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
8
+ (0, chai_config_spec_1.expect)(new StringType_1.StringType().isAssignableTo(new StringType_1.StringType())).to.be.true;
9
+ (0, chai_config_spec_1.expect)(new StringType_1.StringType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
10
10
  });
11
11
  });
12
12
  //# sourceMappingURL=StringType.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StringType.spec.js","sourceRoot":"","sources":["../../src/types/StringType.spec.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAE9B,+CAA4C;AAC5C,6CAA0C;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACrC,IAAA,aAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACrE,IAAA,aAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC1E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"StringType.spec.js","sourceRoot":"","sources":["../../src/types/StringType.spec.ts"],"names":[],"mappings":";;AAAA,0DAA6C;AAE7C,+CAA4C;AAC5C,6CAA0C;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACrC,IAAA,yBAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACrE,IAAA,yBAAM,EAAC,IAAI,uBAAU,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC1E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const chai_1 = require("chai");
3
+ const chai_config_spec_1 = require("../chai-config.spec");
4
4
  const DynamicType_1 = require("./DynamicType");
5
5
  const VoidType_1 = require("./VoidType");
6
6
  describe('VoidType', () => {
7
7
  it('is equivalent to dynamic types', () => {
8
- (0, chai_1.expect)(new VoidType_1.VoidType().isAssignableTo(new VoidType_1.VoidType())).to.be.true;
9
- (0, chai_1.expect)(new VoidType_1.VoidType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
8
+ (0, chai_config_spec_1.expect)(new VoidType_1.VoidType().isAssignableTo(new VoidType_1.VoidType())).to.be.true;
9
+ (0, chai_config_spec_1.expect)(new VoidType_1.VoidType().isAssignableTo(new DynamicType_1.DynamicType())).to.be.true;
10
10
  });
11
11
  });
12
12
  //# sourceMappingURL=VoidType.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VoidType.spec.js","sourceRoot":"","sources":["../../src/types/VoidType.spec.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAE9B,+CAA4C;AAC5C,yCAAsC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACtC,IAAA,aAAM,EAAC,IAAI,mBAAQ,EAAE,CAAC,cAAc,CAAC,IAAI,mBAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACjE,IAAA,aAAM,EAAC,IAAI,mBAAQ,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"VoidType.spec.js","sourceRoot":"","sources":["../../src/types/VoidType.spec.ts"],"names":[],"mappings":";;AAAA,0DAA6C;AAE7C,+CAA4C;AAC5C,yCAAsC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACtC,IAAA,yBAAM,EAAC,IAAI,mBAAQ,EAAE,CAAC,cAAc,CAAC,IAAI,mBAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACjE,IAAA,yBAAM,EAAC,IAAI,mBAAQ,EAAE,CAAC,cAAc,CAAC,IAAI,yBAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/dist/util.d.ts CHANGED
@@ -24,17 +24,14 @@ export declare class Util {
24
24
  clearConsole(): void;
25
25
  /**
26
26
  * Returns the number of parent directories in the filPath
27
- * @param filePath
28
27
  */
29
28
  getParentDirectoryCount(filePath: string | undefined): number;
30
29
  /**
31
30
  * Determine if the file exists
32
- * @param filePath
33
31
  */
34
32
  pathExists(filePath: string | undefined): Promise<boolean>;
35
33
  /**
36
34
  * Determine if the file exists
37
- * @param filePath
38
35
  */
39
36
  pathExistsSync(filePath: string | undefined): boolean;
40
37
  /**
@@ -55,74 +52,64 @@ export declare class Util {
55
52
  getRokuPkgPath(pkgPath: string): string;
56
53
  /**
57
54
  * Given a path to a file/directory, replace all path separators with the current system's version.
58
- * @param filePath
59
55
  */
60
56
  pathSepNormalize(filePath: string, separator?: string): string;
61
57
  /**
62
58
  * Find the path to the config file.
63
59
  * If the config file path doesn't exist
64
- * @param configFilePath
60
+ * @param cwd the current working directory where the search for configs should begin
65
61
  */
66
62
  getConfigFilePath(cwd?: string): string;
67
63
  getRangeFromOffsetLength(text: string, offset: number, length: number): Range;
68
64
  /**
69
65
  * Load the contents of a config file.
70
66
  * If the file extends another config, this will load the base config as well.
71
- * @param configFilePath
72
- * @param parentProjectPaths
67
+ * @param configFilePath the relative or absolute path to a brighterscript config json file
68
+ * @param parentProjectPaths a list of parent config files. This is used by this method to recursively build the config list
73
69
  */
74
70
  loadConfigFile(configFilePath: string, parentProjectPaths?: string[], cwd?: string): BsConfig;
75
71
  /**
76
72
  * Convert relative paths to absolute paths, relative to the given directory. Also de-dupes the paths. Modifies the array in-place
77
- * @param paths the list of paths to be resolved and deduped
73
+ * @param collection usually a bsconfig.
74
+ * @param key a key of the config to read paths from (usually this is `'plugins'` or `'require'`)
78
75
  * @param relativeDir the path to the folder where the paths should be resolved relative to. This should be an absolute path
79
76
  */
80
77
  resolvePathsRelativeTo(collection: any, key: string, relativeDir: string): void;
81
78
  /**
82
79
  * Do work within the scope of a changed current working directory
83
- * @param targetCwd
84
- * @param callback
80
+ * @param targetCwd the cwd where the work should be performed
81
+ * @param callback a function to call when the cwd has been changed to `targetCwd`
85
82
  */
86
83
  cwdWork<T>(targetCwd: string | null | undefined, callback: () => T): T;
87
84
  /**
88
85
  * Given a BsConfig object, start with defaults,
89
86
  * merge with bsconfig.json and the provided options.
90
- * @param config
87
+ * @param config a bsconfig object to use as the baseline for the resulting config
91
88
  */
92
89
  normalizeAndResolveConfig(config: BsConfig): BsConfig;
93
90
  /**
94
91
  * Set defaults for any missing items
95
- * @param config
92
+ * @param config a bsconfig object to use as the baseline for the resulting config
96
93
  */
97
94
  normalizeConfig(config: BsConfig): BsConfig;
98
95
  /**
99
96
  * Get the root directory from options.
100
97
  * Falls back to options.cwd.
101
98
  * Falls back to process.cwd
102
- * @param options
99
+ * @param options a bsconfig object
103
100
  */
104
101
  getRootDir(options: BsConfig): string;
105
- /**
106
- * Format a string with placeholders replaced by argument indexes
107
- * @param subject
108
- * @param params
109
- */
110
- stringFormat(subject: string, ...args: any[]): string;
111
102
  /**
112
103
  * Given a list of callables as a dictionary indexed by their full name (namespace included, transpiled to underscore-separated.
113
- * @param callables
114
104
  */
115
105
  getCallableContainersByLowerName(callables: CallableContainer[]): CallableContainerMap;
116
106
  /**
117
107
  * Split a file by newline characters (LF or CRLF)
118
- * @param text
119
108
  */
120
109
  getLines(text: string): string[];
121
110
  /**
122
111
  * Given an absolute path to a source file, and a target path,
123
112
  * compute the pkg path for the target relative to the source file's location
124
- * @param containingFilePathAbsolute
125
- * @param targetPath
126
113
  */
127
114
  getPkgPathFromTarget(containingFilePathAbsolute: string, targetPath: string): string;
128
115
  /**
@@ -158,26 +145,21 @@ export declare class Util {
158
145
  /**
159
146
  * Test if `position` is in `range`. If the position is at the edges, will return true.
160
147
  * Adapted from core vscode
161
- * @param range
162
- * @param position
163
148
  */
164
149
  rangeContains(range: Range, position: Position): boolean;
165
150
  comparePositionToRange(position: Position, range: Range): 1 | -1 | 0;
166
151
  /**
167
152
  * Parse an xml file and get back a javascript object containing its results
168
- * @param text
169
153
  */
170
154
  parseXml(text: string): Promise<any>;
171
155
  propertyCount(object: Record<string, unknown>): number;
172
156
  padLeft(subject: string, totalLength: number, char: string): string;
173
157
  /**
174
158
  * Given a URI, convert that to a regular fs path
175
- * @param uri
176
159
  */
177
160
  uriToPath(uri: string): string;
178
161
  /**
179
162
  * Force the drive letter to lower case
180
- * @param fullPath
181
163
  */
182
164
  driveLetterToLower(fullPath: string): string;
183
165
  /**
@@ -195,7 +177,6 @@ export declare class Util {
195
177
  pathToUri(filePath: string): string;
196
178
  /**
197
179
  * Get the outDir from options, taking into account cwd and absolute outFile paths
198
- * @param options
199
180
  */
200
181
  getOutDir(options: BsConfig): string;
201
182
  /**
@@ -209,25 +190,23 @@ export declare class Util {
209
190
  getTypedefPath(brsSrcPath: string): string;
210
191
  /**
211
192
  * Determine whether this diagnostic should be supressed or not, based on brs comment-flags
212
- * @param diagnostic
213
193
  */
214
194
  diagnosticIsSuppressed(diagnostic: BsDiagnostic): boolean;
215
195
  /**
216
- * Walks up the chain
217
- * @param currentPath
196
+ * Walks up the chain to find the closest bsconfig.json file
218
197
  */
219
198
  findClosestConfigFile(currentPath: string): Promise<string>;
220
199
  /**
221
200
  * Set a timeout for the specified milliseconds, and resolve the promise once the timeout is finished.
222
- * @param milliseconds
201
+ * @param milliseconds the minimum number of milliseconds to sleep for
223
202
  */
224
203
  sleep(milliseconds: number): Promise<unknown>;
225
204
  /**
226
205
  * Given an array, map and then flatten
227
- * @param arr
228
- * @param cb
206
+ * @param array the array to flatMap over
207
+ * @param callback a function that is called for every array item
229
208
  */
230
- flatMap<T, R>(array: T[], cb: (arg: T) => R): R;
209
+ flatMap<T, R>(array: T[], callback: (arg: T) => R): R;
231
210
  /**
232
211
  * Determines if the position is greater than the range. This means
233
212
  * the position does not touch the range, and has a position greater than the end
@@ -253,8 +232,6 @@ export declare class Util {
253
232
  }): boolean;
254
233
  /**
255
234
  * If the two items have lines that touch
256
- * @param first
257
- * @param second
258
235
  */
259
236
  linesTouch(first: {
260
237
  range: Range;
@@ -349,7 +326,7 @@ export declare class Util {
349
326
  * @param diagnostic the diagnostic to clone
350
327
  * @param relatedInformationFallbackLocation a default location to use for all `relatedInformation` entries that are missing a location
351
328
  */
352
- toDiagnostic(diagnostic: Diagnostic | BsDiagnostic, fileUri: string): {
329
+ toDiagnostic(diagnostic: Diagnostic | BsDiagnostic, relatedInformationFallbackLocation: string): {
353
330
  severity: import("vscode-languageserver-types").DiagnosticSeverity;
354
331
  range: Range;
355
332
  message: string;
@@ -361,9 +338,10 @@ export declare class Util {
361
338
  source: string;
362
339
  };
363
340
  /**
364
- * Get the first locatable item found at the specified position
365
- * @param position
366
- */
341
+ * Get the first locatable item found at the specified position
342
+ * @param locatables an array of items that have a `range` property
343
+ * @param position the position that the locatable must contain
344
+ */
367
345
  getFirstLocatableAt(locatables: Locatable[], position: Position): Locatable;
368
346
  /**
369
347
  * Sort an array of objects that have a Range
@@ -383,7 +361,7 @@ export declare class Util {
383
361
  mdFence(code: string, language?: string): string;
384
362
  /**
385
363
  * Gets each part of the dotted get.
386
- * @param expression
364
+ * @param expression any ast expression
387
365
  * @returns an array of the parts of the dotted get. If not fully a dotted get, then returns undefined
388
366
  */
389
367
  getAllDottedGetParts(expression: Expression): Identifier[] | undefined;
package/dist/util.js CHANGED
@@ -34,7 +34,6 @@ class Util {
34
34
  }
35
35
  /**
36
36
  * Returns the number of parent directories in the filPath
37
- * @param filePath
38
37
  */
39
38
  getParentDirectoryCount(filePath) {
40
39
  if (!filePath) {
@@ -46,7 +45,6 @@ class Util {
46
45
  }
47
46
  /**
48
47
  * Determine if the file exists
49
- * @param filePath
50
48
  */
51
49
  async pathExists(filePath) {
52
50
  if (!filePath) {
@@ -58,7 +56,6 @@ class Util {
58
56
  }
59
57
  /**
60
58
  * Determine if the file exists
61
- * @param filePath
62
59
  */
63
60
  pathExistsSync(filePath) {
64
61
  if (!filePath) {
@@ -100,7 +97,6 @@ class Util {
100
97
  }
101
98
  /**
102
99
  * Given a path to a file/directory, replace all path separators with the current system's version.
103
- * @param filePath
104
100
  */
105
101
  pathSepNormalize(filePath, separator) {
106
102
  if (!filePath) {
@@ -112,7 +108,7 @@ class Util {
112
108
  /**
113
109
  * Find the path to the config file.
114
110
  * If the config file path doesn't exist
115
- * @param configFilePath
111
+ * @param cwd the current working directory where the search for configs should begin
116
112
  */
117
113
  getConfigFilePath(cwd) {
118
114
  cwd = cwd !== null && cwd !== void 0 ? cwd : process.cwd();
@@ -151,8 +147,8 @@ class Util {
151
147
  /**
152
148
  * Load the contents of a config file.
153
149
  * If the file extends another config, this will load the base config as well.
154
- * @param configFilePath
155
- * @param parentProjectPaths
150
+ * @param configFilePath the relative or absolute path to a brighterscript config json file
151
+ * @param parentProjectPaths a list of parent config files. This is used by this method to recursively build the config list
156
152
  */
157
153
  loadConfigFile(configFilePath, parentProjectPaths, cwd = process.cwd()) {
158
154
  var _a;
@@ -221,7 +217,8 @@ class Util {
221
217
  }
222
218
  /**
223
219
  * Convert relative paths to absolute paths, relative to the given directory. Also de-dupes the paths. Modifies the array in-place
224
- * @param paths the list of paths to be resolved and deduped
220
+ * @param collection usually a bsconfig.
221
+ * @param key a key of the config to read paths from (usually this is `'plugins'` or `'require'`)
225
222
  * @param relativeDir the path to the folder where the paths should be resolved relative to. This should be an absolute path
226
223
  */
227
224
  resolvePathsRelativeTo(collection, key, relativeDir) {
@@ -239,8 +236,8 @@ class Util {
239
236
  }
240
237
  /**
241
238
  * Do work within the scope of a changed current working directory
242
- * @param targetCwd
243
- * @param callback
239
+ * @param targetCwd the cwd where the work should be performed
240
+ * @param callback a function to call when the cwd has been changed to `targetCwd`
244
241
  */
245
242
  cwdWork(targetCwd, callback) {
246
243
  let originalCwd = process.cwd();
@@ -268,7 +265,7 @@ class Util {
268
265
  /**
269
266
  * Given a BsConfig object, start with defaults,
270
267
  * merge with bsconfig.json and the provided options.
271
- * @param config
268
+ * @param config a bsconfig object to use as the baseline for the resulting config
272
269
  */
273
270
  normalizeAndResolveConfig(config) {
274
271
  let result = this.normalizeConfig({});
@@ -290,7 +287,7 @@ class Util {
290
287
  }
291
288
  /**
292
289
  * Set defaults for any missing items
293
- * @param config
290
+ * @param config a bsconfig object to use as the baseline for the resulting config
294
291
  */
295
292
  normalizeConfig(config) {
296
293
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -327,7 +324,7 @@ class Util {
327
324
  * Get the root directory from options.
328
325
  * Falls back to options.cwd.
329
326
  * Falls back to process.cwd
330
- * @param options
327
+ * @param options a bsconfig object
331
328
  */
332
329
  getRootDir(options) {
333
330
  if (!options) {
@@ -339,19 +336,8 @@ class Util {
339
336
  rootDir = path.resolve(cwd, rootDir);
340
337
  return rootDir;
341
338
  }
342
- /**
343
- * Format a string with placeholders replaced by argument indexes
344
- * @param subject
345
- * @param params
346
- */
347
- stringFormat(subject, ...args) {
348
- return subject.replace(/{(\d+)}/g, (match, num) => {
349
- return typeof args[num] !== 'undefined' ? args[num] : match;
350
- });
351
- }
352
339
  /**
353
340
  * Given a list of callables as a dictionary indexed by their full name (namespace included, transpiled to underscore-separated.
354
- * @param callables
355
341
  */
356
342
  getCallableContainersByLowerName(callables) {
357
343
  //find duplicate functions
@@ -371,7 +357,6 @@ class Util {
371
357
  }
372
358
  /**
373
359
  * Split a file by newline characters (LF or CRLF)
374
- * @param text
375
360
  */
376
361
  getLines(text) {
377
362
  return text.split(/\r?\n/);
@@ -379,8 +364,6 @@ class Util {
379
364
  /**
380
365
  * Given an absolute path to a source file, and a target path,
381
366
  * compute the pkg path for the target relative to the source file's location
382
- * @param containingFilePathAbsolute
383
- * @param targetPath
384
367
  */
385
368
  getPkgPathFromTarget(containingFilePathAbsolute, targetPath) {
386
369
  //if the target starts with 'pkg:', it's an absolute path. Return as is
@@ -512,8 +495,6 @@ class Util {
512
495
  /**
513
496
  * Test if `position` is in `range`. If the position is at the edges, will return true.
514
497
  * Adapted from core vscode
515
- * @param range
516
- * @param position
517
498
  */
518
499
  rangeContains(range, position) {
519
500
  return this.comparePositionToRange(position, range) === 0;
@@ -529,7 +510,6 @@ class Util {
529
510
  }
530
511
  /**
531
512
  * Parse an xml file and get back a javascript object containing its results
532
- * @param text
533
513
  */
534
514
  parseXml(text) {
535
515
  return new Promise((resolve, reject) => {
@@ -561,7 +541,6 @@ class Util {
561
541
  }
562
542
  /**
563
543
  * Given a URI, convert that to a regular fs path
564
- * @param uri
565
544
  */
566
545
  uriToPath(uri) {
567
546
  let parsedPath = vscode_uri_1.URI.parse(uri).fsPath;
@@ -576,7 +555,6 @@ class Util {
576
555
  }
577
556
  /**
578
557
  * Force the drive letter to lower case
579
- * @param fullPath
580
558
  */
581
559
  driveLetterToLower(fullPath) {
582
560
  if (fullPath) {
@@ -627,7 +605,6 @@ class Util {
627
605
  }
628
606
  /**
629
607
  * Get the outDir from options, taking into account cwd and absolute outFile paths
630
- * @param options
631
608
  */
632
609
  getOutDir(options) {
633
610
  options = this.normalizeConfig(options);
@@ -664,7 +641,6 @@ class Util {
664
641
  }
665
642
  /**
666
643
  * Determine whether this diagnostic should be supressed or not, based on brs comment-flags
667
- * @param diagnostic
668
644
  */
669
645
  diagnosticIsSuppressed(diagnostic) {
670
646
  var _a, _b;
@@ -680,8 +656,7 @@ class Util {
680
656
  }
681
657
  }
682
658
  /**
683
- * Walks up the chain
684
- * @param currentPath
659
+ * Walks up the chain to find the closest bsconfig.json file
685
660
  */
686
661
  async findClosestConfigFile(currentPath) {
687
662
  //make the path absolute
@@ -707,7 +682,7 @@ class Util {
707
682
  }
708
683
  /**
709
684
  * Set a timeout for the specified milliseconds, and resolve the promise once the timeout is finished.
710
- * @param milliseconds
685
+ * @param milliseconds the minimum number of milliseconds to sleep for
711
686
  */
712
687
  sleep(milliseconds) {
713
688
  return new Promise((resolve) => {
@@ -722,11 +697,11 @@ class Util {
722
697
  }
723
698
  /**
724
699
  * Given an array, map and then flatten
725
- * @param arr
726
- * @param cb
700
+ * @param array the array to flatMap over
701
+ * @param callback a function that is called for every array item
727
702
  */
728
- flatMap(array, cb) {
729
- return Array.prototype.concat.apply([], array.map(cb));
703
+ flatMap(array, callback) {
704
+ return Array.prototype.concat.apply([], array.map(callback));
730
705
  }
731
706
  /**
732
707
  * Determines if the position is greater than the range. This means
@@ -770,8 +745,6 @@ class Util {
770
745
  }
771
746
  /**
772
747
  * If the two items have lines that touch
773
- * @param first
774
- * @param second
775
748
  */
776
749
  linesTouch(first, second) {
777
750
  if (first && second && (first.range.start.line === second.range.start.line ||
@@ -936,8 +909,7 @@ class Util {
936
909
  tokensToString(tokens) {
937
910
  let result = '';
938
911
  //skip iterating the final token
939
- for (let i = 0; i < tokens.length; i++) {
940
- let token = tokens[i];
912
+ for (let token of tokens) {
941
913
  result += token.leadingWhitespace + token.text;
942
914
  }
943
915
  return result;
@@ -1158,7 +1130,7 @@ class Util {
1158
1130
  * @param diagnostic the diagnostic to clone
1159
1131
  * @param relatedInformationFallbackLocation a default location to use for all `relatedInformation` entries that are missing a location
1160
1132
  */
1161
- toDiagnostic(diagnostic, fileUri) {
1133
+ toDiagnostic(diagnostic, relatedInformationFallbackLocation) {
1162
1134
  var _a;
1163
1135
  return {
1164
1136
  severity: diagnostic.severity,
@@ -1169,8 +1141,8 @@ class Util {
1169
1141
  const clone = Object.assign({}, x);
1170
1142
  if (!clone.location) {
1171
1143
  // use the fallback location if available
1172
- if (fileUri) {
1173
- clone.location = exports.util.createLocation(fileUri, diagnostic.range);
1144
+ if (relatedInformationFallbackLocation) {
1145
+ clone.location = exports.util.createLocation(relatedInformationFallbackLocation, diagnostic.range);
1174
1146
  }
1175
1147
  else {
1176
1148
  //remove this related information so it doesn't bring crash the language server
@@ -1185,9 +1157,10 @@ class Util {
1185
1157
  };
1186
1158
  }
1187
1159
  /**
1188
- * Get the first locatable item found at the specified position
1189
- * @param position
1190
- */
1160
+ * Get the first locatable item found at the specified position
1161
+ * @param locatables an array of items that have a `range` property
1162
+ * @param position the position that the locatable must contain
1163
+ */
1191
1164
  getFirstLocatableAt(locatables, position) {
1192
1165
  for (let token of locatables) {
1193
1166
  if (exports.util.rangeContains(token.range, position)) {
@@ -1240,8 +1213,7 @@ class Util {
1240
1213
  const chunks = text.split(separator);
1241
1214
  const result = [];
1242
1215
  let offset = 0;
1243
- for (let i = 0; i < chunks.length; i++) {
1244
- const chunk = chunks[i];
1216
+ for (let chunk of chunks) {
1245
1217
  //only keep nonzero chunks
1246
1218
  if (chunk.length > 0) {
1247
1219
  result.push({
@@ -1261,7 +1233,7 @@ class Util {
1261
1233
  }
1262
1234
  /**
1263
1235
  * Gets each part of the dotted get.
1264
- * @param expression
1236
+ * @param expression any ast expression
1265
1237
  * @returns an array of the parts of the dotted get. If not fully a dotted get, then returns undefined
1266
1238
  */
1267
1239
  getAllDottedGetParts(expression) {