@apple/tree-sitter-pkl 0.17.0 → 0.18.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 (699) hide show
  1. package/.editorconfig +46 -0
  2. package/.gitattributes +50 -0
  3. package/CHANGELOG.adoc +56 -0
  4. package/CMakeLists.txt +66 -0
  5. package/Cargo.lock +21 -21
  6. package/Cargo.toml +1 -1
  7. package/Makefile +97 -0
  8. package/README.md +11 -13
  9. package/bindings/c/tree-sitter-pkl.pc.in +10 -0
  10. package/bindings/c/tree_sitter/tree-sitter-pkl.h +16 -0
  11. package/bindings/go/binding.go +15 -0
  12. package/bindings/go/binding_test.go +15 -0
  13. package/bindings/node/binding_test.js +9 -0
  14. package/bindings/node/index.d.ts +27 -0
  15. package/bindings/python/tests/test_binding.py +12 -0
  16. package/bindings/python/tree_sitter_pkl/__init__.py +42 -0
  17. package/bindings/python/tree_sitter_pkl/__init__.pyi +10 -0
  18. package/bindings/python/tree_sitter_pkl/binding.c +35 -0
  19. package/bindings/python/tree_sitter_pkl/py.typed +0 -0
  20. package/bindings/swift/TreeSitterPklTests/TreeSitterPklTests.swift +12 -0
  21. package/go.mod +7 -0
  22. package/go.sum +36 -0
  23. package/gradle.properties +5 -0
  24. package/gradlew +251 -0
  25. package/gradlew.bat +94 -0
  26. package/grammar.js +225 -195
  27. package/licenserc.toml +23 -0
  28. package/package.json +3 -2
  29. package/pyproject.toml +29 -0
  30. package/queries/highlights.scm +11 -16
  31. package/queries/injections.scm +1 -1
  32. package/queries/locals.scm +2 -2
  33. package/scripts/license-header.txt +13 -0
  34. package/setup.py +77 -0
  35. package/src/grammar.json +939 -883
  36. package/src/node-types.json +4392 -2028
  37. package/src/parser.c +30848 -34740
  38. package/src/scanner.c +43 -7
  39. package/src/tree_sitter/alloc.h +4 -4
  40. package/src/tree_sitter/array.h +2 -1
  41. package/src/tree_sitter/parser.h +29 -7
  42. package/test/corpus/basic/annotation.txt +28 -30
  43. package/test/corpus/basic/comments.txt +5 -5
  44. package/test/corpus/basic/shebangComment.txt +1 -1
  45. package/test/corpus/basic/types.txt +86 -131
  46. package/test/corpus/class/constModifier.txt +4 -5
  47. package/test/corpus/class/fixedModifier.txt +4 -5
  48. package/test/corpus/expr/binary.txt +75 -77
  49. package/test/corpus/expr/binary2.txt +18 -0
  50. package/test/corpus/expr/functionLiteral.txt +7 -8
  51. package/test/corpus/expr/if.txt +3 -3
  52. package/test/corpus/expr/import.txt +1 -1
  53. package/test/corpus/expr/let.txt +2 -2
  54. package/test/corpus/expr/new.txt +8 -10
  55. package/test/corpus/expr/qualifiedAccess.txt +34 -27
  56. package/test/corpus/expr/read.txt +8 -11
  57. package/test/corpus/expr/subscript.txt +48 -0
  58. package/test/corpus/expr/super.txt +27 -0
  59. package/test/corpus/expr/throw.txt +2 -3
  60. package/test/corpus/expr/trace.txt +2 -3
  61. package/test/corpus/expr/typeTest.txt +40 -0
  62. package/test/corpus/expr/unaryMinus.txt +22 -0
  63. package/test/corpus/module/moduleHeader1.txt +1 -1
  64. package/test/corpus/module/moduleHeader2.txt +1 -1
  65. package/test/corpus/module/moduleHeader3.error.txt +5 -5
  66. package/test/corpus/module/moduleHeader4.txt +1 -1
  67. package/test/corpus/number/underscores.txt +25 -25
  68. package/test/corpus/object/mixedEntriesAndElements.txt +52 -0
  69. package/test/corpus/object/objectAmendChain.txt +4 -4
  70. package/test/corpus/object/objectBodyParams.txt +21 -0
  71. package/test/corpus/object/objectElementWithTypeConstraint +30 -0
  72. package/test/corpus/object/objectElementsWithParens.txt +10 -10
  73. package/test/corpus/object/objectElementsWithTypeParams +65 -0
  74. package/test/corpus/object/objectGenerator.txt +8 -8
  75. package/test/corpus/object/objectMember.txt +27 -27
  76. package/test/corpus/object/objectMemberPredicate.txt +14 -14
  77. package/test/corpus/object/objectSpread.txt +8 -8
  78. package/test/corpus/object/objectWhenGenerator.txt +10 -10
  79. package/test/corpus/snippetTests/annotation/annotation1.txt +284 -0
  80. package/test/corpus/snippetTests/annotation/annotation2.txt +20 -0
  81. package/test/corpus/snippetTests/annotation/annotation3.txt +24 -0
  82. package/test/corpus/snippetTests/annotation/annotation4.txt +32 -0
  83. package/test/corpus/snippetTests/annotation/annotation5.txt +28 -0
  84. package/test/corpus/snippetTests/annotation/annotation6.txt +19 -0
  85. package/test/corpus/snippetTests/annotation/annotationIsNotExpression.txt +29 -0
  86. package/test/corpus/snippetTests/annotation/deprecated1.txt +385 -0
  87. package/test/corpus/snippetTests/annotation/deprecated2.txt +99 -0
  88. package/test/corpus/snippetTests/annotation/deprecated3.txt +155 -0
  89. package/test/corpus/snippetTests/annotation/deprecatedNoRepeatedWarnings.txt +58 -0
  90. package/test/corpus/snippetTests/annotation/deprecatedWithMessage1.txt +405 -0
  91. package/test/corpus/snippetTests/annotation/deprecatedWithMessage2.txt +104 -0
  92. package/test/corpus/snippetTests/annotation/deprecatedWithMessage3.txt +155 -0
  93. package/test/corpus/snippetTests/annotation/deprecationSuperMethod.txt +144 -0
  94. package/test/corpus/snippetTests/api/Resource.txt +128 -0
  95. package/test/corpus/snippetTests/api/analyze1.txt +176 -0
  96. package/test/corpus/snippetTests/api/any.txt +523 -0
  97. package/test/corpus/snippetTests/api/anyConverter.txt +161 -0
  98. package/test/corpus/snippetTests/api/baseModule.txt +170 -0
  99. package/test/corpus/snippetTests/api/dataSize.txt +1165 -0
  100. package/test/corpus/snippetTests/api/duration.txt +800 -0
  101. package/test/corpus/snippetTests/api/float.txt +1334 -0
  102. package/test/corpus/snippetTests/api/int.txt +1142 -0
  103. package/test/corpus/snippetTests/api/intseq.txt +1021 -0
  104. package/test/corpus/snippetTests/api/jsonParser1.txt +279 -0
  105. package/test/corpus/snippetTests/api/jsonParser2.txt +294 -0
  106. package/test/corpus/snippetTests/api/jsonParser3.txt +143 -0
  107. package/test/corpus/snippetTests/api/jsonParser4.txt +112 -0
  108. package/test/corpus/snippetTests/api/jsonParser5.txt +171 -0
  109. package/test/corpus/snippetTests/api/jsonRenderer1.json.txt +41 -0
  110. package/test/corpus/snippetTests/api/jsonRenderer2b.txt +300 -0
  111. package/test/corpus/snippetTests/api/jsonRenderer3.json.txt +334 -0
  112. package/test/corpus/snippetTests/api/jsonRenderer4.txt +388 -0
  113. package/test/corpus/snippetTests/api/jsonRenderer5.txt +388 -0
  114. package/test/corpus/snippetTests/api/jsonRenderer6.json.txt +163 -0
  115. package/test/corpus/snippetTests/api/jsonRenderer7.txt +53 -0
  116. package/test/corpus/snippetTests/api/jsonRenderer8.txt +30 -0
  117. package/test/corpus/snippetTests/api/jsonRendererEmptyComposites.txt +114 -0
  118. package/test/corpus/snippetTests/api/jsonnetRenderer3.jsonnet.txt +356 -0
  119. package/test/corpus/snippetTests/api/jsonnetRenderer4.txt +393 -0
  120. package/test/corpus/snippetTests/api/jsonnetRenderer5.txt +393 -0
  121. package/test/corpus/snippetTests/api/jsonnetRenderer6.jsonnet.txt +169 -0
  122. package/test/corpus/snippetTests/api/jsonnetRenderer7.txt +36 -0
  123. package/test/corpus/snippetTests/api/list.txt +4432 -0
  124. package/test/corpus/snippetTests/api/listNullable.txt +1513 -0
  125. package/test/corpus/snippetTests/api/map.txt +1144 -0
  126. package/test/corpus/snippetTests/api/mapping.txt +948 -0
  127. package/test/corpus/snippetTests/api/mathModule.txt +1426 -0
  128. package/test/corpus/snippetTests/api/module.txt +77 -0
  129. package/test/corpus/snippetTests/api/moduleOutput.txt +24 -0
  130. package/test/corpus/snippetTests/api/moduleOutput2.txt +25 -0
  131. package/test/corpus/snippetTests/api/pListRenderer1.plist.txt +41 -0
  132. package/test/corpus/snippetTests/api/pListRenderer3.plist.txt +348 -0
  133. package/test/corpus/snippetTests/api/pListRenderer4.txt +375 -0
  134. package/test/corpus/snippetTests/api/pListRenderer5.txt +424 -0
  135. package/test/corpus/snippetTests/api/pListRenderer6.plist.txt +163 -0
  136. package/test/corpus/snippetTests/api/pListRenderer7.txt +30 -0
  137. package/test/corpus/snippetTests/api/pair.txt +170 -0
  138. package/test/corpus/snippetTests/api/pcfRenderer1.txt +95 -0
  139. package/test/corpus/snippetTests/api/pcfRenderer2b.txt +301 -0
  140. package/test/corpus/snippetTests/api/pcfRenderer3.txt +350 -0
  141. package/test/corpus/snippetTests/api/pcfRenderer4.txt +391 -0
  142. package/test/corpus/snippetTests/api/pcfRenderer5.txt +460 -0
  143. package/test/corpus/snippetTests/api/pcfRenderer6.txt +118 -0
  144. package/test/corpus/snippetTests/api/pcfRenderer8.txt +16 -0
  145. package/test/corpus/snippetTests/api/platformModule.txt +147 -0
  146. package/test/corpus/snippetTests/api/plistRenderer2b.txt +300 -0
  147. package/test/corpus/snippetTests/api/propertiesRenderer1.properties.txt +41 -0
  148. package/test/corpus/snippetTests/api/propertiesRenderer10.properties.txt +24 -0
  149. package/test/corpus/snippetTests/api/propertiesRenderer11.txt +30 -0
  150. package/test/corpus/snippetTests/api/propertiesRenderer2b.txt +303 -0
  151. package/test/corpus/snippetTests/api/propertiesRenderer4.txt +484 -0
  152. package/test/corpus/snippetTests/api/propertiesRenderer5.txt +491 -0
  153. package/test/corpus/snippetTests/api/propertiesRenderer8.properties.txt +628 -0
  154. package/test/corpus/snippetTests/api/propertiesRenderer9.properties.txt +292 -0
  155. package/test/corpus/snippetTests/api/propertiesRendererBug66849708.properties.txt +106 -0
  156. package/test/corpus/snippetTests/api/protobuf2.txt +408 -0
  157. package/test/corpus/snippetTests/api/reflect1.txt +1686 -0
  158. package/test/corpus/snippetTests/api/reflect2.txt +480 -0
  159. package/test/corpus/snippetTests/api/reflect3.txt +193 -0
  160. package/test/corpus/snippetTests/api/reflectedDeclaration.txt +64 -0
  161. package/test/corpus/snippetTests/api/regex.txt +320 -0
  162. package/test/corpus/snippetTests/api/releaseModule.txt +262 -0
  163. package/test/corpus/snippetTests/api/renderDirective2.txt +374 -0
  164. package/test/corpus/snippetTests/api/semverModule.txt +2224 -0
  165. package/test/corpus/snippetTests/api/set.txt +3891 -0
  166. package/test/corpus/snippetTests/api/setNullable.txt +1113 -0
  167. package/test/corpus/snippetTests/api/typeAliases.txt +449 -0
  168. package/test/corpus/snippetTests/api/typeConverters.txt +211 -0
  169. package/test/corpus/snippetTests/api/xmlRenderer1.xml.txt +174 -0
  170. package/test/corpus/snippetTests/api/xmlRenderer2b.txt +306 -0
  171. package/test/corpus/snippetTests/api/xmlRenderer3.xml.txt +320 -0
  172. package/test/corpus/snippetTests/api/xmlRenderer4.txt +401 -0
  173. package/test/corpus/snippetTests/api/xmlRenderer5.txt +402 -0
  174. package/test/corpus/snippetTests/api/xmlRenderer6.xml.txt +169 -0
  175. package/test/corpus/snippetTests/api/xmlRenderer8.txt +36 -0
  176. package/test/corpus/snippetTests/api/xmlRendererCData.xml.txt +48 -0
  177. package/test/corpus/snippetTests/api/xmlRendererElement.xml.txt +103 -0
  178. package/test/corpus/snippetTests/api/xmlRendererHtml.xml.txt +212 -0
  179. package/test/corpus/snippetTests/api/xmlRendererInline.xml.txt +175 -0
  180. package/test/corpus/snippetTests/api/xmlRendererInline3.xml.txt +152 -0
  181. package/test/corpus/snippetTests/api/yamlParser1Yaml11.txt +22 -0
  182. package/test/corpus/snippetTests/api/yamlParser1Yaml12.txt +22 -0
  183. package/test/corpus/snippetTests/api/yamlParser2.txt +253 -0
  184. package/test/corpus/snippetTests/api/yamlParser3.txt +194 -0
  185. package/test/corpus/snippetTests/api/yamlParser4.txt +198 -0
  186. package/test/corpus/snippetTests/api/yamlParser5.txt +86 -0
  187. package/test/corpus/snippetTests/api/yamlParser6.txt +92 -0
  188. package/test/corpus/snippetTests/api/yamlRenderer1.yml.txt +41 -0
  189. package/test/corpus/snippetTests/api/yamlRenderer2b.txt +300 -0
  190. package/test/corpus/snippetTests/api/yamlRenderer3.yml.txt +342 -0
  191. package/test/corpus/snippetTests/api/yamlRenderer4.txt +441 -0
  192. package/test/corpus/snippetTests/api/yamlRenderer5.txt +441 -0
  193. package/test/corpus/snippetTests/api/yamlRenderer6.yml.txt +163 -0
  194. package/test/corpus/snippetTests/api/yamlRenderer7.txt +30 -0
  195. package/test/corpus/snippetTests/api/yamlRenderer8.yml.txt +142 -0
  196. package/test/corpus/snippetTests/api/yamlRendererBug66849708.yml.txt +106 -0
  197. package/test/corpus/snippetTests/api/yamlRendererEmpty.yml.txt +326 -0
  198. package/test/corpus/snippetTests/api/yamlRendererIndentationWidth2.yml.txt +227 -0
  199. package/test/corpus/snippetTests/api/yamlRendererIndentationWidth4.yml.txt +32 -0
  200. package/test/corpus/snippetTests/api/yamlRendererIndentationWidth5.yml.txt +32 -0
  201. package/test/corpus/snippetTests/api/yamlRendererStream1.txt +140 -0
  202. package/test/corpus/snippetTests/api/yamlRendererStringsYaml11.txt +22 -0
  203. package/test/corpus/snippetTests/api/yamlRendererStringsYaml12.txt +22 -0
  204. package/test/corpus/snippetTests/basic/amendsChains.txt +275 -0
  205. package/test/corpus/snippetTests/basic/as.txt +1468 -0
  206. package/test/corpus/snippetTests/basic/as2.txt +1077 -0
  207. package/test/corpus/snippetTests/basic/as3.txt +297 -0
  208. package/test/corpus/snippetTests/basic/baseModule.txt +11 -0
  209. package/test/corpus/snippetTests/basic/boolean.txt +430 -0
  210. package/test/corpus/snippetTests/basic/constModifier.txt +324 -0
  211. package/test/corpus/snippetTests/basic/constModifier2.txt +227 -0
  212. package/test/corpus/snippetTests/basic/constModifier3.txt +136 -0
  213. package/test/corpus/snippetTests/basic/constModifier4.txt +64 -0
  214. package/test/corpus/snippetTests/basic/constModifier5.txt +68 -0
  215. package/test/corpus/snippetTests/basic/dataSize.txt +658 -0
  216. package/test/corpus/snippetTests/basic/duration.txt +618 -0
  217. package/test/corpus/snippetTests/basic/exceptions.txt +18 -0
  218. package/test/corpus/snippetTests/basic/fixedProperty1.txt +62 -0
  219. package/test/corpus/snippetTests/basic/fixedProperty2.txt +33 -0
  220. package/test/corpus/snippetTests/basic/fixedProperty3.txt +31 -0
  221. package/test/corpus/snippetTests/basic/fixedProperty4.txt +15 -0
  222. package/test/corpus/snippetTests/basic/fixedProperty5.txt +20 -0
  223. package/test/corpus/snippetTests/basic/fixedProperty6.txt +15 -0
  224. package/test/corpus/snippetTests/basic/if.txt +83 -0
  225. package/test/corpus/snippetTests/basic/import1.txt +51 -0
  226. package/test/corpus/snippetTests/basic/import1b.txt +51 -0
  227. package/test/corpus/snippetTests/basic/import2.txt +34 -0
  228. package/test/corpus/snippetTests/basic/import3.txt +34 -0
  229. package/test/corpus/snippetTests/basic/imported.txt +19 -0
  230. package/test/corpus/snippetTests/basic/indexExpressions.txt +53 -0
  231. package/test/corpus/snippetTests/basic/intseq.txt +365 -0
  232. package/test/corpus/snippetTests/basic/is.txt +1504 -0
  233. package/test/corpus/snippetTests/basic/is2.txt +677 -0
  234. package/test/corpus/snippetTests/basic/let.txt +515 -0
  235. package/test/corpus/snippetTests/basic/letTyped.txt +293 -0
  236. package/test/corpus/snippetTests/basic/list.txt +252 -0
  237. package/test/corpus/snippetTests/basic/localMethodDynamicBinding.txt +187 -0
  238. package/test/corpus/snippetTests/basic/localMethodInAmendingModule.txt +216 -0
  239. package/test/corpus/snippetTests/basic/localMethodOverride1.txt +152 -0
  240. package/test/corpus/snippetTests/basic/localMethodOverride2.txt +173 -0
  241. package/test/corpus/snippetTests/basic/localMethodTyped.txt +564 -0
  242. package/test/corpus/snippetTests/basic/localMethodTyped2.txt +580 -0
  243. package/test/corpus/snippetTests/basic/localMethodTyped3.txt +218 -0
  244. package/test/corpus/snippetTests/basic/localMethodTyped4.txt +232 -0
  245. package/test/corpus/snippetTests/basic/localMethodTyped5.txt +211 -0
  246. package/test/corpus/snippetTests/basic/localMethodTyped6.txt +225 -0
  247. package/test/corpus/snippetTests/basic/localMethodUntyped.txt +488 -0
  248. package/test/corpus/snippetTests/basic/localModuleMemberOverride1.txt +227 -0
  249. package/test/corpus/snippetTests/basic/localModuleMemberOverride2.txt +202 -0
  250. package/test/corpus/snippetTests/basic/localProperty1.txt +33 -0
  251. package/test/corpus/snippetTests/basic/localProperty2.txt +77 -0
  252. package/test/corpus/snippetTests/basic/localPropertyAmendInAmendingModule.txt +25 -0
  253. package/test/corpus/snippetTests/basic/localPropertyInAmendingModule.txt +205 -0
  254. package/test/corpus/snippetTests/basic/localPropertyOverride1.txt +131 -0
  255. package/test/corpus/snippetTests/basic/localPropertyOverride2.txt +152 -0
  256. package/test/corpus/snippetTests/basic/localPropertyOverride3.txt +52 -0
  257. package/test/corpus/snippetTests/basic/localTypedClassMember.txt +277 -0
  258. package/test/corpus/snippetTests/basic/localTypedModuleMember.txt +265 -0
  259. package/test/corpus/snippetTests/basic/localTypedObjectMember.txt +268 -0
  260. package/test/corpus/snippetTests/basic/map.txt +398 -0
  261. package/test/corpus/snippetTests/basic/minPklVersion.txt +40 -0
  262. package/test/corpus/snippetTests/basic/moduleRef1.txt +108 -0
  263. package/test/corpus/snippetTests/basic/moduleRef2.txt +80 -0
  264. package/test/corpus/snippetTests/basic/moduleRef3.txt +112 -0
  265. package/test/corpus/snippetTests/basic/moduleRefLibrary.txt +33 -0
  266. package/test/corpus/snippetTests/basic/new.txt +1028 -0
  267. package/test/corpus/snippetTests/basic/newInAmendingModuleMethod.txt +116 -0
  268. package/test/corpus/snippetTests/basic/newInsideIf.txt +841 -0
  269. package/test/corpus/snippetTests/basic/newInsideLet.txt +869 -0
  270. package/test/corpus/snippetTests/basic/newType.txt +686 -0
  271. package/test/corpus/snippetTests/basic/nonNull.txt +131 -0
  272. package/test/corpus/snippetTests/basic/nullable.txt +239 -0
  273. package/test/corpus/snippetTests/basic/objectMember.txt +129 -0
  274. package/test/corpus/snippetTests/basic/objectMemberInvalid.txt +18 -0
  275. package/test/corpus/snippetTests/basic/objectMemberInvalid2.txt +18 -0
  276. package/test/corpus/snippetTests/basic/objectMemberInvalid3.txt +22 -0
  277. package/test/corpus/snippetTests/basic/parens.txt +59 -0
  278. package/test/corpus/snippetTests/basic/propertyDefaults.txt +126 -0
  279. package/test/corpus/snippetTests/basic/read.txt +250 -0
  280. package/test/corpus/snippetTests/basic/readGlob.txt +209 -0
  281. package/test/corpus/snippetTests/basic/semicolon.txt +18 -0
  282. package/test/corpus/snippetTests/basic/set.txt +340 -0
  283. package/test/corpus/snippetTests/basic/trace.txt +130 -0
  284. package/test/corpus/snippetTests/basic/typeResolution1.txt +31 -0
  285. package/test/corpus/snippetTests/basic/typeResolution2.txt +37 -0
  286. package/test/corpus/snippetTests/basic/typeResolution3.txt +63 -0
  287. package/test/corpus/snippetTests/basic/typeResolution4.txt +61 -0
  288. package/test/corpus/snippetTests/basic/underscore.txt +419 -0
  289. package/test/corpus/snippetTests/classes/class1.txt +54 -0
  290. package/test/corpus/snippetTests/classes/class2.txt +123 -0
  291. package/test/corpus/snippetTests/classes/class2a.txt +110 -0
  292. package/test/corpus/snippetTests/classes/class3.txt +65 -0
  293. package/test/corpus/snippetTests/classes/class4.txt +58 -0
  294. package/test/corpus/snippetTests/classes/constraints1.txt +141 -0
  295. package/test/corpus/snippetTests/classes/constraints11.txt +201 -0
  296. package/test/corpus/snippetTests/classes/constraints12.txt +204 -0
  297. package/test/corpus/snippetTests/classes/constraints13.txt +86 -0
  298. package/test/corpus/snippetTests/classes/constraints14.txt +39 -0
  299. package/test/corpus/snippetTests/classes/constraints2.txt +69 -0
  300. package/test/corpus/snippetTests/classes/constraints3.txt +97 -0
  301. package/test/corpus/snippetTests/classes/constraints4.txt +86 -0
  302. package/test/corpus/snippetTests/classes/constraints5.txt +71 -0
  303. package/test/corpus/snippetTests/classes/constraints6.txt +85 -0
  304. package/test/corpus/snippetTests/classes/constraints7.txt +148 -0
  305. package/test/corpus/snippetTests/classes/constraints8.txt +103 -0
  306. package/test/corpus/snippetTests/classes/constraints9.txt +92 -0
  307. package/test/corpus/snippetTests/classes/constraintsLambdaThis.txt +216 -0
  308. package/test/corpus/snippetTests/classes/equality.txt +123 -0
  309. package/test/corpus/snippetTests/classes/externalClass.txt +12 -0
  310. package/test/corpus/snippetTests/classes/externalFunction.txt +18 -0
  311. package/test/corpus/snippetTests/classes/externalProperty.txt +20 -0
  312. package/test/corpus/snippetTests/classes/functions1.txt +77 -0
  313. package/test/corpus/snippetTests/classes/functions2.txt +56 -0
  314. package/test/corpus/snippetTests/classes/functions3.txt +81 -0
  315. package/test/corpus/snippetTests/classes/functions4.txt +125 -0
  316. package/test/corpus/snippetTests/classes/inheritance1.txt +98 -0
  317. package/test/corpus/snippetTests/classes/inheritance2.txt +91 -0
  318. package/test/corpus/snippetTests/classes/invalidInstantiation1.txt +16 -0
  319. package/test/corpus/snippetTests/classes/invalidInstantiation2.txt +21 -0
  320. package/test/corpus/snippetTests/classes/lambdaConstraints1.txt +190 -0
  321. package/test/corpus/snippetTests/classes/listConstraints1.txt +312 -0
  322. package/test/corpus/snippetTests/classes/mapConstraints1.txt +495 -0
  323. package/test/corpus/snippetTests/classes/nullableTypes.txt +187 -0
  324. package/test/corpus/snippetTests/classes/setConstraints1.txt +312 -0
  325. package/test/corpus/snippetTests/classes/supercalls.txt +317 -0
  326. package/test/corpus/snippetTests/classes/unionTypes.txt +543 -0
  327. package/test/corpus/snippetTests/classes/unionTypesErrorAlias.txt +93 -0
  328. package/test/corpus/snippetTests/classes/unionTypesErrorDifferent1.txt +47 -0
  329. package/test/corpus/snippetTests/classes/unionTypesErrorDifferent2.txt +52 -0
  330. package/test/corpus/snippetTests/classes/unionTypesErrorMultipleAliases.txt +36 -0
  331. package/test/corpus/snippetTests/classes/unionTypesErrorNested.txt +99 -0
  332. package/test/corpus/snippetTests/classes/unionTypesErrorSimple.txt +42 -0
  333. package/test/corpus/snippetTests/classes/unionTypesErrorString1.txt +43 -0
  334. package/test/corpus/snippetTests/classes/unionTypesErrorString2.txt +85 -0
  335. package/test/corpus/snippetTests/classes/wrongType1.txt +34 -0
  336. package/test/corpus/snippetTests/classes/wrongType2.txt +47 -0
  337. package/test/corpus/snippetTests/classes/wrongType3.txt +71 -0
  338. package/test/corpus/snippetTests/classes/wrongType4.txt +77 -0
  339. package/test/corpus/snippetTests/classes/wrongType6.txt +43 -0
  340. package/test/corpus/snippetTests/errors/abstractOpenMember.txt +13 -0
  341. package/test/corpus/snippetTests/errors/analyzeImportsCannotFindModule.txt +41 -0
  342. package/test/corpus/snippetTests/errors/analyzeImportsInvalidGlob.txt +41 -0
  343. package/test/corpus/snippetTests/errors/analyzeInvalidHttpModule.txt +26 -0
  344. package/test/corpus/snippetTests/errors/analyzeInvalidModuleUri.txt +26 -0
  345. package/test/corpus/snippetTests/errors/analyzeRelativeModuleUri.txt +26 -0
  346. package/test/corpus/snippetTests/errors/anyConverterError.txt +56 -0
  347. package/test/corpus/snippetTests/errors/baseModule.txt +24 -0
  348. package/test/corpus/snippetTests/errors/cannotAmendFixedProperty1.txt +62 -0
  349. package/test/corpus/snippetTests/errors/cannotAmendFixedProperty2.txt +24 -0
  350. package/test/corpus/snippetTests/errors/cannotAssignFixedProperty1.txt +45 -0
  351. package/test/corpus/snippetTests/errors/cannotAssignFixedProperty2.txt +19 -0
  352. package/test/corpus/snippetTests/errors/cannotAssignFixedProperty3.txt +31 -0
  353. package/test/corpus/snippetTests/errors/cannotAssignToNothing.txt +15 -0
  354. package/test/corpus/snippetTests/errors/cannotChangeFixed1.txt +35 -0
  355. package/test/corpus/snippetTests/errors/cannotChangeFixed2.txt +35 -0
  356. package/test/corpus/snippetTests/errors/cannotFindMapKey.txt +39 -0
  357. package/test/corpus/snippetTests/errors/cannotFindStdLibModule.txt +20 -0
  358. package/test/corpus/snippetTests/errors/cannotInferParent2.txt +14 -0
  359. package/test/corpus/snippetTests/errors/cannotInferParent3.txt +48 -0
  360. package/test/corpus/snippetTests/errors/cannotInstantiateAbstractModule.txt +21 -0
  361. package/test/corpus/snippetTests/errors/cannotRenderMixin.txt +41 -0
  362. package/test/corpus/snippetTests/errors/classExtendsSelf.txt +27 -0
  363. package/test/corpus/snippetTests/errors/constraintDetails1.txt +80 -0
  364. package/test/corpus/snippetTests/errors/constraintDetails2.txt +77 -0
  365. package/test/corpus/snippetTests/errors/constraintDetails3.txt +87 -0
  366. package/test/corpus/snippetTests/errors/duplicateTypeParameter.txt +22 -0
  367. package/test/corpus/snippetTests/errors/extendExternalClass.txt +12 -0
  368. package/test/corpus/snippetTests/errors/extendTypeAlias.txt +33 -0
  369. package/test/corpus/snippetTests/errors/forGeneratorCannotGenerateMethods.txt +30 -0
  370. package/test/corpus/snippetTests/errors/forGeneratorCannotGenerateProperties.txt +28 -0
  371. package/test/corpus/snippetTests/errors/forGeneratorCannotIterateOverThisValue.txt +21 -0
  372. package/test/corpus/snippetTests/errors/forGeneratorCannotIterateOverTyped.txt +27 -0
  373. package/test/corpus/snippetTests/errors/forGeneratorDuplicateParams1.txt +38 -0
  374. package/test/corpus/snippetTests/errors/fullStackTraces.txt +64 -0
  375. package/test/corpus/snippetTests/errors/fullStackTraces2.txt +56 -0
  376. package/test/corpus/snippetTests/errors/functionNotFoundInClass.txt +35 -0
  377. package/test/corpus/snippetTests/errors/functionNotFoundInModule.txt +25 -0
  378. package/test/corpus/snippetTests/errors/functionNotFoundInScope.txt +38 -0
  379. package/test/corpus/snippetTests/errors/functionNotFoundMaybeLambda.txt +24 -0
  380. package/test/corpus/snippetTests/errors/functionNotFoundMaybeProperty.txt +18 -0
  381. package/test/corpus/snippetTests/errors/intrinsifiedTypeAlias1.txt +16 -0
  382. package/test/corpus/snippetTests/errors/intrinsifiedTypeAlias2.txt +16 -0
  383. package/test/corpus/snippetTests/errors/intrinsifiedTypeAlias3.txt +15 -0
  384. package/test/corpus/snippetTests/errors/intrinsifiedTypeAlias4.txt +15 -0
  385. package/test/corpus/snippetTests/errors/invalidClassMethodModifier.txt +29 -0
  386. package/test/corpus/snippetTests/errors/invalidClassModifier.txt +11 -0
  387. package/test/corpus/snippetTests/errors/invalidClassModifier2.txt +12 -0
  388. package/test/corpus/snippetTests/errors/invalidClassPropertyModifier.txt +31 -0
  389. package/test/corpus/snippetTests/errors/invalidGlobImport1.txt +19 -0
  390. package/test/corpus/snippetTests/errors/invalidGlobImport4.txt +19 -0
  391. package/test/corpus/snippetTests/errors/invalidGlobImport5.txt +20 -0
  392. package/test/corpus/snippetTests/errors/invalidGlobImport6.txt +14 -0
  393. package/test/corpus/snippetTests/errors/invalidGlobImport7.txt +21 -0
  394. package/test/corpus/snippetTests/errors/invalidGlobImport8.txt +22 -0
  395. package/test/corpus/snippetTests/errors/invalidGlobRead1.txt +14 -0
  396. package/test/corpus/snippetTests/errors/invalidGlobRead2.txt +14 -0
  397. package/test/corpus/snippetTests/errors/invalidGlobRead3.txt +14 -0
  398. package/test/corpus/snippetTests/errors/invalidImportBackslashSep.txt +14 -0
  399. package/test/corpus/snippetTests/errors/invalidImportUri.txt +19 -0
  400. package/test/corpus/snippetTests/errors/invalidMethodModifier.txt +14 -0
  401. package/test/corpus/snippetTests/errors/invalidModuleModifier.txt +20 -0
  402. package/test/corpus/snippetTests/errors/invalidObjectPropertyModifier.txt +17 -0
  403. package/test/corpus/snippetTests/errors/invalidOutput1.txt +17 -0
  404. package/test/corpus/snippetTests/errors/invalidOutput2.txt +22 -0
  405. package/test/corpus/snippetTests/errors/invalidOutput3.txt +12 -0
  406. package/test/corpus/snippetTests/errors/invalidPropertyModifier.txt +16 -0
  407. package/test/corpus/snippetTests/errors/invalidTripleDotSyntax1.txt +11 -0
  408. package/test/corpus/snippetTests/errors/invalidTripleDotSyntax2.txt +11 -0
  409. package/test/corpus/snippetTests/errors/invalidTypeAliasModifier.txt +14 -0
  410. package/test/corpus/snippetTests/errors/invalidTypeName1.txt +24 -0
  411. package/test/corpus/snippetTests/errors/invalidTypeName2.txt +31 -0
  412. package/test/corpus/snippetTests/errors/invalidTypeName3.txt +19 -0
  413. package/test/corpus/snippetTests/errors/invalidTypeName4.txt +24 -0
  414. package/test/corpus/snippetTests/errors/letExpressionError1.txt +24 -0
  415. package/test/corpus/snippetTests/errors/letExpressionError2.txt +27 -0
  416. package/test/corpus/snippetTests/errors/letExpressionErrorTyped.txt +27 -0
  417. package/test/corpus/snippetTests/errors/listingTypeCheckError1.txt +24 -0
  418. package/test/corpus/snippetTests/errors/listingTypeCheckError2.txt +30 -0
  419. package/test/corpus/snippetTests/errors/listingTypeCheckError3.txt +36 -0
  420. package/test/corpus/snippetTests/errors/listingTypeCheckError4.txt +43 -0
  421. package/test/corpus/snippetTests/errors/listingTypeCheckError5.txt +40 -0
  422. package/test/corpus/snippetTests/errors/listingTypeCheckError6.txt +58 -0
  423. package/test/corpus/snippetTests/errors/listingTypeCheckError7.txt +42 -0
  424. package/test/corpus/snippetTests/errors/listingTypeCheckError8.txt +84 -0
  425. package/test/corpus/snippetTests/errors/listingTypeCheckError9.txt +97 -0
  426. package/test/corpus/snippetTests/errors/localFixedMember.txt +19 -0
  427. package/test/corpus/snippetTests/errors/localFunctionWithTypeParameter.txt +18 -0
  428. package/test/corpus/snippetTests/errors/localHiddenMember.txt +17 -0
  429. package/test/corpus/snippetTests/errors/mappingTypeCheckError1.txt +29 -0
  430. package/test/corpus/snippetTests/errors/mappingTypeCheckError10.txt +49 -0
  431. package/test/corpus/snippetTests/errors/mappingTypeCheckError11.txt +106 -0
  432. package/test/corpus/snippetTests/errors/mappingTypeCheckError2.txt +30 -0
  433. package/test/corpus/snippetTests/errors/mappingTypeCheckError3.txt +30 -0
  434. package/test/corpus/snippetTests/errors/mappingTypeCheckError4.txt +36 -0
  435. package/test/corpus/snippetTests/errors/mappingTypeCheckError5.txt +41 -0
  436. package/test/corpus/snippetTests/errors/mappingTypeCheckError6.txt +75 -0
  437. package/test/corpus/snippetTests/errors/mappingTypeCheckError7.txt +45 -0
  438. package/test/corpus/snippetTests/errors/mappingTypeCheckError8.txt +33 -0
  439. package/test/corpus/snippetTests/errors/mappingTypeCheckError9.txt +69 -0
  440. package/test/corpus/snippetTests/errors/missingLocalPropertyValue1.txt +15 -0
  441. package/test/corpus/snippetTests/errors/missingLocalPropertyValue2.txt +22 -0
  442. package/test/corpus/snippetTests/errors/moduleAmendsSelf.txt +13 -0
  443. package/test/corpus/snippetTests/errors/moduleAmendsVersionCheck.txt +13 -0
  444. package/test/corpus/snippetTests/errors/moduleAmendsVersionCheck2.txt +22 -0
  445. package/test/corpus/snippetTests/errors/moduleExpected.txt +43 -0
  446. package/test/corpus/snippetTests/errors/moduleExtendsSelf.txt +20 -0
  447. package/test/corpus/snippetTests/errors/moduleExtendsVersionCheck.txt +13 -0
  448. package/test/corpus/snippetTests/errors/moduleExtendsVersionCheck2.txt +22 -0
  449. package/test/corpus/snippetTests/errors/moduleImportVersionCheck.txt +20 -0
  450. package/test/corpus/snippetTests/errors/moduleWithHighMinPklVersion.txt +29 -0
  451. package/test/corpus/snippetTests/errors/noDefault.txt +23 -0
  452. package/test/corpus/snippetTests/errors/noDefault2.txt +31 -0
  453. package/test/corpus/snippetTests/errors/objectCannotHaveElement.txt +72 -0
  454. package/test/corpus/snippetTests/errors/objectCannotHaveElement2.txt +98 -0
  455. package/test/corpus/snippetTests/errors/objectCannotHavePredicateMember.txt +25 -0
  456. package/test/corpus/snippetTests/errors/outOfRange1.txt +14 -0
  457. package/test/corpus/snippetTests/errors/outOfRange2.txt +17 -0
  458. package/test/corpus/snippetTests/errors/outOfRange3.txt +21 -0
  459. package/test/corpus/snippetTests/errors/propertyNotFound1.txt +32 -0
  460. package/test/corpus/snippetTests/errors/propertyNotFound2.txt +18 -0
  461. package/test/corpus/snippetTests/errors/refusingToLoadModule.txt +18 -0
  462. package/test/corpus/snippetTests/errors/spreadSyntaxCannotHaveElement.txt +38 -0
  463. package/test/corpus/snippetTests/errors/spreadSyntaxCannotHaveEntry.txt +34 -0
  464. package/test/corpus/snippetTests/errors/spreadSyntaxCannotHaveProperty.txt +34 -0
  465. package/test/corpus/snippetTests/errors/spreadSyntaxCannotIterateOverTyped.txt +44 -0
  466. package/test/corpus/snippetTests/errors/spreadSyntaxCannotSpreadListIntoMapping.txt +37 -0
  467. package/test/corpus/snippetTests/errors/spreadSyntaxDuplicateEntry1.txt +39 -0
  468. package/test/corpus/snippetTests/errors/spreadSyntaxDuplicateEntry2.txt +39 -0
  469. package/test/corpus/snippetTests/errors/spreadSyntaxDuplicateProperty1.txt +32 -0
  470. package/test/corpus/snippetTests/errors/spreadSyntaxDuplicateProperty2.txt +32 -0
  471. package/test/corpus/snippetTests/errors/spreadSyntaxNullValue.txt +20 -0
  472. package/test/corpus/snippetTests/errors/spreadSyntaxUnknownTypedProperty.txt +47 -0
  473. package/test/corpus/snippetTests/errors/stackTraceWithQuotedMemberName.txt +23 -0
  474. package/test/corpus/snippetTests/errors/supercalls.txt +18 -0
  475. package/test/corpus/snippetTests/errors/typeMismatchHelper.txt +19 -0
  476. package/test/corpus/snippetTests/errors/typeMismatchWithSameQualifiedClassName.txt +38 -0
  477. package/test/corpus/snippetTests/errors/typeMismatchWithSameQualifiedModuleName.txt +28 -0
  478. package/test/corpus/snippetTests/errors/undefinedOp1.txt +12 -0
  479. package/test/corpus/snippetTests/errors/undefinedOp2.txt +14 -0
  480. package/test/corpus/snippetTests/errors/undefinedOp3.txt +24 -0
  481. package/test/corpus/snippetTests/errors/undefinedProperty1.txt +28 -0
  482. package/test/corpus/snippetTests/errors/undefinedProperty2.txt +15 -0
  483. package/test/corpus/snippetTests/errors/undefinedProperty3.txt +95 -0
  484. package/test/corpus/snippetTests/errors/undefinedProperty4.txt +141 -0
  485. package/test/corpus/snippetTests/errors/undefinedProperty5.txt +160 -0
  486. package/test/corpus/snippetTests/errors/undefinedProperty6.txt +40 -0
  487. package/test/corpus/snippetTests/errors/undefinedProperty7.txt +35 -0
  488. package/test/corpus/snippetTests/errors/undefinedProperty8.txt +34 -0
  489. package/test/corpus/snippetTests/errors/underscoreLambda.txt +37 -0
  490. package/test/corpus/snippetTests/errors/underscoreLet.txt +17 -0
  491. package/test/corpus/snippetTests/errors/userDefinedTypeParameter1.txt +22 -0
  492. package/test/corpus/snippetTests/errors/userDefinedTypeParameter2.txt +32 -0
  493. package/test/corpus/snippetTests/errors/wrongForGeneratorType1.txt +35 -0
  494. package/test/corpus/snippetTests/errors/wrongForGeneratorType2.txt +37 -0
  495. package/test/corpus/snippetTests/errors/wrongNumberOfMapArguments.txt +16 -0
  496. package/test/corpus/snippetTests/generators/duplicateDefinition1.txt +23 -0
  497. package/test/corpus/snippetTests/generators/duplicateDefinition2.txt +30 -0
  498. package/test/corpus/snippetTests/generators/duplicateDefinition3.txt +26 -0
  499. package/test/corpus/snippetTests/generators/elementGenerators.txt +2628 -0
  500. package/test/corpus/snippetTests/generators/elementGeneratorsTyped.txt +1593 -0
  501. package/test/corpus/snippetTests/generators/entryGenerators.txt +3013 -0
  502. package/test/corpus/snippetTests/generators/entryGeneratorsTyped.txt +1858 -0
  503. package/test/corpus/snippetTests/generators/forGeneratorInMixins.txt +301 -0
  504. package/test/corpus/snippetTests/generators/forGeneratorLexicalScope.txt +199 -0
  505. package/test/corpus/snippetTests/generators/forGeneratorNestedReference.txt +277 -0
  506. package/test/corpus/snippetTests/generators/forGeneratorNestedReference2.txt +98 -0
  507. package/test/corpus/snippetTests/generators/forGeneratorVariableShadowing.txt +177 -0
  508. package/test/corpus/snippetTests/generators/generatorNoMembers.txt +157 -0
  509. package/test/corpus/snippetTests/generators/predicateMembersDynamicListing.txt +461 -0
  510. package/test/corpus/snippetTests/generators/predicateMembersDynamicMapping.txt +473 -0
  511. package/test/corpus/snippetTests/generators/predicateMembersListing.txt +463 -0
  512. package/test/corpus/snippetTests/generators/predicateMembersMapping.txt +474 -0
  513. package/test/corpus/snippetTests/generators/predicateMembersThis.txt +82 -0
  514. package/test/corpus/snippetTests/generators/propertyGenerators.txt +104 -0
  515. package/test/corpus/snippetTests/generators/spreadSyntaxDynamic.txt +411 -0
  516. package/test/corpus/snippetTests/generators/spreadSyntaxListing.txt +496 -0
  517. package/test/corpus/snippetTests/generators/spreadSyntaxMapping.txt +655 -0
  518. package/test/corpus/snippetTests/generators/spreadSyntaxNoSpace.txt +32 -0
  519. package/test/corpus/snippetTests/generators/spreadSyntaxNullable.txt +37 -0
  520. package/test/corpus/snippetTests/generators/spreadSyntaxTyped.txt +59 -0
  521. package/test/corpus/snippetTests/implementation/equality.txt +198 -0
  522. package/test/corpus/snippetTests/implementation/inequality.txt +198 -0
  523. package/test/corpus/snippetTests/internal/polymorphicCallSite.txt +499 -0
  524. package/test/corpus/snippetTests/lambdas/amendLambdaDef.txt +310 -0
  525. package/test/corpus/snippetTests/lambdas/amendLambdaExpr.txt +325 -0
  526. package/test/corpus/snippetTests/lambdas/amendLambdaExternalClassError.txt +45 -0
  527. package/test/corpus/snippetTests/lambdas/amendLambdaParameters.txt +155 -0
  528. package/test/corpus/snippetTests/lambdas/amendLambdaParametersTyped.txt +420 -0
  529. package/test/corpus/snippetTests/lambdas/amendLambdaThatReturnsAnotherLambda.txt +380 -0
  530. package/test/corpus/snippetTests/lambdas/amendLambdaTooFewArgsError.txt +60 -0
  531. package/test/corpus/snippetTests/lambdas/amendLambdaTooManyArgsError.txt +62 -0
  532. package/test/corpus/snippetTests/lambdas/equality.txt +62 -0
  533. package/test/corpus/snippetTests/lambdas/inequality.txt +62 -0
  534. package/test/corpus/snippetTests/lambdas/lambda1.txt +85 -0
  535. package/test/corpus/snippetTests/lambdas/lambda2.txt +78 -0
  536. package/test/corpus/snippetTests/lambdas/lambda3.txt +381 -0
  537. package/test/corpus/snippetTests/lambdas/lambda4.txt +147 -0
  538. package/test/corpus/snippetTests/lambdas/lambda5.txt +307 -0
  539. package/test/corpus/snippetTests/lambdas/lambdaStackTrace1.txt +35 -0
  540. package/test/corpus/snippetTests/lambdas/lambdaStackTrace2.txt +37 -0
  541. package/test/corpus/snippetTests/lambdas/lambdaStackTrace3.txt +33 -0
  542. package/test/corpus/snippetTests/lambdas/pipeOperator.txt +189 -0
  543. package/test/corpus/snippetTests/lambdas/tooManyLambdaParams.txt +27 -0
  544. package/test/corpus/snippetTests/lambdas/typedLambdas.txt +278 -0
  545. package/test/corpus/snippetTests/lambdas/wrongArgumentListLength.txt +37 -0
  546. package/test/corpus/snippetTests/listings/cacheStealing.txt +56 -0
  547. package/test/corpus/snippetTests/listings/cacheStealingTypeCheck.txt +27 -0
  548. package/test/corpus/snippetTests/listings/default.txt +133 -0
  549. package/test/corpus/snippetTests/listings/equality.txt +341 -0
  550. package/test/corpus/snippetTests/listings/hashCode.txt +438 -0
  551. package/test/corpus/snippetTests/listings/inequality.txt +173 -0
  552. package/test/corpus/snippetTests/listings/listing1.txt +360 -0
  553. package/test/corpus/snippetTests/listings/listing2.txt +755 -0
  554. package/test/corpus/snippetTests/listings/listing3.txt +490 -0
  555. package/test/corpus/snippetTests/listings/listing4.txt +156 -0
  556. package/test/corpus/snippetTests/listings/listing6.txt +208 -0
  557. package/test/corpus/snippetTests/listings/listing7.txt +71 -0
  558. package/test/corpus/snippetTests/listings/typeCheck.txt +2506 -0
  559. package/test/corpus/snippetTests/listings/wrongIndex.txt +121 -0
  560. package/test/corpus/snippetTests/listings/wrongParent.txt +253 -0
  561. package/test/corpus/snippetTests/listings2/default.txt +157 -0
  562. package/test/corpus/snippetTests/listings2/equality.txt +358 -0
  563. package/test/corpus/snippetTests/listings2/inequality.txt +227 -0
  564. package/test/corpus/snippetTests/listings2/listing1.txt +372 -0
  565. package/test/corpus/snippetTests/listings2/listing2.txt +904 -0
  566. package/test/corpus/snippetTests/listings2/listing3.txt +568 -0
  567. package/test/corpus/snippetTests/listings2/typeCheck.txt +336 -0
  568. package/test/corpus/snippetTests/listings2/wrongIndex.txt +151 -0
  569. package/test/corpus/snippetTests/listings2/wrongParent.txt +313 -0
  570. package/test/corpus/snippetTests/mappings/default.txt +174 -0
  571. package/test/corpus/snippetTests/mappings/duplicateComputedKey.txt +85 -0
  572. package/test/corpus/snippetTests/mappings/duplicateConstantKey.txt +32 -0
  573. package/test/corpus/snippetTests/mappings/equality.txt +383 -0
  574. package/test/corpus/snippetTests/mappings/hashCode.txt +461 -0
  575. package/test/corpus/snippetTests/mappings/inequality.txt +198 -0
  576. package/test/corpus/snippetTests/mappings/mapping1.txt +590 -0
  577. package/test/corpus/snippetTests/mappings/mapping2.txt +491 -0
  578. package/test/corpus/snippetTests/mappings/stringKeyNotFound.txt +50 -0
  579. package/test/corpus/snippetTests/mappings/typeCheck.txt +2877 -0
  580. package/test/corpus/snippetTests/mappings/wrongParent.txt +262 -0
  581. package/test/corpus/snippetTests/mappings2/default.txt +195 -0
  582. package/test/corpus/snippetTests/mappings2/duplicateComputedKey.txt +99 -0
  583. package/test/corpus/snippetTests/mappings2/duplicateConstantKey.txt +39 -0
  584. package/test/corpus/snippetTests/mappings2/equality.txt +416 -0
  585. package/test/corpus/snippetTests/mappings2/inequality.txt +268 -0
  586. package/test/corpus/snippetTests/mappings2/mapping1.txt +604 -0
  587. package/test/corpus/snippetTests/mappings2/mapping2.txt +595 -0
  588. package/test/corpus/snippetTests/mappings2/stringKeyNotFound.txt +57 -0
  589. package/test/corpus/snippetTests/mappings2/typeCheck.txt +582 -0
  590. package/test/corpus/snippetTests/mappings2/wrongParent.txt +334 -0
  591. package/test/corpus/snippetTests/methods/methodParameterConstraints1.txt +220 -0
  592. package/test/corpus/snippetTests/methods/methodParameterConstraints2.txt +382 -0
  593. package/test/corpus/snippetTests/methods/methodParameterTypes2.txt +734 -0
  594. package/test/corpus/snippetTests/methods/methodParameterTypes3.txt +196 -0
  595. package/test/corpus/snippetTests/modules/amendModule1.txt +36 -0
  596. package/test/corpus/snippetTests/modules/amendModule2.txt +28 -0
  597. package/test/corpus/snippetTests/modules/amendModule3.txt +24 -0
  598. package/test/corpus/snippetTests/modules/amendModule4.txt +35 -0
  599. package/test/corpus/snippetTests/modules/amendModule5.txt +68 -0
  600. package/test/corpus/snippetTests/modules/amendModule6.txt +13 -0
  601. package/test/corpus/snippetTests/modules/equality.txt +91 -0
  602. package/test/corpus/snippetTests/modules/extendModule1.txt +80 -0
  603. package/test/corpus/snippetTests/modules/externalFunction.txt +14 -0
  604. package/test/corpus/snippetTests/modules/externalProperty.txt +16 -0
  605. package/test/corpus/snippetTests/modules/filename with spaces 2.txt +14 -0
  606. package/test/corpus/snippetTests/modules/filename with spaces.txt +13 -0
  607. package/test/corpus/snippetTests/modules/functions.txt +264 -0
  608. package/test/corpus/snippetTests/modules/invalidAmend1.txt +18 -0
  609. package/test/corpus/snippetTests/modules/invalidAmend2.txt +19 -0
  610. package/test/corpus/snippetTests/modules/invalidAmend3.txt +23 -0
  611. package/test/corpus/snippetTests/modules/invalidAmend4.txt +21 -0
  612. package/test/corpus/snippetTests/modules/invalidAmend5.txt +17 -0
  613. package/test/corpus/snippetTests/modules/invalidAmend6.txt +22 -0
  614. package/test/corpus/snippetTests/modules/invalidExtend1.txt +18 -0
  615. package/test/corpus/snippetTests/modules/invalidExtend2.txt +13 -0
  616. package/test/corpus/snippetTests/modules/invalidExtend3.txt +13 -0
  617. package/test/corpus/snippetTests/modules/library.txt +77 -0
  618. package/test/corpus/snippetTests/modules/lists.txt +26 -0
  619. package/test/corpus/snippetTests/modules/objects.txt +22 -0
  620. package/test/corpus/snippetTests/modules/recursiveModule1.txt +51 -0
  621. package/test/corpus/snippetTests/modules/recursiveModule2.txt +26 -0
  622. package/test/corpus/snippetTests/modules/supercalls1.txt +43 -0
  623. package/test/corpus/snippetTests/modules/supercalls2.txt +76 -0
  624. package/test/corpus/snippetTests/modules/supercalls3.txt +142 -0
  625. package/test/corpus/snippetTests/modules/typedModuleMethods1.txt +229 -0
  626. package/test/corpus/snippetTests/modules/typedModuleProperties1.txt +106 -0
  627. package/test/corpus/snippetTests/modules/typedModuleProperties2.txt +16 -0
  628. package/test/corpus/snippetTests/modules/typedModuleProperties3.txt +20 -0
  629. package/test/corpus/snippetTests/modules//346/227/245/346/234/254/350/252/236.txt +45 -0
  630. package/test/corpus/snippetTests/modules//346/227/245/346/234/254/350/252/236_error.txt +14 -0
  631. package/test/corpus/snippetTests/objects/closure.txt +143 -0
  632. package/test/corpus/snippetTests/objects/configureObjectAssign.txt +78 -0
  633. package/test/corpus/snippetTests/objects/equality.txt +989 -0
  634. package/test/corpus/snippetTests/objects/hashCode.txt +566 -0
  635. package/test/corpus/snippetTests/objects/implicitReceiver1.txt +37 -0
  636. package/test/corpus/snippetTests/objects/implicitReceiver2.txt +33 -0
  637. package/test/corpus/snippetTests/objects/implicitReceiver3.txt +29 -0
  638. package/test/corpus/snippetTests/objects/implicitReceiver4.txt +25 -0
  639. package/test/corpus/snippetTests/objects/inequality.txt +777 -0
  640. package/test/corpus/snippetTests/objects/lateBinding1.txt +60 -0
  641. package/test/corpus/snippetTests/objects/lateBinding2.txt +60 -0
  642. package/test/corpus/snippetTests/objects/lateBinding3.txt +81 -0
  643. package/test/corpus/snippetTests/objects/lateBinding4.txt +77 -0
  644. package/test/corpus/snippetTests/objects/outer.txt +91 -0
  645. package/test/corpus/snippetTests/objects/outer2.txt +28 -0
  646. package/test/corpus/snippetTests/objects/super1.txt +67 -0
  647. package/test/corpus/snippetTests/objects/super2.txt +59 -0
  648. package/test/corpus/snippetTests/objects/super3.txt +59 -0
  649. package/test/corpus/snippetTests/objects/super4.txt +66 -0
  650. package/test/corpus/snippetTests/objects/super5.txt +69 -0
  651. package/test/corpus/snippetTests/objects/this1.txt +24 -0
  652. package/test/corpus/snippetTests/objects/this2.txt +71 -0
  653. package/test/corpus/snippetTests/packages/badImport1.error.txt +14 -0
  654. package/test/corpus/snippetTests/packages/badImport10.error.txt +14 -0
  655. package/test/corpus/snippetTests/packages/badImport11.error.txt +14 -0
  656. package/test/corpus/snippetTests/packages/badImport2.error.txt +14 -0
  657. package/test/corpus/snippetTests/packages/badImport3.error.txt +14 -0
  658. package/test/corpus/snippetTests/packages/badImport4.error.txt +14 -0
  659. package/test/corpus/snippetTests/packages/badImport6.error.txt +20 -0
  660. package/test/corpus/snippetTests/packages/badImport7.error.txt +14 -0
  661. package/test/corpus/snippetTests/packages/badImport8.error.txt +14 -0
  662. package/test/corpus/snippetTests/packages/badImport9.error.txt +14 -0
  663. package/test/corpus/snippetTests/packages/badRead1.error.txt +14 -0
  664. package/test/corpus/snippetTests/packages/badRead2.error.txt +14 -0
  665. package/test/corpus/snippetTests/packages/badRead3.error.txt +14 -0
  666. package/test/corpus/snippetTests/packages/badRead4.error.txt +14 -0
  667. package/test/corpus/snippetTests/packages/badRead8.error.txt +14 -0
  668. package/test/corpus/snippetTests/packages/badRead9.error.txt +14 -0
  669. package/test/corpus/snippetTests/packages/packages1.txt +103 -0
  670. package/test/corpus/snippetTests/packages/packages2.txt +104 -0
  671. package/test/corpus/snippetTests/packages/redirects.txt +54 -0
  672. package/test/corpus/snippetTests/types/ThisInTypeConstraint.txt +342 -0
  673. package/test/corpus/snippetTests/types/currentModuleType1.txt +343 -0
  674. package/test/corpus/snippetTests/types/currentModuleType2.txt +351 -0
  675. package/test/corpus/snippetTests/types/currentModuleType3.txt +18 -0
  676. package/test/corpus/snippetTests/types/cyclicTypeAlias1.txt +17 -0
  677. package/test/corpus/snippetTests/types/cyclicTypeAlias2.txt +42 -0
  678. package/test/corpus/snippetTests/types/modifiersForTypes.txt +68 -0
  679. package/test/corpus/snippetTests/types/moduleType.txt +58 -0
  680. package/test/corpus/snippetTests/types/nothingType.txt +29 -0
  681. package/test/corpus/snippetTests/types/nothingWithUnions.txt +31 -0
  682. package/test/corpus/snippetTests/types/typeAlias1.txt +925 -0
  683. package/test/corpus/snippetTests/types/typeAlias2.txt +361 -0
  684. package/test/corpus/snippetTests/types/typeAliasConstraint1.txt +79 -0
  685. package/test/corpus/snippetTests/types/typeAliasConstraint2.txt +77 -0
  686. package/test/corpus/snippetTests/types/typeAliasContext.txt +26 -0
  687. package/test/corpus/snippetTests/types/typeAliasUnion.txt +169 -0
  688. package/test/corpus/string/customStringDelimiters.txt +74 -74
  689. package/test/corpus/string/multiline.txt +4 -4
  690. package/test/corpus/string/multilineInterpolation.txt +21 -21
  691. package/test/corpus/string/multilineInterpolation2.txt +15 -0
  692. package/test/corpus/string/simple.txt +1 -1
  693. package/test/corpus/string/singleLineEscapes.txt +7 -7
  694. package/test/corpus/string/singleLineInterpolation.txt +28 -28
  695. package/test/corpus/string/stringWithTwoSlashes.txt +2 -2
  696. package/test/corpus/type/unionType.txt +34 -0
  697. package/test/corpus/type/unionTypeDefaults.txt +46 -0
  698. package/tree-sitter.json +44 -0
  699. package/test/corpus/string/missingDelimiter.txt +0 -28
package/src/grammar.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
2
3
  "name": "pkl",
3
4
  "word": "identifier",
4
5
  "rules": {
@@ -436,7 +437,7 @@
436
437
  },
437
438
  {
438
439
  "type": "SYMBOL",
439
- "name": "type"
440
+ "name": "_type"
440
441
  }
441
442
  ]
442
443
  },
@@ -682,7 +683,7 @@
682
683
  },
683
684
  "_objectMember": {
684
685
  "type": "PREC",
685
- "value": -1,
686
+ "value": -2,
686
687
  "content": {
687
688
  "type": "CHOICE",
688
689
  "members": [
@@ -704,7 +705,7 @@
704
705
  },
705
706
  {
706
707
  "type": "SYMBOL",
707
- "name": "objectPredicate"
708
+ "name": "memberPredicate"
708
709
  },
709
710
  {
710
711
  "type": "SYMBOL",
@@ -842,19 +843,10 @@
842
843
  ]
843
844
  },
844
845
  "objectElement": {
845
- "type": "CHOICE",
846
- "members": [
847
- {
848
- "type": "SYMBOL",
849
- "name": "variableExpr"
850
- },
851
- {
852
- "type": "SYMBOL",
853
- "name": "_expr2"
854
- }
855
- ]
846
+ "type": "SYMBOL",
847
+ "name": "_expr"
856
848
  },
857
- "objectPredicate": {
849
+ "memberPredicate": {
858
850
  "type": "SEQ",
859
851
  "members": [
860
852
  {
@@ -917,7 +909,7 @@
917
909
  },
918
910
  {
919
911
  "type": "SYMBOL",
920
- "name": "typedIdentifier"
912
+ "name": "_parameter"
921
913
  },
922
914
  {
923
915
  "type": "CHOICE",
@@ -931,7 +923,7 @@
931
923
  },
932
924
  {
933
925
  "type": "SYMBOL",
934
- "name": "typedIdentifier"
926
+ "name": "_parameter"
935
927
  }
936
928
  ]
937
929
  },
@@ -1046,7 +1038,7 @@
1046
1038
  "members": [
1047
1039
  {
1048
1040
  "type": "SYMBOL",
1049
- "name": "typedIdentifier"
1041
+ "name": "_parameter"
1050
1042
  },
1051
1043
  {
1052
1044
  "type": "REPEAT",
@@ -1059,7 +1051,7 @@
1059
1051
  },
1060
1052
  {
1061
1053
  "type": "SYMBOL",
1062
- "name": "typedIdentifier"
1054
+ "name": "_parameter"
1063
1055
  }
1064
1056
  ]
1065
1057
  }
@@ -1081,11 +1073,11 @@
1081
1073
  },
1082
1074
  {
1083
1075
  "type": "SYMBOL",
1084
- "name": "type"
1076
+ "name": "_type"
1085
1077
  }
1086
1078
  ]
1087
1079
  },
1088
- "type": {
1080
+ "_type": {
1089
1081
  "type": "CHOICE",
1090
1082
  "members": [
1091
1083
  {
@@ -1141,7 +1133,7 @@
1141
1133
  },
1142
1134
  {
1143
1135
  "type": "SYMBOL",
1144
- "name": "unionDefaultType"
1136
+ "name": "defaultUnionType"
1145
1137
  },
1146
1138
  {
1147
1139
  "type": "SYMBOL",
@@ -1154,25 +1146,29 @@
1154
1146
  "name": "stringConstant"
1155
1147
  },
1156
1148
  "declaredType": {
1157
- "type": "SEQ",
1158
- "members": [
1159
- {
1160
- "type": "SYMBOL",
1161
- "name": "qualifiedIdentifier"
1162
- },
1163
- {
1164
- "type": "CHOICE",
1165
- "members": [
1166
- {
1167
- "type": "SYMBOL",
1168
- "name": "typeArgumentList"
1169
- },
1170
- {
1171
- "type": "BLANK"
1172
- }
1173
- ]
1174
- }
1175
- ]
1149
+ "type": "PREC_RIGHT",
1150
+ "value": 30,
1151
+ "content": {
1152
+ "type": "SEQ",
1153
+ "members": [
1154
+ {
1155
+ "type": "SYMBOL",
1156
+ "name": "qualifiedIdentifier"
1157
+ },
1158
+ {
1159
+ "type": "CHOICE",
1160
+ "members": [
1161
+ {
1162
+ "type": "SYMBOL",
1163
+ "name": "typeArgumentList"
1164
+ },
1165
+ {
1166
+ "type": "BLANK"
1167
+ }
1168
+ ]
1169
+ }
1170
+ ]
1171
+ }
1176
1172
  },
1177
1173
  "parenthesizedType": {
1178
1174
  "type": "SEQ",
@@ -1183,7 +1179,7 @@
1183
1179
  },
1184
1180
  {
1185
1181
  "type": "SYMBOL",
1186
- "name": "type"
1182
+ "name": "_type"
1187
1183
  },
1188
1184
  {
1189
1185
  "type": "STRING",
@@ -1193,13 +1189,13 @@
1193
1189
  },
1194
1190
  "nullableType": {
1195
1191
  "type": "PREC",
1196
- "value": 5,
1192
+ "value": 29,
1197
1193
  "content": {
1198
1194
  "type": "SEQ",
1199
1195
  "members": [
1200
1196
  {
1201
1197
  "type": "SYMBOL",
1202
- "name": "type"
1198
+ "name": "_type"
1203
1199
  },
1204
1200
  {
1205
1201
  "type": "STRING",
@@ -1209,56 +1205,65 @@
1209
1205
  }
1210
1206
  },
1211
1207
  "constrainedType": {
1212
- "type": "SEQ",
1213
- "members": [
1214
- {
1215
- "type": "SYMBOL",
1216
- "name": "type"
1217
- },
1218
- {
1219
- "type": "STRING",
1220
- "value": "("
1221
- },
1222
- {
1223
- "type": "SEQ",
1224
- "members": [
1225
- {
1208
+ "type": "PREC_RIGHT",
1209
+ "value": 30,
1210
+ "content": {
1211
+ "type": "SEQ",
1212
+ "members": [
1213
+ {
1214
+ "type": "SYMBOL",
1215
+ "name": "_type"
1216
+ },
1217
+ {
1218
+ "type": "ALIAS",
1219
+ "content": {
1226
1220
  "type": "SYMBOL",
1227
- "name": "_expr"
1221
+ "name": "_open_argument_paren"
1228
1222
  },
1229
- {
1230
- "type": "REPEAT",
1231
- "content": {
1232
- "type": "SEQ",
1233
- "members": [
1234
- {
1235
- "type": "STRING",
1236
- "value": ","
1237
- },
1238
- {
1239
- "type": "SYMBOL",
1240
- "name": "_expr"
1241
- }
1242
- ]
1223
+ "named": false,
1224
+ "value": "("
1225
+ },
1226
+ {
1227
+ "type": "SEQ",
1228
+ "members": [
1229
+ {
1230
+ "type": "SYMBOL",
1231
+ "name": "_expr"
1232
+ },
1233
+ {
1234
+ "type": "REPEAT",
1235
+ "content": {
1236
+ "type": "SEQ",
1237
+ "members": [
1238
+ {
1239
+ "type": "STRING",
1240
+ "value": ","
1241
+ },
1242
+ {
1243
+ "type": "SYMBOL",
1244
+ "name": "_expr"
1245
+ }
1246
+ ]
1247
+ }
1243
1248
  }
1244
- }
1245
- ]
1246
- },
1247
- {
1248
- "type": "STRING",
1249
- "value": ")"
1250
- }
1251
- ]
1249
+ ]
1250
+ },
1251
+ {
1252
+ "type": "STRING",
1253
+ "value": ")"
1254
+ }
1255
+ ]
1256
+ }
1252
1257
  },
1253
1258
  "unionType": {
1254
1259
  "type": "PREC_LEFT",
1255
- "value": -7,
1260
+ "value": 28,
1256
1261
  "content": {
1257
1262
  "type": "SEQ",
1258
1263
  "members": [
1259
1264
  {
1260
1265
  "type": "SYMBOL",
1261
- "name": "type"
1266
+ "name": "_type"
1262
1267
  },
1263
1268
  {
1264
1269
  "type": "STRING",
@@ -1266,14 +1271,14 @@
1266
1271
  },
1267
1272
  {
1268
1273
  "type": "SYMBOL",
1269
- "name": "type"
1274
+ "name": "_type"
1270
1275
  }
1271
1276
  ]
1272
1277
  }
1273
1278
  },
1274
- "unionDefaultType": {
1275
- "type": "PREC",
1276
- "value": -6,
1279
+ "defaultUnionType": {
1280
+ "type": "PREC_LEFT",
1281
+ "value": 29,
1277
1282
  "content": {
1278
1283
  "type": "SEQ",
1279
1284
  "members": [
@@ -1283,14 +1288,14 @@
1283
1288
  },
1284
1289
  {
1285
1290
  "type": "SYMBOL",
1286
- "name": "type"
1291
+ "name": "_type"
1287
1292
  }
1288
1293
  ]
1289
1294
  }
1290
1295
  },
1291
1296
  "functionLiteralType": {
1292
1297
  "type": "PREC",
1293
- "value": -5,
1298
+ "value": 27,
1294
1299
  "content": {
1295
1300
  "type": "SEQ",
1296
1301
  "members": [
@@ -1306,7 +1311,7 @@
1306
1311
  "members": [
1307
1312
  {
1308
1313
  "type": "SYMBOL",
1309
- "name": "type"
1314
+ "name": "_type"
1310
1315
  },
1311
1316
  {
1312
1317
  "type": "REPEAT",
@@ -1319,7 +1324,7 @@
1319
1324
  },
1320
1325
  {
1321
1326
  "type": "SYMBOL",
1322
- "name": "type"
1327
+ "name": "_type"
1323
1328
  }
1324
1329
  ]
1325
1330
  }
@@ -1341,7 +1346,7 @@
1341
1346
  },
1342
1347
  {
1343
1348
  "type": "SYMBOL",
1344
- "name": "type"
1349
+ "name": "_type"
1345
1350
  }
1346
1351
  ]
1347
1352
  }
@@ -1358,7 +1363,7 @@
1358
1363
  "members": [
1359
1364
  {
1360
1365
  "type": "SYMBOL",
1361
- "name": "type"
1366
+ "name": "_type"
1362
1367
  },
1363
1368
  {
1364
1369
  "type": "REPEAT",
@@ -1371,7 +1376,7 @@
1371
1376
  },
1372
1377
  {
1373
1378
  "type": "SYMBOL",
1374
- "name": "type"
1379
+ "name": "_type"
1375
1380
  }
1376
1381
  ]
1377
1382
  }
@@ -1467,7 +1472,7 @@
1467
1472
  "members": [
1468
1473
  {
1469
1474
  "type": "SYMBOL",
1470
- "name": "typedIdentifier"
1475
+ "name": "_parameter"
1471
1476
  },
1472
1477
  {
1473
1478
  "type": "REPEAT",
@@ -1480,7 +1485,7 @@
1480
1485
  },
1481
1486
  {
1482
1487
  "type": "SYMBOL",
1483
- "name": "typedIdentifier"
1488
+ "name": "_parameter"
1484
1489
  }
1485
1490
  ]
1486
1491
  }
@@ -1498,6 +1503,44 @@
1498
1503
  }
1499
1504
  ]
1500
1505
  },
1506
+ "_parameter": {
1507
+ "type": "CHOICE",
1508
+ "members": [
1509
+ {
1510
+ "type": "SYMBOL",
1511
+ "name": "typedIdentifier"
1512
+ },
1513
+ {
1514
+ "type": "SYMBOL",
1515
+ "name": "blankIdentifier"
1516
+ }
1517
+ ]
1518
+ },
1519
+ "typedIdentifier": {
1520
+ "type": "SEQ",
1521
+ "members": [
1522
+ {
1523
+ "type": "SYMBOL",
1524
+ "name": "identifier"
1525
+ },
1526
+ {
1527
+ "type": "CHOICE",
1528
+ "members": [
1529
+ {
1530
+ "type": "SYMBOL",
1531
+ "name": "typeAnnotation"
1532
+ },
1533
+ {
1534
+ "type": "BLANK"
1535
+ }
1536
+ ]
1537
+ }
1538
+ ]
1539
+ },
1540
+ "blankIdentifier": {
1541
+ "type": "STRING",
1542
+ "value": "_"
1543
+ },
1501
1544
  "argumentList": {
1502
1545
  "type": "SEQ",
1503
1546
  "members": [
@@ -1587,81 +1630,63 @@
1587
1630
  "members": [
1588
1631
  {
1589
1632
  "type": "SYMBOL",
1590
- "name": "variableExpr"
1633
+ "name": "thisExpr"
1591
1634
  },
1592
1635
  {
1593
1636
  "type": "SYMBOL",
1594
- "name": "variableObjectLiteral"
1637
+ "name": "outerExpr"
1595
1638
  },
1596
1639
  {
1597
1640
  "type": "SYMBOL",
1598
- "name": "_expr2"
1599
- }
1600
- ]
1601
- },
1602
- "variableObjectLiteral": {
1603
- "type": "PREC",
1604
- "value": 2,
1605
- "content": {
1606
- "type": "SEQ",
1607
- "members": [
1608
- {
1609
- "type": "SYMBOL",
1610
- "name": "identifier"
1611
- },
1612
- {
1613
- "type": "SYMBOL",
1614
- "name": "objectBody"
1615
- }
1616
- ]
1617
- }
1618
- },
1619
- "_expr2": {
1620
- "type": "CHOICE",
1621
- "members": [
1641
+ "name": "moduleExpr"
1642
+ },
1622
1643
  {
1623
1644
  "type": "SYMBOL",
1624
- "name": "parenthesizedExpr"
1645
+ "name": "nullLiteralExpr"
1625
1646
  },
1626
1647
  {
1627
1648
  "type": "SYMBOL",
1628
- "name": "thisExpr"
1649
+ "name": "trueLiteralExpr"
1629
1650
  },
1630
1651
  {
1631
1652
  "type": "SYMBOL",
1632
- "name": "outerExpr"
1653
+ "name": "falseLiteralExpr"
1633
1654
  },
1634
1655
  {
1635
1656
  "type": "SYMBOL",
1636
- "name": "moduleExpr"
1657
+ "name": "intLiteralExpr"
1658
+ },
1659
+ {
1660
+ "type": "SYMBOL",
1661
+ "name": "floatLiteralExpr"
1637
1662
  },
1638
1663
  {
1639
1664
  "type": "SYMBOL",
1640
- "name": "nullLiteral"
1665
+ "name": "throwExpr"
1641
1666
  },
1642
1667
  {
1643
1668
  "type": "SYMBOL",
1644
- "name": "trueLiteral"
1669
+ "name": "traceExpr"
1645
1670
  },
1646
1671
  {
1647
1672
  "type": "SYMBOL",
1648
- "name": "falseLiteral"
1673
+ "name": "importExpr"
1649
1674
  },
1650
1675
  {
1651
1676
  "type": "SYMBOL",
1652
- "name": "intLiteral"
1677
+ "name": "readExpr"
1653
1678
  },
1654
1679
  {
1655
1680
  "type": "SYMBOL",
1656
- "name": "floatLiteral"
1681
+ "name": "unqualifiedAccessExpr"
1657
1682
  },
1658
1683
  {
1659
1684
  "type": "SYMBOL",
1660
- "name": "slStringLiteral"
1685
+ "name": "slStringLiteralExpr"
1661
1686
  },
1662
1687
  {
1663
1688
  "type": "SYMBOL",
1664
- "name": "mlStringLiteral"
1689
+ "name": "mlStringLiteralExpr"
1665
1690
  },
1666
1691
  {
1667
1692
  "type": "SYMBOL",
@@ -1669,15 +1694,19 @@
1669
1694
  },
1670
1695
  {
1671
1696
  "type": "SYMBOL",
1672
- "name": "objectLiteral"
1697
+ "name": "amendExpr"
1673
1698
  },
1674
1699
  {
1675
1700
  "type": "SYMBOL",
1676
- "name": "methodCallExpr"
1701
+ "name": "superAccessExpr"
1677
1702
  },
1678
1703
  {
1679
1704
  "type": "SYMBOL",
1680
- "name": "propertyCallExpr"
1705
+ "name": "superSubscriptExpr"
1706
+ },
1707
+ {
1708
+ "type": "SYMBOL",
1709
+ "name": "qualifiedAccessExpr"
1681
1710
  },
1682
1711
  {
1683
1712
  "type": "SYMBOL",
@@ -1685,63 +1714,75 @@
1685
1714
  },
1686
1715
  {
1687
1716
  "type": "SYMBOL",
1688
- "name": "unaryExpr"
1717
+ "name": "nonNullExpr"
1689
1718
  },
1690
1719
  {
1691
1720
  "type": "SYMBOL",
1692
- "name": "binaryExpr"
1721
+ "name": "unaryMinusExpr"
1693
1722
  },
1694
1723
  {
1695
1724
  "type": "SYMBOL",
1696
- "name": "binaryExprRightAssoc"
1725
+ "name": "logicalNotExpr"
1697
1726
  },
1698
1727
  {
1699
1728
  "type": "SYMBOL",
1700
- "name": "isExpr"
1729
+ "name": "exponentiationExpr"
1701
1730
  },
1702
1731
  {
1703
1732
  "type": "SYMBOL",
1704
- "name": "asExpr"
1733
+ "name": "multiplicativeExpr"
1705
1734
  },
1706
1735
  {
1707
1736
  "type": "SYMBOL",
1708
- "name": "ifExpr"
1737
+ "name": "additiveExpr"
1709
1738
  },
1710
1739
  {
1711
1740
  "type": "SYMBOL",
1712
- "name": "letExpr"
1741
+ "name": "comparisonExpr"
1713
1742
  },
1714
1743
  {
1715
1744
  "type": "SYMBOL",
1716
- "name": "throwExpr"
1745
+ "name": "typeTestExpr"
1717
1746
  },
1718
1747
  {
1719
1748
  "type": "SYMBOL",
1720
- "name": "traceExpr"
1749
+ "name": "typeCastExpr"
1721
1750
  },
1722
1751
  {
1723
1752
  "type": "SYMBOL",
1724
- "name": "readExpr"
1753
+ "name": "equalityExpr"
1725
1754
  },
1726
1755
  {
1727
1756
  "type": "SYMBOL",
1728
- "name": "readOrNullExpr"
1757
+ "name": "logicalAndExpr"
1729
1758
  },
1730
1759
  {
1731
1760
  "type": "SYMBOL",
1732
- "name": "readGlobExpr"
1761
+ "name": "logicalOrExpr"
1733
1762
  },
1734
1763
  {
1735
1764
  "type": "SYMBOL",
1736
- "name": "importExpr"
1765
+ "name": "pipeExpr"
1766
+ },
1767
+ {
1768
+ "type": "SYMBOL",
1769
+ "name": "nullCoalesceExpr"
1737
1770
  },
1738
1771
  {
1739
1772
  "type": "SYMBOL",
1740
- "name": "importGlobExpr"
1773
+ "name": "ifExpr"
1774
+ },
1775
+ {
1776
+ "type": "SYMBOL",
1777
+ "name": "letExpr"
1778
+ },
1779
+ {
1780
+ "type": "SYMBOL",
1781
+ "name": "functionLiteralExpr"
1741
1782
  },
1742
1783
  {
1743
1784
  "type": "SYMBOL",
1744
- "name": "functionLiteral"
1785
+ "name": "parenthesizedExpr"
1745
1786
  }
1746
1787
  ]
1747
1788
  },
@@ -1774,23 +1815,19 @@
1774
1815
  "type": "STRING",
1775
1816
  "value": "module"
1776
1817
  },
1777
- "variableExpr": {
1778
- "type": "SYMBOL",
1779
- "name": "identifier"
1780
- },
1781
- "nullLiteral": {
1818
+ "nullLiteralExpr": {
1782
1819
  "type": "STRING",
1783
1820
  "value": "null"
1784
1821
  },
1785
- "trueLiteral": {
1822
+ "trueLiteralExpr": {
1786
1823
  "type": "STRING",
1787
1824
  "value": "true"
1788
1825
  },
1789
- "falseLiteral": {
1826
+ "falseLiteralExpr": {
1790
1827
  "type": "STRING",
1791
1828
  "value": "false"
1792
1829
  },
1793
- "intLiteral": {
1830
+ "intLiteralExpr": {
1794
1831
  "type": "TOKEN",
1795
1832
  "content": {
1796
1833
  "type": "CHOICE",
@@ -1862,7 +1899,7 @@
1862
1899
  ]
1863
1900
  }
1864
1901
  },
1865
- "floatLiteral": {
1902
+ "floatLiteralExpr": {
1866
1903
  "type": "TOKEN",
1867
1904
  "content": {
1868
1905
  "type": "CHOICE",
@@ -2116,7 +2153,7 @@
2116
2153
  }
2117
2154
  ]
2118
2155
  },
2119
- "slStringLiteral": {
2156
+ "slStringLiteralExpr": {
2120
2157
  "type": "CHOICE",
2121
2158
  "members": [
2122
2159
  {
@@ -2141,7 +2178,7 @@
2141
2178
  },
2142
2179
  {
2143
2180
  "type": "SYMBOL",
2144
- "name": "interpolationExpr"
2181
+ "name": "stringInterpolation"
2145
2182
  }
2146
2183
  ]
2147
2184
  }
@@ -2186,10 +2223,10 @@
2186
2223
  "type": "ALIAS",
2187
2224
  "content": {
2188
2225
  "type": "SYMBOL",
2189
- "name": "interpolationExpr1"
2226
+ "name": "stringInterpolation1"
2190
2227
  },
2191
2228
  "named": true,
2192
- "value": "interpolationExpr"
2229
+ "value": "stringInterpolation"
2193
2230
  }
2194
2231
  ]
2195
2232
  }
@@ -2234,10 +2271,10 @@
2234
2271
  "type": "ALIAS",
2235
2272
  "content": {
2236
2273
  "type": "SYMBOL",
2237
- "name": "interpolationExpr2"
2274
+ "name": "stringInterpolation2"
2238
2275
  },
2239
2276
  "named": true,
2240
- "value": "interpolationExpr"
2277
+ "value": "stringInterpolation"
2241
2278
  }
2242
2279
  ]
2243
2280
  }
@@ -2282,10 +2319,10 @@
2282
2319
  "type": "ALIAS",
2283
2320
  "content": {
2284
2321
  "type": "SYMBOL",
2285
- "name": "interpolationExpr3"
2322
+ "name": "stringInterpolation3"
2286
2323
  },
2287
2324
  "named": true,
2288
- "value": "interpolationExpr"
2325
+ "value": "stringInterpolation"
2289
2326
  }
2290
2327
  ]
2291
2328
  }
@@ -2330,10 +2367,10 @@
2330
2367
  "type": "ALIAS",
2331
2368
  "content": {
2332
2369
  "type": "SYMBOL",
2333
- "name": "interpolationExpr4"
2370
+ "name": "stringInterpolation4"
2334
2371
  },
2335
2372
  "named": true,
2336
- "value": "interpolationExpr"
2373
+ "value": "stringInterpolation"
2337
2374
  }
2338
2375
  ]
2339
2376
  }
@@ -2378,10 +2415,10 @@
2378
2415
  "type": "ALIAS",
2379
2416
  "content": {
2380
2417
  "type": "SYMBOL",
2381
- "name": "interpolationExpr5"
2418
+ "name": "stringInterpolation5"
2382
2419
  },
2383
2420
  "named": true,
2384
- "value": "interpolationExpr"
2421
+ "value": "stringInterpolation"
2385
2422
  }
2386
2423
  ]
2387
2424
  }
@@ -2426,10 +2463,10 @@
2426
2463
  "type": "ALIAS",
2427
2464
  "content": {
2428
2465
  "type": "SYMBOL",
2429
- "name": "interpolationExpr6"
2466
+ "name": "stringInterpolation6"
2430
2467
  },
2431
2468
  "named": true,
2432
- "value": "interpolationExpr"
2469
+ "value": "stringInterpolation"
2433
2470
  }
2434
2471
  ]
2435
2472
  }
@@ -2470,7 +2507,7 @@
2470
2507
  "type": "SYMBOL",
2471
2508
  "name": "_sl6_string_chars"
2472
2509
  },
2473
- "mlStringLiteral": {
2510
+ "mlStringLiteralExpr": {
2474
2511
  "type": "CHOICE",
2475
2512
  "members": [
2476
2513
  {
@@ -2495,7 +2532,7 @@
2495
2532
  },
2496
2533
  {
2497
2534
  "type": "SYMBOL",
2498
- "name": "interpolationExpr"
2535
+ "name": "stringInterpolation"
2499
2536
  }
2500
2537
  ]
2501
2538
  }
@@ -2540,10 +2577,10 @@
2540
2577
  "type": "ALIAS",
2541
2578
  "content": {
2542
2579
  "type": "SYMBOL",
2543
- "name": "interpolationExpr1"
2580
+ "name": "stringInterpolation1"
2544
2581
  },
2545
2582
  "named": true,
2546
- "value": "interpolationExpr"
2583
+ "value": "stringInterpolation"
2547
2584
  }
2548
2585
  ]
2549
2586
  }
@@ -2588,10 +2625,10 @@
2588
2625
  "type": "ALIAS",
2589
2626
  "content": {
2590
2627
  "type": "SYMBOL",
2591
- "name": "interpolationExpr2"
2628
+ "name": "stringInterpolation2"
2592
2629
  },
2593
2630
  "named": true,
2594
- "value": "interpolationExpr"
2631
+ "value": "stringInterpolation"
2595
2632
  }
2596
2633
  ]
2597
2634
  }
@@ -2636,10 +2673,10 @@
2636
2673
  "type": "ALIAS",
2637
2674
  "content": {
2638
2675
  "type": "SYMBOL",
2639
- "name": "interpolationExpr3"
2676
+ "name": "stringInterpolation3"
2640
2677
  },
2641
2678
  "named": true,
2642
- "value": "interpolationExpr"
2679
+ "value": "stringInterpolation"
2643
2680
  }
2644
2681
  ]
2645
2682
  }
@@ -2684,10 +2721,10 @@
2684
2721
  "type": "ALIAS",
2685
2722
  "content": {
2686
2723
  "type": "SYMBOL",
2687
- "name": "interpolationExpr4"
2724
+ "name": "stringInterpolation4"
2688
2725
  },
2689
2726
  "named": true,
2690
- "value": "interpolationExpr"
2727
+ "value": "stringInterpolation"
2691
2728
  }
2692
2729
  ]
2693
2730
  }
@@ -2732,10 +2769,10 @@
2732
2769
  "type": "ALIAS",
2733
2770
  "content": {
2734
2771
  "type": "SYMBOL",
2735
- "name": "interpolationExpr5"
2772
+ "name": "stringInterpolation5"
2736
2773
  },
2737
2774
  "named": true,
2738
- "value": "interpolationExpr"
2775
+ "value": "stringInterpolation"
2739
2776
  }
2740
2777
  ]
2741
2778
  }
@@ -2780,10 +2817,10 @@
2780
2817
  "type": "ALIAS",
2781
2818
  "content": {
2782
2819
  "type": "SYMBOL",
2783
- "name": "interpolationExpr6"
2820
+ "name": "stringInterpolation6"
2784
2821
  },
2785
2822
  "named": true,
2786
- "value": "interpolationExpr"
2823
+ "value": "stringInterpolation"
2787
2824
  }
2788
2825
  ]
2789
2826
  }
@@ -2842,7 +2879,7 @@
2842
2879
  },
2843
2880
  {
2844
2881
  "type": "PATTERN",
2845
- "value": "u\\{[0-9a-fA-F]+\\}"
2882
+ "value": "u\\{[0-9a-fA-F]+}"
2846
2883
  }
2847
2884
  ]
2848
2885
  }
@@ -2867,7 +2904,7 @@
2867
2904
  },
2868
2905
  {
2869
2906
  "type": "PATTERN",
2870
- "value": "u\\{[0-9a-fA-F]+\\}"
2907
+ "value": "u\\{[0-9a-fA-F]+}"
2871
2908
  }
2872
2909
  ]
2873
2910
  }
@@ -2892,7 +2929,7 @@
2892
2929
  },
2893
2930
  {
2894
2931
  "type": "PATTERN",
2895
- "value": "u\\{[0-9a-fA-F]+\\}"
2932
+ "value": "u\\{[0-9a-fA-F]+}"
2896
2933
  }
2897
2934
  ]
2898
2935
  }
@@ -2917,7 +2954,7 @@
2917
2954
  },
2918
2955
  {
2919
2956
  "type": "PATTERN",
2920
- "value": "u\\{[0-9a-fA-F]+\\}"
2957
+ "value": "u\\{[0-9a-fA-F]+}"
2921
2958
  }
2922
2959
  ]
2923
2960
  }
@@ -2942,7 +2979,7 @@
2942
2979
  },
2943
2980
  {
2944
2981
  "type": "PATTERN",
2945
- "value": "u\\{[0-9a-fA-F]+\\}"
2982
+ "value": "u\\{[0-9a-fA-F]+}"
2946
2983
  }
2947
2984
  ]
2948
2985
  }
@@ -2967,7 +3004,7 @@
2967
3004
  },
2968
3005
  {
2969
3006
  "type": "PATTERN",
2970
- "value": "u\\{[0-9a-fA-F]+\\}"
3007
+ "value": "u\\{[0-9a-fA-F]+}"
2971
3008
  }
2972
3009
  ]
2973
3010
  }
@@ -2992,14 +3029,14 @@
2992
3029
  },
2993
3030
  {
2994
3031
  "type": "PATTERN",
2995
- "value": "u\\{[0-9a-fA-F]+\\}"
3032
+ "value": "u\\{[0-9a-fA-F]+}"
2996
3033
  }
2997
3034
  ]
2998
3035
  }
2999
3036
  ]
3000
3037
  }
3001
3038
  },
3002
- "interpolationExpr": {
3039
+ "stringInterpolation": {
3003
3040
  "type": "SEQ",
3004
3041
  "members": [
3005
3042
  {
@@ -3019,7 +3056,7 @@
3019
3056
  }
3020
3057
  ]
3021
3058
  },
3022
- "interpolationExpr1": {
3059
+ "stringInterpolation1": {
3023
3060
  "type": "SEQ",
3024
3061
  "members": [
3025
3062
  {
@@ -3039,7 +3076,7 @@
3039
3076
  }
3040
3077
  ]
3041
3078
  },
3042
- "interpolationExpr2": {
3079
+ "stringInterpolation2": {
3043
3080
  "type": "SEQ",
3044
3081
  "members": [
3045
3082
  {
@@ -3059,7 +3096,7 @@
3059
3096
  }
3060
3097
  ]
3061
3098
  },
3062
- "interpolationExpr3": {
3099
+ "stringInterpolation3": {
3063
3100
  "type": "SEQ",
3064
3101
  "members": [
3065
3102
  {
@@ -3079,7 +3116,7 @@
3079
3116
  }
3080
3117
  ]
3081
3118
  },
3082
- "interpolationExpr4": {
3119
+ "stringInterpolation4": {
3083
3120
  "type": "SEQ",
3084
3121
  "members": [
3085
3122
  {
@@ -3099,7 +3136,7 @@
3099
3136
  }
3100
3137
  ]
3101
3138
  },
3102
- "interpolationExpr5": {
3139
+ "stringInterpolation5": {
3103
3140
  "type": "SEQ",
3104
3141
  "members": [
3105
3142
  {
@@ -3119,7 +3156,7 @@
3119
3156
  }
3120
3157
  ]
3121
3158
  },
3122
- "interpolationExpr6": {
3159
+ "stringInterpolation6": {
3123
3160
  "type": "SEQ",
3124
3161
  "members": [
3125
3162
  {
@@ -3151,7 +3188,7 @@
3151
3188
  "members": [
3152
3189
  {
3153
3190
  "type": "SYMBOL",
3154
- "name": "type"
3191
+ "name": "_type"
3155
3192
  },
3156
3193
  {
3157
3194
  "type": "BLANK"
@@ -3164,15 +3201,32 @@
3164
3201
  }
3165
3202
  ]
3166
3203
  },
3167
- "objectLiteral": {
3204
+ "amendExpr": {
3168
3205
  "type": "PREC",
3169
3206
  "value": 1,
3170
3207
  "content": {
3171
3208
  "type": "SEQ",
3172
3209
  "members": [
3173
3210
  {
3174
- "type": "SYMBOL",
3175
- "name": "_expr2"
3211
+ "type": "FIELD",
3212
+ "name": "parent",
3213
+ "content": {
3214
+ "type": "CHOICE",
3215
+ "members": [
3216
+ {
3217
+ "type": "SYMBOL",
3218
+ "name": "newExpr"
3219
+ },
3220
+ {
3221
+ "type": "SYMBOL",
3222
+ "name": "amendExpr"
3223
+ },
3224
+ {
3225
+ "type": "SYMBOL",
3226
+ "name": "parenthesizedExpr"
3227
+ }
3228
+ ]
3229
+ }
3176
3230
  },
3177
3231
  {
3178
3232
  "type": "SYMBOL",
@@ -3181,645 +3235,374 @@
3181
3235
  ]
3182
3236
  }
3183
3237
  },
3184
- "methodCallExpr": {
3185
- "type": "SEQ",
3186
- "members": [
3187
- {
3188
- "type": "CHOICE",
3189
- "members": [
3190
- {
3191
- "type": "SEQ",
3192
- "members": [
3193
- {
3194
- "type": "FIELD",
3195
- "name": "receiver",
3196
- "content": {
3197
- "type": "CHOICE",
3198
- "members": [
3199
- {
3200
- "type": "STRING",
3201
- "value": "super"
3202
- },
3203
- {
3204
- "type": "SYMBOL",
3205
- "name": "_expr"
3206
- }
3207
- ]
3208
- }
3209
- },
3210
- {
3211
- "type": "CHOICE",
3212
- "members": [
3213
- {
3214
- "type": "STRING",
3215
- "value": "."
3216
- },
3217
- {
3218
- "type": "STRING",
3219
- "value": "?."
3220
- }
3221
- ]
3222
- }
3223
- ]
3224
- },
3225
- {
3226
- "type": "BLANK"
3227
- }
3228
- ]
3229
- },
3230
- {
3231
- "type": "SYMBOL",
3232
- "name": "identifier"
3233
- },
3234
- {
3235
- "type": "SYMBOL",
3236
- "name": "argumentList"
3237
- }
3238
- ]
3239
- },
3240
- "propertyCallExpr": {
3241
- "type": "SEQ",
3242
- "members": [
3243
- {
3244
- "type": "FIELD",
3245
- "name": "receiver",
3246
- "content": {
3247
- "type": "CHOICE",
3248
- "members": [
3249
- {
3250
- "type": "STRING",
3251
- "value": "super"
3252
- },
3253
- {
3254
- "type": "SYMBOL",
3255
- "name": "_expr"
3256
- }
3257
- ]
3258
- }
3259
- },
3260
- {
3261
- "type": "CHOICE",
3262
- "members": [
3263
- {
3264
- "type": "STRING",
3265
- "value": "."
3266
- },
3267
- {
3268
- "type": "STRING",
3269
- "value": "?."
3238
+ "subscriptExpr": {
3239
+ "type": "PREC_LEFT",
3240
+ "value": 22,
3241
+ "content": {
3242
+ "type": "SEQ",
3243
+ "members": [
3244
+ {
3245
+ "type": "FIELD",
3246
+ "name": "receiver",
3247
+ "content": {
3248
+ "type": "SYMBOL",
3249
+ "name": "_expr"
3270
3250
  }
3271
- ]
3272
- },
3273
- {
3274
- "type": "CHOICE",
3275
- "members": [
3276
- {
3251
+ },
3252
+ {
3253
+ "type": "ALIAS",
3254
+ "content": {
3277
3255
  "type": "SYMBOL",
3278
- "name": "identifier"
3256
+ "name": "_open_subscript_bracket"
3279
3257
  },
3280
- {
3281
- "type": "FIELD",
3282
- "name": "err",
3283
- "content": {
3284
- "type": "STRING",
3285
- "value": "\n"
3286
- }
3287
- }
3288
- ]
3289
- }
3290
- ]
3291
- },
3292
- "subscriptExpr": {
3293
- "type": "SEQ",
3294
- "members": [
3295
- {
3296
- "type": "FIELD",
3297
- "name": "receiver",
3298
- "content": {
3299
- "type": "CHOICE",
3300
- "members": [
3301
- {
3302
- "type": "STRING",
3303
- "value": "super"
3304
- },
3305
- {
3306
- "type": "SYMBOL",
3307
- "name": "_expr"
3308
- }
3309
- ]
3310
- }
3311
- },
3312
- {
3313
- "type": "ALIAS",
3314
- "content": {
3258
+ "named": false,
3259
+ "value": "["
3260
+ },
3261
+ {
3315
3262
  "type": "SYMBOL",
3316
- "name": "_open_subscript_bracket"
3263
+ "name": "_expr"
3317
3264
  },
3318
- "named": false,
3319
- "value": "["
3320
- },
3321
- {
3322
- "type": "SYMBOL",
3323
- "name": "_expr"
3324
- },
3325
- {
3326
- "type": "STRING",
3327
- "value": "]"
3328
- }
3329
- ]
3265
+ {
3266
+ "type": "STRING",
3267
+ "value": "]"
3268
+ }
3269
+ ]
3270
+ }
3330
3271
  },
3331
- "unaryExpr": {
3332
- "type": "CHOICE",
3333
- "members": [
3334
- {
3335
- "type": "PREC_LEFT",
3336
- "value": 20,
3337
- "content": {
3338
- "type": "SEQ",
3339
- "members": [
3340
- {
3341
- "type": "SYMBOL",
3342
- "name": "_expr"
3343
- },
3344
- {
3345
- "type": "STRING",
3346
- "value": "!!"
3347
- }
3348
- ]
3272
+ "unaryMinusExpr": {
3273
+ "type": "PREC_LEFT",
3274
+ "value": 20,
3275
+ "content": {
3276
+ "type": "SEQ",
3277
+ "members": [
3278
+ {
3279
+ "type": "STRING",
3280
+ "value": "-"
3281
+ },
3282
+ {
3283
+ "type": "SYMBOL",
3284
+ "name": "_expr"
3349
3285
  }
3350
- },
3351
- {
3352
- "type": "PREC_LEFT",
3353
- "value": 20,
3354
- "content": {
3355
- "type": "SEQ",
3356
- "members": [
3357
- {
3358
- "type": "STRING",
3359
- "value": "-"
3360
- },
3361
- {
3362
- "type": "SYMBOL",
3363
- "name": "_expr"
3364
- }
3365
- ]
3286
+ ]
3287
+ }
3288
+ },
3289
+ "logicalNotExpr": {
3290
+ "type": "PREC_LEFT",
3291
+ "value": 19,
3292
+ "content": {
3293
+ "type": "SEQ",
3294
+ "members": [
3295
+ {
3296
+ "type": "STRING",
3297
+ "value": "!"
3298
+ },
3299
+ {
3300
+ "type": "SYMBOL",
3301
+ "name": "_expr"
3366
3302
  }
3367
- },
3368
- {
3369
- "type": "PREC_LEFT",
3370
- "value": 19,
3371
- "content": {
3372
- "type": "SEQ",
3373
- "members": [
3374
- {
3375
- "type": "STRING",
3376
- "value": "!"
3377
- },
3378
- {
3379
- "type": "SYMBOL",
3380
- "name": "_expr"
3381
- }
3382
- ]
3303
+ ]
3304
+ }
3305
+ },
3306
+ "nonNullExpr": {
3307
+ "type": "PREC_LEFT",
3308
+ "value": 21,
3309
+ "content": {
3310
+ "type": "SEQ",
3311
+ "members": [
3312
+ {
3313
+ "type": "SYMBOL",
3314
+ "name": "_expr"
3315
+ },
3316
+ {
3317
+ "type": "STRING",
3318
+ "value": "!!"
3383
3319
  }
3384
- }
3385
- ]
3320
+ ]
3321
+ }
3386
3322
  },
3387
- "binaryExprRightAssoc": {
3388
- "type": "CHOICE",
3389
- "members": [
3390
- {
3391
- "type": "PREC_RIGHT",
3392
- "value": 18,
3393
- "content": {
3394
- "type": "SEQ",
3395
- "members": [
3396
- {
3397
- "type": "SYMBOL",
3398
- "name": "_expr"
3399
- },
3400
- {
3401
- "type": "FIELD",
3402
- "name": "operator",
3403
- "content": {
3404
- "type": "STRING",
3405
- "value": "**"
3406
- }
3407
- },
3408
- {
3409
- "type": "SYMBOL",
3410
- "name": "_expr"
3411
- }
3412
- ]
3323
+ "nullCoalesceExpr": {
3324
+ "type": "PREC_RIGHT",
3325
+ "value": 8,
3326
+ "content": {
3327
+ "type": "SEQ",
3328
+ "members": [
3329
+ {
3330
+ "type": "SYMBOL",
3331
+ "name": "_expr"
3332
+ },
3333
+ {
3334
+ "type": "FIELD",
3335
+ "name": "operator",
3336
+ "content": {
3337
+ "type": "STRING",
3338
+ "value": "??"
3339
+ }
3340
+ },
3341
+ {
3342
+ "type": "SYMBOL",
3343
+ "name": "_expr"
3413
3344
  }
3414
- },
3415
- {
3416
- "type": "PREC_RIGHT",
3417
- "value": 8,
3418
- "content": {
3419
- "type": "SEQ",
3420
- "members": [
3421
- {
3422
- "type": "SYMBOL",
3423
- "name": "_expr"
3424
- },
3425
- {
3426
- "type": "FIELD",
3427
- "name": "operator",
3428
- "content": {
3429
- "type": "STRING",
3430
- "value": "??"
3431
- }
3432
- },
3433
- {
3434
- "type": "SYMBOL",
3435
- "name": "_expr"
3436
- }
3437
- ]
3345
+ ]
3346
+ }
3347
+ },
3348
+ "exponentiationExpr": {
3349
+ "type": "PREC_RIGHT",
3350
+ "value": 18,
3351
+ "content": {
3352
+ "type": "SEQ",
3353
+ "members": [
3354
+ {
3355
+ "type": "SYMBOL",
3356
+ "name": "_expr"
3357
+ },
3358
+ {
3359
+ "type": "FIELD",
3360
+ "name": "operator",
3361
+ "content": {
3362
+ "type": "STRING",
3363
+ "value": "**"
3364
+ }
3365
+ },
3366
+ {
3367
+ "type": "SYMBOL",
3368
+ "name": "_expr"
3438
3369
  }
3439
- }
3440
- ]
3370
+ ]
3371
+ }
3441
3372
  },
3442
- "binaryExpr": {
3443
- "type": "CHOICE",
3444
- "members": [
3445
- {
3446
- "type": "PREC_LEFT",
3447
- "value": 17,
3448
- "content": {
3449
- "type": "SEQ",
3450
- "members": [
3451
- {
3452
- "type": "SYMBOL",
3453
- "name": "_expr"
3454
- },
3455
- {
3456
- "type": "FIELD",
3457
- "name": "operator",
3458
- "content": {
3373
+ "multiplicativeExpr": {
3374
+ "type": "PREC_LEFT",
3375
+ "value": 17,
3376
+ "content": {
3377
+ "type": "SEQ",
3378
+ "members": [
3379
+ {
3380
+ "type": "SYMBOL",
3381
+ "name": "_expr"
3382
+ },
3383
+ {
3384
+ "type": "FIELD",
3385
+ "name": "operator",
3386
+ "content": {
3387
+ "type": "CHOICE",
3388
+ "members": [
3389
+ {
3459
3390
  "type": "STRING",
3460
3391
  "value": "*"
3461
- }
3462
- },
3463
- {
3464
- "type": "SYMBOL",
3465
- "name": "_expr"
3466
- }
3467
- ]
3468
- }
3469
- },
3470
- {
3471
- "type": "PREC_LEFT",
3472
- "value": 17,
3473
- "content": {
3474
- "type": "SEQ",
3475
- "members": [
3476
- {
3477
- "type": "SYMBOL",
3478
- "name": "_expr"
3479
- },
3480
- {
3481
- "type": "FIELD",
3482
- "name": "operator",
3483
- "content": {
3392
+ },
3393
+ {
3484
3394
  "type": "STRING",
3485
3395
  "value": "/"
3486
- }
3487
- },
3488
- {
3489
- "type": "SYMBOL",
3490
- "name": "_expr"
3491
- }
3492
- ]
3493
- }
3494
- },
3495
- {
3496
- "type": "PREC_LEFT",
3497
- "value": 17,
3498
- "content": {
3499
- "type": "SEQ",
3500
- "members": [
3501
- {
3502
- "type": "SYMBOL",
3503
- "name": "_expr"
3504
- },
3505
- {
3506
- "type": "FIELD",
3507
- "name": "operator",
3508
- "content": {
3396
+ },
3397
+ {
3509
3398
  "type": "STRING",
3510
3399
  "value": "~/"
3511
- }
3512
- },
3513
- {
3514
- "type": "SYMBOL",
3515
- "name": "_expr"
3516
- }
3517
- ]
3518
- }
3519
- },
3520
- {
3521
- "type": "PREC_LEFT",
3522
- "value": 17,
3523
- "content": {
3524
- "type": "SEQ",
3525
- "members": [
3526
- {
3527
- "type": "SYMBOL",
3528
- "name": "_expr"
3529
- },
3530
- {
3531
- "type": "FIELD",
3532
- "name": "operator",
3533
- "content": {
3400
+ },
3401
+ {
3534
3402
  "type": "STRING",
3535
3403
  "value": "%"
3536
3404
  }
3537
- },
3538
- {
3539
- "type": "SYMBOL",
3540
- "name": "_expr"
3541
- }
3542
- ]
3405
+ ]
3406
+ }
3407
+ },
3408
+ {
3409
+ "type": "SYMBOL",
3410
+ "name": "_expr"
3543
3411
  }
3544
- },
3545
- {
3546
- "type": "PREC_LEFT",
3547
- "value": 16,
3548
- "content": {
3549
- "type": "SEQ",
3550
- "members": [
3551
- {
3552
- "type": "SYMBOL",
3553
- "name": "_expr"
3554
- },
3555
- {
3556
- "type": "FIELD",
3557
- "name": "operator",
3558
- "content": {
3412
+ ]
3413
+ }
3414
+ },
3415
+ "additiveExpr": {
3416
+ "type": "PREC_LEFT",
3417
+ "value": 16,
3418
+ "content": {
3419
+ "type": "SEQ",
3420
+ "members": [
3421
+ {
3422
+ "type": "SYMBOL",
3423
+ "name": "_expr"
3424
+ },
3425
+ {
3426
+ "type": "FIELD",
3427
+ "name": "operator",
3428
+ "content": {
3429
+ "type": "CHOICE",
3430
+ "members": [
3431
+ {
3559
3432
  "type": "STRING",
3560
3433
  "value": "+"
3561
- }
3562
- },
3563
- {
3564
- "type": "SYMBOL",
3565
- "name": "_expr"
3566
- }
3567
- ]
3568
- }
3569
- },
3570
- {
3571
- "type": "PREC_LEFT",
3572
- "value": 16,
3573
- "content": {
3574
- "type": "SEQ",
3575
- "members": [
3576
- {
3577
- "type": "SYMBOL",
3578
- "name": "_expr"
3579
- },
3580
- {
3581
- "type": "FIELD",
3582
- "name": "operator",
3583
- "content": {
3584
- "type": "STRING",
3434
+ },
3435
+ {
3436
+ "type": "ALIAS",
3437
+ "content": {
3438
+ "type": "SYMBOL",
3439
+ "name": "_binary_minus"
3440
+ },
3441
+ "named": false,
3585
3442
  "value": "-"
3586
3443
  }
3587
- },
3588
- {
3589
- "type": "SYMBOL",
3590
- "name": "_expr"
3591
- }
3592
- ]
3444
+ ]
3445
+ }
3446
+ },
3447
+ {
3448
+ "type": "SYMBOL",
3449
+ "name": "_expr"
3593
3450
  }
3594
- },
3595
- {
3596
- "type": "PREC_LEFT",
3597
- "value": 15,
3598
- "content": {
3599
- "type": "SEQ",
3600
- "members": [
3601
- {
3602
- "type": "SYMBOL",
3603
- "name": "_expr"
3604
- },
3605
- {
3606
- "type": "FIELD",
3607
- "name": "operator",
3608
- "content": {
3451
+ ]
3452
+ }
3453
+ },
3454
+ "comparisonExpr": {
3455
+ "type": "PREC_LEFT",
3456
+ "value": 15,
3457
+ "content": {
3458
+ "type": "SEQ",
3459
+ "members": [
3460
+ {
3461
+ "type": "SYMBOL",
3462
+ "name": "_expr"
3463
+ },
3464
+ {
3465
+ "type": "FIELD",
3466
+ "name": "operator",
3467
+ "content": {
3468
+ "type": "CHOICE",
3469
+ "members": [
3470
+ {
3609
3471
  "type": "STRING",
3610
3472
  "value": "<"
3611
- }
3612
- },
3613
- {
3614
- "type": "SYMBOL",
3615
- "name": "_expr"
3616
- }
3617
- ]
3618
- }
3619
- },
3620
- {
3621
- "type": "PREC_LEFT",
3622
- "value": 15,
3623
- "content": {
3624
- "type": "SEQ",
3625
- "members": [
3626
- {
3627
- "type": "SYMBOL",
3628
- "name": "_expr"
3629
- },
3630
- {
3631
- "type": "FIELD",
3632
- "name": "operator",
3633
- "content": {
3473
+ },
3474
+ {
3634
3475
  "type": "STRING",
3635
3476
  "value": "<="
3636
- }
3637
- },
3638
- {
3639
- "type": "SYMBOL",
3640
- "name": "_expr"
3641
- }
3642
- ]
3643
- }
3644
- },
3645
- {
3646
- "type": "PREC_LEFT",
3647
- "value": 15,
3648
- "content": {
3649
- "type": "SEQ",
3650
- "members": [
3651
- {
3652
- "type": "SYMBOL",
3653
- "name": "_expr"
3654
- },
3655
- {
3656
- "type": "FIELD",
3657
- "name": "operator",
3658
- "content": {
3477
+ },
3478
+ {
3659
3479
  "type": "STRING",
3660
3480
  "value": ">="
3661
- }
3662
- },
3663
- {
3664
- "type": "SYMBOL",
3665
- "name": "_expr"
3666
- }
3667
- ]
3668
- }
3669
- },
3670
- {
3671
- "type": "PREC_LEFT",
3672
- "value": 15,
3673
- "content": {
3674
- "type": "SEQ",
3675
- "members": [
3676
- {
3677
- "type": "SYMBOL",
3678
- "name": "_expr"
3679
- },
3680
- {
3681
- "type": "FIELD",
3682
- "name": "operator",
3683
- "content": {
3481
+ },
3482
+ {
3684
3483
  "type": "STRING",
3685
3484
  "value": ">"
3686
3485
  }
3687
- },
3688
- {
3689
- "type": "SYMBOL",
3690
- "name": "_expr"
3691
- }
3692
- ]
3486
+ ]
3487
+ }
3488
+ },
3489
+ {
3490
+ "type": "SYMBOL",
3491
+ "name": "_expr"
3693
3492
  }
3694
- },
3695
- {
3696
- "type": "PREC_LEFT",
3697
- "value": 12,
3698
- "content": {
3699
- "type": "SEQ",
3700
- "members": [
3701
- {
3702
- "type": "SYMBOL",
3703
- "name": "_expr"
3704
- },
3705
- {
3706
- "type": "FIELD",
3707
- "name": "operator",
3708
- "content": {
3493
+ ]
3494
+ }
3495
+ },
3496
+ "equalityExpr": {
3497
+ "type": "PREC_LEFT",
3498
+ "value": 12,
3499
+ "content": {
3500
+ "type": "SEQ",
3501
+ "members": [
3502
+ {
3503
+ "type": "SYMBOL",
3504
+ "name": "_expr"
3505
+ },
3506
+ {
3507
+ "type": "FIELD",
3508
+ "name": "operator",
3509
+ "content": {
3510
+ "type": "CHOICE",
3511
+ "members": [
3512
+ {
3709
3513
  "type": "STRING",
3710
3514
  "value": "=="
3711
- }
3712
- },
3713
- {
3714
- "type": "SYMBOL",
3715
- "name": "_expr"
3716
- }
3717
- ]
3718
- }
3719
- },
3720
- {
3721
- "type": "PREC_LEFT",
3722
- "value": 12,
3723
- "content": {
3724
- "type": "SEQ",
3725
- "members": [
3726
- {
3727
- "type": "SYMBOL",
3728
- "name": "_expr"
3729
- },
3730
- {
3731
- "type": "FIELD",
3732
- "name": "operator",
3733
- "content": {
3515
+ },
3516
+ {
3734
3517
  "type": "STRING",
3735
3518
  "value": "!="
3736
3519
  }
3737
- },
3738
- {
3739
- "type": "SYMBOL",
3740
- "name": "_expr"
3741
- }
3742
- ]
3743
- }
3744
- },
3745
- {
3746
- "type": "PREC_LEFT",
3747
- "value": 11,
3748
- "content": {
3749
- "type": "SEQ",
3750
- "members": [
3751
- {
3752
- "type": "SYMBOL",
3753
- "name": "_expr"
3754
- },
3755
- {
3756
- "type": "FIELD",
3757
- "name": "operator",
3758
- "content": {
3759
- "type": "STRING",
3760
- "value": "&&"
3761
- }
3762
- },
3763
- {
3764
- "type": "SYMBOL",
3765
- "name": "_expr"
3766
- }
3767
- ]
3520
+ ]
3521
+ }
3522
+ },
3523
+ {
3524
+ "type": "SYMBOL",
3525
+ "name": "_expr"
3768
3526
  }
3769
- },
3770
- {
3771
- "type": "PREC_LEFT",
3772
- "value": 10,
3773
- "content": {
3774
- "type": "SEQ",
3775
- "members": [
3776
- {
3777
- "type": "SYMBOL",
3778
- "name": "_expr"
3779
- },
3780
- {
3781
- "type": "FIELD",
3782
- "name": "operator",
3783
- "content": {
3784
- "type": "STRING",
3785
- "value": "||"
3786
- }
3787
- },
3788
- {
3789
- "type": "SYMBOL",
3790
- "name": "_expr"
3791
- }
3792
- ]
3527
+ ]
3528
+ }
3529
+ },
3530
+ "logicalAndExpr": {
3531
+ "type": "PREC_LEFT",
3532
+ "value": 11,
3533
+ "content": {
3534
+ "type": "SEQ",
3535
+ "members": [
3536
+ {
3537
+ "type": "SYMBOL",
3538
+ "name": "_expr"
3539
+ },
3540
+ {
3541
+ "type": "FIELD",
3542
+ "name": "operator",
3543
+ "content": {
3544
+ "type": "STRING",
3545
+ "value": "&&"
3546
+ }
3547
+ },
3548
+ {
3549
+ "type": "SYMBOL",
3550
+ "name": "_expr"
3793
3551
  }
3794
- },
3795
- {
3796
- "type": "PREC_LEFT",
3797
- "value": 9,
3798
- "content": {
3799
- "type": "SEQ",
3800
- "members": [
3801
- {
3802
- "type": "SYMBOL",
3803
- "name": "_expr"
3804
- },
3805
- {
3806
- "type": "FIELD",
3807
- "name": "operator",
3808
- "content": {
3809
- "type": "STRING",
3810
- "value": "|>"
3811
- }
3812
- },
3813
- {
3814
- "type": "SYMBOL",
3815
- "name": "_expr"
3816
- }
3817
- ]
3552
+ ]
3553
+ }
3554
+ },
3555
+ "logicalOrExpr": {
3556
+ "type": "PREC_LEFT",
3557
+ "value": 10,
3558
+ "content": {
3559
+ "type": "SEQ",
3560
+ "members": [
3561
+ {
3562
+ "type": "SYMBOL",
3563
+ "name": "_expr"
3564
+ },
3565
+ {
3566
+ "type": "FIELD",
3567
+ "name": "operator",
3568
+ "content": {
3569
+ "type": "STRING",
3570
+ "value": "||"
3571
+ }
3572
+ },
3573
+ {
3574
+ "type": "SYMBOL",
3575
+ "name": "_expr"
3818
3576
  }
3819
- }
3820
- ]
3577
+ ]
3578
+ }
3579
+ },
3580
+ "pipeExpr": {
3581
+ "type": "PREC_LEFT",
3582
+ "value": 9,
3583
+ "content": {
3584
+ "type": "SEQ",
3585
+ "members": [
3586
+ {
3587
+ "type": "SYMBOL",
3588
+ "name": "_expr"
3589
+ },
3590
+ {
3591
+ "type": "FIELD",
3592
+ "name": "operator",
3593
+ "content": {
3594
+ "type": "STRING",
3595
+ "value": "|>"
3596
+ }
3597
+ },
3598
+ {
3599
+ "type": "SYMBOL",
3600
+ "name": "_expr"
3601
+ }
3602
+ ]
3603
+ }
3821
3604
  },
3822
- "isExpr": {
3605
+ "typeTestExpr": {
3823
3606
  "type": "PREC",
3824
3607
  "value": 14,
3825
3608
  "content": {
@@ -3830,17 +3613,21 @@
3830
3613
  "name": "_expr"
3831
3614
  },
3832
3615
  {
3833
- "type": "STRING",
3834
- "value": "is"
3616
+ "type": "FIELD",
3617
+ "name": "operator",
3618
+ "content": {
3619
+ "type": "STRING",
3620
+ "value": "is"
3621
+ }
3835
3622
  },
3836
3623
  {
3837
3624
  "type": "SYMBOL",
3838
- "name": "type"
3625
+ "name": "_type"
3839
3626
  }
3840
3627
  ]
3841
3628
  }
3842
3629
  },
3843
- "asExpr": {
3630
+ "typeCastExpr": {
3844
3631
  "type": "PREC",
3845
3632
  "value": 14,
3846
3633
  "content": {
@@ -3851,12 +3638,16 @@
3851
3638
  "name": "_expr"
3852
3639
  },
3853
3640
  {
3854
- "type": "STRING",
3855
- "value": "as"
3641
+ "type": "FIELD",
3642
+ "name": "operator",
3643
+ "content": {
3644
+ "type": "STRING",
3645
+ "value": "as"
3646
+ }
3856
3647
  },
3857
3648
  {
3858
3649
  "type": "SYMBOL",
3859
- "name": "type"
3650
+ "name": "_type"
3860
3651
  }
3861
3652
  ]
3862
3653
  }
@@ -3914,7 +3705,7 @@
3914
3705
  },
3915
3706
  {
3916
3707
  "type": "SYMBOL",
3917
- "name": "typedIdentifier"
3708
+ "name": "_parameter"
3918
3709
  },
3919
3710
  {
3920
3711
  "type": "STRING",
@@ -3945,9 +3736,17 @@
3945
3736
  "type": "STRING",
3946
3737
  "value": "throw"
3947
3738
  },
3739
+ {
3740
+ "type": "STRING",
3741
+ "value": "("
3742
+ },
3948
3743
  {
3949
3744
  "type": "SYMBOL",
3950
3745
  "name": "_expr"
3746
+ },
3747
+ {
3748
+ "type": "STRING",
3749
+ "value": ")"
3951
3750
  }
3952
3751
  ]
3953
3752
  }
@@ -3962,9 +3761,17 @@
3962
3761
  "type": "STRING",
3963
3762
  "value": "trace"
3964
3763
  },
3764
+ {
3765
+ "type": "STRING",
3766
+ "value": "("
3767
+ },
3965
3768
  {
3966
3769
  "type": "SYMBOL",
3967
3770
  "name": "_expr"
3771
+ },
3772
+ {
3773
+ "type": "STRING",
3774
+ "value": ")"
3968
3775
  }
3969
3776
  ]
3970
3777
  }
@@ -3976,46 +3783,37 @@
3976
3783
  "type": "SEQ",
3977
3784
  "members": [
3978
3785
  {
3979
- "type": "STRING",
3980
- "value": "read"
3786
+ "type": "FIELD",
3787
+ "name": "variant",
3788
+ "content": {
3789
+ "type": "CHOICE",
3790
+ "members": [
3791
+ {
3792
+ "type": "STRING",
3793
+ "value": "read"
3794
+ },
3795
+ {
3796
+ "type": "STRING",
3797
+ "value": "read?"
3798
+ },
3799
+ {
3800
+ "type": "STRING",
3801
+ "value": "read*"
3802
+ }
3803
+ ]
3804
+ }
3981
3805
  },
3982
- {
3983
- "type": "SYMBOL",
3984
- "name": "_expr"
3985
- }
3986
- ]
3987
- }
3988
- },
3989
- "readOrNullExpr": {
3990
- "type": "PREC",
3991
- "value": -9,
3992
- "content": {
3993
- "type": "SEQ",
3994
- "members": [
3995
3806
  {
3996
3807
  "type": "STRING",
3997
- "value": "read?"
3808
+ "value": "("
3998
3809
  },
3999
3810
  {
4000
3811
  "type": "SYMBOL",
4001
3812
  "name": "_expr"
4002
- }
4003
- ]
4004
- }
4005
- },
4006
- "readGlobExpr": {
4007
- "type": "PREC",
4008
- "value": -10,
4009
- "content": {
4010
- "type": "SEQ",
4011
- "members": [
4012
- {
4013
- "type": "STRING",
4014
- "value": "read*"
4015
3813
  },
4016
3814
  {
4017
- "type": "SYMBOL",
4018
- "name": "_expr"
3815
+ "type": "STRING",
3816
+ "value": ")"
4019
3817
  }
4020
3818
  ]
4021
3819
  }
@@ -4024,8 +3822,21 @@
4024
3822
  "type": "SEQ",
4025
3823
  "members": [
4026
3824
  {
4027
- "type": "STRING",
4028
- "value": "import"
3825
+ "type": "FIELD",
3826
+ "name": "variant",
3827
+ "content": {
3828
+ "type": "CHOICE",
3829
+ "members": [
3830
+ {
3831
+ "type": "STRING",
3832
+ "value": "import"
3833
+ },
3834
+ {
3835
+ "type": "STRING",
3836
+ "value": "import*"
3837
+ }
3838
+ ]
3839
+ }
4029
3840
  },
4030
3841
  {
4031
3842
  "type": "SEQ",
@@ -4046,33 +3857,142 @@
4046
3857
  }
4047
3858
  ]
4048
3859
  },
4049
- "importGlobExpr": {
3860
+ "unqualifiedAccessExpr": {
4050
3861
  "type": "SEQ",
4051
3862
  "members": [
4052
3863
  {
4053
- "type": "STRING",
4054
- "value": "import*"
3864
+ "type": "SYMBOL",
3865
+ "name": "identifier"
4055
3866
  },
4056
3867
  {
4057
- "type": "SEQ",
3868
+ "type": "CHOICE",
4058
3869
  "members": [
4059
- {
4060
- "type": "STRING",
4061
- "value": "("
4062
- },
4063
3870
  {
4064
3871
  "type": "SYMBOL",
4065
- "name": "stringConstant"
3872
+ "name": "argumentList"
4066
3873
  },
4067
3874
  {
4068
- "type": "STRING",
4069
- "value": ")"
3875
+ "type": "BLANK"
4070
3876
  }
4071
3877
  ]
4072
3878
  }
4073
3879
  ]
4074
3880
  },
4075
- "functionLiteral": {
3881
+ "superAccessExpr": {
3882
+ "type": "PREC_LEFT",
3883
+ "value": 22,
3884
+ "content": {
3885
+ "type": "SEQ",
3886
+ "members": [
3887
+ {
3888
+ "type": "STRING",
3889
+ "value": "super"
3890
+ },
3891
+ {
3892
+ "type": "STRING",
3893
+ "value": "."
3894
+ },
3895
+ {
3896
+ "type": "SYMBOL",
3897
+ "name": "identifier"
3898
+ },
3899
+ {
3900
+ "type": "CHOICE",
3901
+ "members": [
3902
+ {
3903
+ "type": "SYMBOL",
3904
+ "name": "argumentList"
3905
+ },
3906
+ {
3907
+ "type": "BLANK"
3908
+ }
3909
+ ]
3910
+ }
3911
+ ]
3912
+ }
3913
+ },
3914
+ "superSubscriptExpr": {
3915
+ "type": "PREC_LEFT",
3916
+ "value": 22,
3917
+ "content": {
3918
+ "type": "SEQ",
3919
+ "members": [
3920
+ {
3921
+ "type": "STRING",
3922
+ "value": "super"
3923
+ },
3924
+ {
3925
+ "type": "ALIAS",
3926
+ "content": {
3927
+ "type": "SYMBOL",
3928
+ "name": "_open_subscript_bracket"
3929
+ },
3930
+ "named": false,
3931
+ "value": "["
3932
+ },
3933
+ {
3934
+ "type": "SYMBOL",
3935
+ "name": "_expr"
3936
+ },
3937
+ {
3938
+ "type": "STRING",
3939
+ "value": "]"
3940
+ }
3941
+ ]
3942
+ }
3943
+ },
3944
+ "qualifiedAccessExpr": {
3945
+ "type": "PREC_LEFT",
3946
+ "value": 22,
3947
+ "content": {
3948
+ "type": "SEQ",
3949
+ "members": [
3950
+ {
3951
+ "type": "FIELD",
3952
+ "name": "receiver",
3953
+ "content": {
3954
+ "type": "SYMBOL",
3955
+ "name": "_expr"
3956
+ }
3957
+ },
3958
+ {
3959
+ "type": "CHOICE",
3960
+ "members": [
3961
+ {
3962
+ "type": "STRING",
3963
+ "value": "."
3964
+ },
3965
+ {
3966
+ "type": "STRING",
3967
+ "value": "?."
3968
+ }
3969
+ ]
3970
+ },
3971
+ {
3972
+ "type": "SEQ",
3973
+ "members": [
3974
+ {
3975
+ "type": "SYMBOL",
3976
+ "name": "identifier"
3977
+ },
3978
+ {
3979
+ "type": "CHOICE",
3980
+ "members": [
3981
+ {
3982
+ "type": "SYMBOL",
3983
+ "name": "argumentList"
3984
+ },
3985
+ {
3986
+ "type": "BLANK"
3987
+ }
3988
+ ]
3989
+ }
3990
+ ]
3991
+ }
3992
+ ]
3993
+ }
3994
+ },
3995
+ "functionLiteralExpr": {
4076
3996
  "type": "PREC",
4077
3997
  "value": -11,
4078
3998
  "content": {
@@ -4118,27 +4038,6 @@
4118
4038
  }
4119
4039
  ]
4120
4040
  },
4121
- "typedIdentifier": {
4122
- "type": "SEQ",
4123
- "members": [
4124
- {
4125
- "type": "SYMBOL",
4126
- "name": "identifier"
4127
- },
4128
- {
4129
- "type": "CHOICE",
4130
- "members": [
4131
- {
4132
- "type": "SYMBOL",
4133
- "name": "typeAnnotation"
4134
- },
4135
- {
4136
- "type": "BLANK"
4137
- }
4138
- ]
4139
- }
4140
- ]
4141
- },
4142
4041
  "identifier": {
4143
4042
  "type": "TOKEN",
4144
4043
  "content": {
@@ -4273,18 +4172,11 @@
4273
4172
  ],
4274
4173
  "conflicts": [
4275
4174
  [
4276
- "variableExpr",
4277
- "typedIdentifier"
4278
- ],
4279
- [
4280
- "objectElement",
4281
- "_expr"
4175
+ "typedIdentifier",
4176
+ "unqualifiedAccessExpr"
4282
4177
  ],
4283
4178
  [
4284
4179
  "qualifiedIdentifier"
4285
- ],
4286
- [
4287
- "declaredType"
4288
4180
  ]
4289
4181
  ],
4290
4182
  "precedences": [],
@@ -4352,8 +4244,172 @@
4352
4244
  {
4353
4245
  "type": "SYMBOL",
4354
4246
  "name": "_open_argument_paren"
4247
+ },
4248
+ {
4249
+ "type": "SYMBOL",
4250
+ "name": "_binary_minus"
4355
4251
  }
4356
4252
  ],
4357
4253
  "inline": [],
4358
- "supertypes": []
4359
- }
4254
+ "supertypes": [],
4255
+ "reserved": {
4256
+ "global": [
4257
+ {
4258
+ "type": "STRING",
4259
+ "value": "_"
4260
+ },
4261
+ {
4262
+ "type": "STRING",
4263
+ "value": "abstract"
4264
+ },
4265
+ {
4266
+ "type": "STRING",
4267
+ "value": "amends"
4268
+ },
4269
+ {
4270
+ "type": "STRING",
4271
+ "value": "as"
4272
+ },
4273
+ {
4274
+ "type": "STRING",
4275
+ "value": "class"
4276
+ },
4277
+ {
4278
+ "type": "STRING",
4279
+ "value": "const"
4280
+ },
4281
+ {
4282
+ "type": "STRING",
4283
+ "value": "else"
4284
+ },
4285
+ {
4286
+ "type": "STRING",
4287
+ "value": "extends"
4288
+ },
4289
+ {
4290
+ "type": "STRING",
4291
+ "value": "external"
4292
+ },
4293
+ {
4294
+ "type": "STRING",
4295
+ "value": "false"
4296
+ },
4297
+ {
4298
+ "type": "STRING",
4299
+ "value": "fixed"
4300
+ },
4301
+ {
4302
+ "type": "STRING",
4303
+ "value": "for"
4304
+ },
4305
+ {
4306
+ "type": "STRING",
4307
+ "value": "function"
4308
+ },
4309
+ {
4310
+ "type": "STRING",
4311
+ "value": "hidden"
4312
+ },
4313
+ {
4314
+ "type": "STRING",
4315
+ "value": "if"
4316
+ },
4317
+ {
4318
+ "type": "STRING",
4319
+ "value": "import"
4320
+ },
4321
+ {
4322
+ "type": "STRING",
4323
+ "value": "import*"
4324
+ },
4325
+ {
4326
+ "type": "STRING",
4327
+ "value": "in"
4328
+ },
4329
+ {
4330
+ "type": "STRING",
4331
+ "value": "is"
4332
+ },
4333
+ {
4334
+ "type": "STRING",
4335
+ "value": "let"
4336
+ },
4337
+ {
4338
+ "type": "STRING",
4339
+ "value": "local"
4340
+ },
4341
+ {
4342
+ "type": "STRING",
4343
+ "value": "module"
4344
+ },
4345
+ {
4346
+ "type": "STRING",
4347
+ "value": "new"
4348
+ },
4349
+ {
4350
+ "type": "STRING",
4351
+ "value": "nothing"
4352
+ },
4353
+ {
4354
+ "type": "STRING",
4355
+ "value": "null"
4356
+ },
4357
+ {
4358
+ "type": "STRING",
4359
+ "value": "open"
4360
+ },
4361
+ {
4362
+ "type": "STRING",
4363
+ "value": "out"
4364
+ },
4365
+ {
4366
+ "type": "STRING",
4367
+ "value": "outer"
4368
+ },
4369
+ {
4370
+ "type": "STRING",
4371
+ "value": "read"
4372
+ },
4373
+ {
4374
+ "type": "STRING",
4375
+ "value": "read*"
4376
+ },
4377
+ {
4378
+ "type": "STRING",
4379
+ "value": "read?"
4380
+ },
4381
+ {
4382
+ "type": "STRING",
4383
+ "value": "super"
4384
+ },
4385
+ {
4386
+ "type": "STRING",
4387
+ "value": "this"
4388
+ },
4389
+ {
4390
+ "type": "STRING",
4391
+ "value": "throw"
4392
+ },
4393
+ {
4394
+ "type": "STRING",
4395
+ "value": "trace"
4396
+ },
4397
+ {
4398
+ "type": "STRING",
4399
+ "value": "true"
4400
+ },
4401
+ {
4402
+ "type": "STRING",
4403
+ "value": "typealias"
4404
+ },
4405
+ {
4406
+ "type": "STRING",
4407
+ "value": "unknown"
4408
+ },
4409
+ {
4410
+ "type": "STRING",
4411
+ "value": "when"
4412
+ }
4413
+ ]
4414
+ }
4415
+ }