@hydranium/core 1.0.0-next.9 → 1.0.0-next.90

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 (316) hide show
  1. package/lib/documents/ast-document-manager.d.ts +75 -16
  2. package/lib/documents/ast-document-manager.d.ts.map +1 -1
  3. package/lib/documents/ast-document-manager.js +57 -19
  4. package/lib/documents/ast-document-manager.js.map +1 -1
  5. package/lib/documents/client-ids.d.ts +5 -19
  6. package/lib/documents/client-ids.d.ts.map +1 -1
  7. package/lib/documents/client-ids.js +5 -19
  8. package/lib/documents/client-ids.js.map +1 -1
  9. package/lib/documents/hydranium-text-documents.d.ts +55 -21
  10. package/lib/documents/hydranium-text-documents.d.ts.map +1 -1
  11. package/lib/documents/hydranium-text-documents.js +142 -46
  12. package/lib/documents/hydranium-text-documents.js.map +1 -1
  13. package/lib/documents/language-client-text-shadow.d.ts +41 -9
  14. package/lib/documents/language-client-text-shadow.d.ts.map +1 -1
  15. package/lib/documents/language-client-text-shadow.js +56 -11
  16. package/lib/documents/language-client-text-shadow.js.map +1 -1
  17. package/lib/documents/self-save-registry.d.ts +37 -6
  18. package/lib/documents/self-save-registry.d.ts.map +1 -1
  19. package/lib/documents/self-save-registry.js +28 -15
  20. package/lib/documents/self-save-registry.js.map +1 -1
  21. package/lib/index.d.ts +2 -0
  22. package/lib/index.d.ts.map +1 -1
  23. package/lib/index.js +5 -0
  24. package/lib/index.js.map +1 -1
  25. package/lib/langium/ast-extension/ast-node-builder.d.ts +32 -9
  26. package/lib/langium/ast-extension/ast-node-builder.d.ts.map +1 -1
  27. package/lib/langium/ast-extension/ast-node-builder.js +60 -22
  28. package/lib/langium/ast-extension/ast-node-builder.js.map +1 -1
  29. package/lib/langium/bootstrap.d.ts.map +1 -1
  30. package/lib/langium/bootstrap.js +16 -9
  31. package/lib/langium/bootstrap.js.map +1 -1
  32. package/lib/langium/config/configuration-provider.d.ts +81 -0
  33. package/lib/langium/config/configuration-provider.d.ts.map +1 -0
  34. package/lib/langium/config/configuration-provider.js +112 -0
  35. package/lib/langium/config/configuration-provider.js.map +1 -0
  36. package/lib/langium/config/index.d.ts +1 -0
  37. package/lib/langium/config/index.d.ts.map +1 -1
  38. package/lib/langium/config/index.js +1 -0
  39. package/lib/langium/config/index.js.map +1 -1
  40. package/lib/langium/diagnostics/lsp-logger.d.ts +17 -0
  41. package/lib/langium/diagnostics/lsp-logger.d.ts.map +1 -1
  42. package/lib/langium/diagnostics/lsp-logger.js +40 -6
  43. package/lib/langium/diagnostics/lsp-logger.js.map +1 -1
  44. package/lib/langium/document-builder/build-pipeline-integration.d.ts +13 -1
  45. package/lib/langium/document-builder/build-pipeline-integration.d.ts.map +1 -1
  46. package/lib/langium/document-builder/build-pipeline-integration.js +1 -1
  47. package/lib/langium/document-builder/build-pipeline-integration.js.map +1 -1
  48. package/lib/langium/document-builder/build-session.d.ts +93 -0
  49. package/lib/langium/document-builder/build-session.d.ts.map +1 -0
  50. package/lib/langium/document-builder/build-session.js +72 -0
  51. package/lib/langium/document-builder/build-session.js.map +1 -0
  52. package/lib/langium/document-builder/document-builder.d.ts +150 -7
  53. package/lib/langium/document-builder/document-builder.d.ts.map +1 -1
  54. package/lib/langium/document-builder/document-builder.js +298 -11
  55. package/lib/langium/document-builder/document-builder.js.map +1 -1
  56. package/lib/langium/document-builder/index.d.ts +1 -0
  57. package/lib/langium/document-builder/index.d.ts.map +1 -1
  58. package/lib/langium/document-builder/index.js +1 -0
  59. package/lib/langium/document-builder/index.js.map +1 -1
  60. package/lib/langium/integration-services.d.ts +45 -1
  61. package/lib/langium/integration-services.d.ts.map +1 -1
  62. package/lib/langium/integration-services.js +10 -5
  63. package/lib/langium/integration-services.js.map +1 -1
  64. package/lib/langium/integrity/integrity-service.d.ts +5 -0
  65. package/lib/langium/integrity/integrity-service.d.ts.map +1 -1
  66. package/lib/langium/integrity/integrity-service.js +34 -1
  67. package/lib/langium/integrity/integrity-service.js.map +1 -1
  68. package/lib/langium/keys/containment.d.ts +64 -0
  69. package/lib/langium/keys/containment.d.ts.map +1 -0
  70. package/lib/langium/keys/containment.js +53 -0
  71. package/lib/langium/keys/containment.js.map +1 -0
  72. package/lib/langium/keys/index.d.ts +1 -0
  73. package/lib/langium/keys/index.d.ts.map +1 -1
  74. package/lib/langium/keys/index.js +1 -0
  75. package/lib/langium/keys/index.js.map +1 -1
  76. package/lib/langium/keys/name-based-key-provider.d.ts +4 -0
  77. package/lib/langium/keys/name-based-key-provider.d.ts.map +1 -1
  78. package/lib/langium/keys/name-based-key-provider.js +4 -0
  79. package/lib/langium/keys/name-based-key-provider.js.map +1 -1
  80. package/lib/langium/model-service/model-service.d.ts +149 -10
  81. package/lib/langium/model-service/model-service.d.ts.map +1 -1
  82. package/lib/langium/model-service/model-service.js +120 -93
  83. package/lib/langium/model-service/model-service.js.map +1 -1
  84. package/lib/langium/module.d.ts +84 -15
  85. package/lib/langium/module.d.ts.map +1 -1
  86. package/lib/langium/module.js +26 -12
  87. package/lib/langium/module.js.map +1 -1
  88. package/lib/langium/naming/name-provider.d.ts +25 -4
  89. package/lib/langium/naming/name-provider.d.ts.map +1 -1
  90. package/lib/langium/naming/name-provider.js +2 -1
  91. package/lib/langium/naming/name-provider.js.map +1 -1
  92. package/lib/langium/naming/name-separator-validation.d.ts +23 -0
  93. package/lib/langium/naming/name-separator-validation.d.ts.map +1 -1
  94. package/lib/langium/naming/name-separator-validation.js +30 -1
  95. package/lib/langium/naming/name-separator-validation.js.map +1 -1
  96. package/lib/langium/residency/cst-residency-service.d.ts +31 -9
  97. package/lib/langium/residency/cst-residency-service.d.ts.map +1 -1
  98. package/lib/langium/residency/cst-residency-service.js +13 -56
  99. package/lib/langium/residency/cst-residency-service.js.map +1 -1
  100. package/lib/langium/scope/hydranium-scope-provider.d.ts +32 -13
  101. package/lib/langium/scope/hydranium-scope-provider.d.ts.map +1 -1
  102. package/lib/langium/scope/hydranium-scope-provider.js +37 -20
  103. package/lib/langium/scope/hydranium-scope-provider.js.map +1 -1
  104. package/lib/langium/service-registry.d.ts +5 -1
  105. package/lib/langium/service-registry.d.ts.map +1 -1
  106. package/lib/langium/service-registry.js +4 -0
  107. package/lib/langium/service-registry.js.map +1 -1
  108. package/lib/langium/shared-services.d.ts +15 -2
  109. package/lib/langium/shared-services.d.ts.map +1 -1
  110. package/lib/langium/shared-services.js.map +1 -1
  111. package/lib/langium/transfer/transfer-encoder.d.ts +60 -17
  112. package/lib/langium/transfer/transfer-encoder.d.ts.map +1 -1
  113. package/lib/langium/transfer/transfer-encoder.js +38 -16
  114. package/lib/langium/transfer/transfer-encoder.js.map +1 -1
  115. package/lib/langium/validation/document-validator.d.ts +294 -10
  116. package/lib/langium/validation/document-validator.d.ts.map +1 -1
  117. package/lib/langium/validation/document-validator.js +448 -5
  118. package/lib/langium/validation/document-validator.js.map +1 -1
  119. package/lib/langium/workspace/document-uri-policy.d.ts +3 -4
  120. package/lib/langium/workspace/document-uri-policy.d.ts.map +1 -1
  121. package/lib/langium/workspace/document-uri-policy.js +3 -4
  122. package/lib/langium/workspace/document-uri-policy.js.map +1 -1
  123. package/lib/langium/workspace/hydranium-langium-document-factory.d.ts +25 -0
  124. package/lib/langium/workspace/hydranium-langium-document-factory.d.ts.map +1 -1
  125. package/lib/langium/workspace/hydranium-langium-document-factory.js +25 -0
  126. package/lib/langium/workspace/hydranium-langium-document-factory.js.map +1 -1
  127. package/lib/langium/workspace/hydranium-workspace-manager.d.ts +21 -1
  128. package/lib/langium/workspace/hydranium-workspace-manager.d.ts.map +1 -1
  129. package/lib/langium/workspace/hydranium-workspace-manager.js +28 -0
  130. package/lib/langium/workspace/hydranium-workspace-manager.js.map +1 -1
  131. package/lib/langium/workspace/in-memory-file-system-provider.d.ts +8 -0
  132. package/lib/langium/workspace/in-memory-file-system-provider.d.ts.map +1 -1
  133. package/lib/langium/workspace/in-memory-file-system-provider.js +11 -2
  134. package/lib/langium/workspace/in-memory-file-system-provider.js.map +1 -1
  135. package/lib/langium/workspace/initialize-workspace.d.ts +22 -2
  136. package/lib/langium/workspace/initialize-workspace.d.ts.map +1 -1
  137. package/lib/langium/workspace/initialize-workspace.js +13 -5
  138. package/lib/langium/workspace/initialize-workspace.js.map +1 -1
  139. package/lib/langium/workspace/langium-documents.d.ts +79 -17
  140. package/lib/langium/workspace/langium-documents.d.ts.map +1 -1
  141. package/lib/langium/workspace/langium-documents.js +83 -28
  142. package/lib/langium/workspace/langium-documents.js.map +1 -1
  143. package/lib/locale/index.d.ts +10 -0
  144. package/lib/locale/index.d.ts.map +1 -0
  145. package/lib/locale/index.js +10 -0
  146. package/lib/locale/index.js.map +1 -0
  147. package/lib/locale/server-locale.d.ts +73 -0
  148. package/lib/locale/server-locale.d.ts.map +1 -0
  149. package/lib/locale/server-locale.js +61 -0
  150. package/lib/locale/server-locale.js.map +1 -0
  151. package/lib/lsp/hydranium-document-update-handler.js +1 -1
  152. package/lib/lsp/hydranium-document-update-handler.js.map +1 -1
  153. package/lib/lsp/index.d.ts +1 -1
  154. package/lib/lsp/index.d.ts.map +1 -1
  155. package/lib/lsp/index.js +1 -1
  156. package/lib/lsp/index.js.map +1 -1
  157. package/lib/lsp/lsp-latency.d.ts +39 -0
  158. package/lib/lsp/lsp-latency.d.ts.map +1 -0
  159. package/lib/lsp/lsp-latency.js +58 -0
  160. package/lib/lsp/lsp-latency.js.map +1 -0
  161. package/lib/lsp/semantic-token-provider.d.ts +34 -1
  162. package/lib/lsp/semantic-token-provider.d.ts.map +1 -1
  163. package/lib/lsp/semantic-token-provider.js +55 -8
  164. package/lib/lsp/semantic-token-provider.js.map +1 -1
  165. package/lib/messages/carriers.d.ts +54 -0
  166. package/lib/messages/carriers.d.ts.map +1 -0
  167. package/lib/messages/carriers.js +62 -0
  168. package/lib/messages/carriers.js.map +1 -0
  169. package/lib/messages/index.d.ts +25 -0
  170. package/lib/messages/index.d.ts.map +1 -0
  171. package/lib/messages/index.js +25 -0
  172. package/lib/messages/index.js.map +1 -0
  173. package/lib/messages/renderer.d.ts +136 -0
  174. package/lib/messages/renderer.d.ts.map +1 -0
  175. package/lib/messages/renderer.js +159 -0
  176. package/lib/messages/renderer.js.map +1 -0
  177. package/lib/node/heap-ceiling.d.ts +61 -0
  178. package/lib/node/heap-ceiling.d.ts.map +1 -0
  179. package/lib/node/heap-ceiling.js +72 -0
  180. package/lib/node/heap-ceiling.js.map +1 -0
  181. package/lib/node/index.d.ts +1 -0
  182. package/lib/node/index.d.ts.map +1 -1
  183. package/lib/node/index.js +1 -0
  184. package/lib/node/index.js.map +1 -1
  185. package/lib/node/latency-from-env.d.ts +1 -1
  186. package/lib/node/latency-from-env.js +1 -1
  187. package/lib/node/node-file-system-provider.d.ts.map +1 -1
  188. package/lib/node/node-file-system-provider.js +1 -40
  189. package/lib/node/node-file-system-provider.js.map +1 -1
  190. package/lib/node/profiling-run.d.ts +2 -2
  191. package/lib/node/profiling-run.js +1 -1
  192. package/lib/node/profiling-run.js.map +1 -1
  193. package/lib/node/rename-over-open-readers.d.ts +52 -0
  194. package/lib/node/rename-over-open-readers.d.ts.map +1 -0
  195. package/lib/node/rename-over-open-readers.js +66 -0
  196. package/lib/node/rename-over-open-readers.js.map +1 -0
  197. package/lib/node/socket-launcher.d.ts +15 -0
  198. package/lib/node/socket-launcher.d.ts.map +1 -1
  199. package/lib/node/socket-launcher.js +3 -2
  200. package/lib/node/socket-launcher.js.map +1 -1
  201. package/lib/testing/fake-document.d.ts +16 -4
  202. package/lib/testing/fake-document.d.ts.map +1 -1
  203. package/lib/testing/fake-document.js +18 -3
  204. package/lib/testing/fake-document.js.map +1 -1
  205. package/lib/testing/make-noop-shared-services.d.ts +14 -0
  206. package/lib/testing/make-noop-shared-services.d.ts.map +1 -1
  207. package/lib/testing/make-noop-shared-services.js +28 -2
  208. package/lib/testing/make-noop-shared-services.js.map +1 -1
  209. package/lib/testing/make-test-services.d.ts +44 -8
  210. package/lib/testing/make-test-services.d.ts.map +1 -1
  211. package/lib/testing/make-test-services.js +19 -3
  212. package/lib/testing/make-test-services.js.map +1 -1
  213. package/lib/testing/node/spawned-server.d.ts +14 -0
  214. package/lib/testing/node/spawned-server.d.ts.map +1 -1
  215. package/lib/testing/node/spawned-server.js +33 -1
  216. package/lib/testing/node/spawned-server.js.map +1 -1
  217. package/lib/testing/playwright/flaky-network-proxy.d.ts +76 -0
  218. package/lib/testing/playwright/flaky-network-proxy.d.ts.map +1 -0
  219. package/lib/testing/playwright/flaky-network-proxy.js +164 -0
  220. package/lib/testing/playwright/flaky-network-proxy.js.map +1 -0
  221. package/lib/testing/playwright/index.d.ts +1 -0
  222. package/lib/testing/playwright/index.d.ts.map +1 -1
  223. package/lib/testing/playwright/index.js +1 -0
  224. package/lib/testing/playwright/index.js.map +1 -1
  225. package/lib/testing/playwright/server-log-capture.d.ts +14 -4
  226. package/lib/testing/playwright/server-log-capture.d.ts.map +1 -1
  227. package/lib/testing/playwright/server-log-capture.js +21 -4
  228. package/lib/testing/playwright/server-log-capture.js.map +1 -1
  229. package/lib/testing/playwright/server-log-rename-reporter.d.ts.map +1 -1
  230. package/lib/testing/playwright/server-log-rename-reporter.js +10 -1
  231. package/lib/testing/playwright/server-log-rename-reporter.js.map +1 -1
  232. package/lib/testing/stub-ast-document-manager.d.ts +5 -5
  233. package/lib/testing/stub-ast-document-manager.d.ts.map +1 -1
  234. package/lib/testing/stub-ast-document-manager.js +4 -6
  235. package/lib/testing/stub-ast-document-manager.js.map +1 -1
  236. package/lib/testing/stub-document-builder.d.ts +8 -0
  237. package/lib/testing/stub-document-builder.d.ts.map +1 -1
  238. package/lib/testing/stub-document-builder.js +22 -3
  239. package/lib/testing/stub-document-builder.js.map +1 -1
  240. package/lib/testing/stub-langium-documents.d.ts +3 -2
  241. package/lib/testing/stub-langium-documents.d.ts.map +1 -1
  242. package/lib/testing/stub-langium-documents.js.map +1 -1
  243. package/lib/testing/stub-model-service.d.ts +5 -4
  244. package/lib/testing/stub-model-service.d.ts.map +1 -1
  245. package/lib/testing/stub-model-service.js +2 -2
  246. package/lib/testing/stub-model-service.js.map +1 -1
  247. package/package.json +17 -8
  248. package/src/documents/ast-document-manager.ts +129 -36
  249. package/src/documents/client-ids.ts +5 -22
  250. package/src/documents/hydranium-text-documents.ts +167 -61
  251. package/src/documents/language-client-text-shadow.ts +59 -11
  252. package/src/documents/self-save-registry.ts +52 -13
  253. package/src/index.ts +5 -0
  254. package/src/langium/ast-extension/ast-node-builder.ts +66 -22
  255. package/src/langium/bootstrap.ts +16 -9
  256. package/src/langium/config/configuration-provider.ts +119 -0
  257. package/src/langium/config/index.ts +1 -0
  258. package/src/langium/diagnostics/lsp-logger.ts +41 -6
  259. package/src/langium/document-builder/build-pipeline-integration.ts +14 -1
  260. package/src/langium/document-builder/build-session.ts +87 -0
  261. package/src/langium/document-builder/document-builder.ts +339 -11
  262. package/src/langium/document-builder/index.ts +1 -0
  263. package/src/langium/integration-services.ts +67 -6
  264. package/src/langium/integrity/integrity-service.ts +35 -1
  265. package/src/langium/keys/containment.ts +87 -0
  266. package/src/langium/keys/index.ts +1 -0
  267. package/src/langium/keys/name-based-key-provider.ts +4 -0
  268. package/src/langium/model-service/model-service.ts +211 -30
  269. package/src/langium/module.ts +106 -21
  270. package/src/langium/naming/name-provider.ts +27 -5
  271. package/src/langium/naming/name-separator-validation.ts +34 -5
  272. package/src/langium/residency/cst-residency-service.ts +36 -12
  273. package/src/langium/scope/hydranium-scope-provider.ts +40 -22
  274. package/src/langium/service-registry.ts +6 -2
  275. package/src/langium/shared-services.ts +19 -2
  276. package/src/langium/transfer/transfer-encoder.ts +85 -24
  277. package/src/langium/validation/document-validator.ts +537 -11
  278. package/src/langium/workspace/document-uri-policy.ts +3 -4
  279. package/src/langium/workspace/hydranium-langium-document-factory.ts +34 -0
  280. package/src/langium/workspace/hydranium-workspace-manager.ts +30 -1
  281. package/src/langium/workspace/in-memory-file-system-provider.ts +13 -3
  282. package/src/langium/workspace/initialize-workspace.ts +34 -5
  283. package/src/langium/workspace/langium-documents.ts +106 -33
  284. package/src/locale/index.ts +10 -0
  285. package/src/locale/server-locale.ts +86 -0
  286. package/src/lsp/hydranium-document-update-handler.ts +1 -1
  287. package/src/lsp/index.ts +1 -1
  288. package/src/lsp/lsp-latency.ts +62 -0
  289. package/src/lsp/semantic-token-provider.ts +74 -7
  290. package/src/messages/carriers.ts +78 -0
  291. package/src/messages/index.ts +36 -0
  292. package/src/messages/renderer.ts +204 -0
  293. package/src/node/heap-ceiling.ts +108 -0
  294. package/src/node/index.ts +1 -0
  295. package/src/node/latency-from-env.ts +1 -1
  296. package/src/node/node-file-system-provider.ts +1 -41
  297. package/src/node/profiling-run.ts +3 -3
  298. package/src/node/rename-over-open-readers.ts +78 -0
  299. package/src/node/socket-launcher.ts +18 -2
  300. package/src/testing/fake-document.ts +24 -5
  301. package/src/testing/make-noop-shared-services.ts +50 -2
  302. package/src/testing/make-test-services.ts +73 -18
  303. package/src/testing/node/spawned-server.ts +35 -1
  304. package/src/testing/playwright/flaky-network-proxy.ts +240 -0
  305. package/src/testing/playwright/index.ts +1 -0
  306. package/src/testing/playwright/server-log-capture.ts +24 -5
  307. package/src/testing/playwright/server-log-rename-reporter.ts +12 -1
  308. package/src/testing/stub-ast-document-manager.ts +10 -14
  309. package/src/testing/stub-document-builder.ts +32 -3
  310. package/src/testing/stub-langium-documents.ts +3 -2
  311. package/src/testing/stub-model-service.ts +7 -6
  312. package/lib/lsp/instrument-connection.d.ts +0 -36
  313. package/lib/lsp/instrument-connection.d.ts.map +0 -1
  314. package/lib/lsp/instrument-connection.js +0 -62
  315. package/lib/lsp/instrument-connection.js.map +0 -1
  316. package/src/lsp/instrument-connection.ts +0 -66
@@ -6,20 +6,151 @@
6
6
  *
7
7
  * SPDX-License-Identifier: MIT
8
8
  ********************************************************************************/
9
- import { type LogThreshold, type MaybeObservableValue, ObservableValue, type Tracer } from '@hydranium/protocol';
10
- import { type AstNode, type AstNodeLocator, DefaultDocumentValidator, type DiagnosticInfo, type LangiumDocument, type LangiumCoreServices, type ValidateSingleNodeOptions, type ValidationOptions, type ValidationSeverity } from '@hydranium/langium';
9
+ import { type MessageDefinition, type MessageParams, type ParamsArg, type ParamsOf, type LogThreshold, type MaybeObservableValue, ObservableValue, type Tracer } from '@hydranium/protocol';
10
+ import { type AstNode, type AstNodeLocator, type AstReflection, DefaultDocumentValidator, type DiagnosticInfo, type LangiumDocument, type LangiumCoreServices, type Lexer, type ValidateSingleNodeOptions, type ValidationOptions, type ValidationSeverity } from '@hydranium/langium';
11
11
  import type { CancellationToken } from 'vscode-languageserver-protocol';
12
- import type { Diagnostic } from 'vscode-languageserver-types';
12
+ import { Diagnostic } from 'vscode-languageserver-types';
13
13
  import { type LogNameOptions } from '../diagnostics/logger.js';
14
14
  /**
15
- * Diagnostic shape produced by {@link HydraniumDocumentValidator}: an LSP
16
- * {@link Diagnostic} extended with the protocol-level `element` path and
17
- * optional `property` name from {@link TransferDiagnostic}.
15
+ * The AST-layer diagnostic: what the build left on `LangiumDocument`, and what
16
+ * an `AstDocument` carries. An LSP {@link Diagnostic} that MAY also carry the
17
+ * `element` path and `property` name from {@link TransferDiagnostic}.
18
+ *
19
+ * **Not interchangeable with {@link TransferDiagnostic}, which is the other end
20
+ * of the same conversion.** They disagree on field types as well as on which
21
+ * fields exist — `severity` is LSP's numeric enum here and a string union there
22
+ * — so a slot typed with the wrong one still accepts the value and then reads
23
+ * `undefined`, or compares equal to nothing.
24
+ *
25
+ * `element` is optional because a document's diagnostics do not all come from
26
+ * this validator. {@link HydraniumDocumentValidator.toDiagnostic} always sets
27
+ * one, but Langium pushes lexer and parser errors straight onto the document
28
+ * without routing them through it, so a document that fails to parse carries
29
+ * diagnostics with no path at all. Treat it as absent, not empty.
30
+ *
31
+ * Narrowing `LangiumDocument.diagnostics` to this type instead is unavailable:
32
+ * declaration merging may add a member but not retype one, and augmenting the
33
+ * LSP `Diagnostic` reaches only one of the two declaration files its package
34
+ * ships, since the `exports` map splits `import` from `default` with no `types`
35
+ * condition. Consumers therefore cast at the read, and the cast is sound only
36
+ * because this field is optional.
18
37
  */
19
- export interface TransferLspDiagnostic extends Diagnostic {
20
- element: string;
38
+ export interface AstDiagnostic extends Diagnostic {
39
+ element?: string;
21
40
  property?: string;
22
41
  }
42
+ /**
43
+ * A reference resolved to nothing.
44
+ *
45
+ * **The English is byte-identical to Langium's `DefaultLinker.createLinkingError`
46
+ * sentence, and must stay so.** The identity is attached to a diagnostic Langium
47
+ * already worded, so a divergence here would silently change the text every
48
+ * adopter without a catalogue sees. {@link HydraniumDocumentValidator.processLinkingErrors}
49
+ * attaches it only when the two match exactly, which is also what keeps an
50
+ * adopter's own reworded linking error from being mislabelled as this one.
51
+ *
52
+ * It exists because this is the most-seen validation error in any language built
53
+ * on the framework, and Langium puts its own code in `data.code` rather than on
54
+ * `Diagnostic.code` — so without a framework identity every adopter wanting to
55
+ * render it has to special-case Langium's shape.
56
+ */
57
+ export declare const UNRESOLVED_REFERENCE: MessageDefinition<"Could not resolve reference to {referenceType} named '{refText}'.">;
58
+ /**
59
+ * A character no token of the grammar can start with.
60
+ *
61
+ * **The English is byte-identical to CHEVROTAIN's
62
+ * `defaultLexerErrorProvider.buildUnexpectedCharactersMessage`, and must stay
63
+ * so** — one layer further out than {@link UNRESOLVED_REFERENCE}, whose sentence
64
+ * is Langium's. Langium words neither: `processLexingErrors` copies
65
+ * `lexerDiagnostic.message` through untouched, so the text an adopter sees today
66
+ * is produced two dependencies down and is the only thing this identity may
67
+ * claim to be. {@link HydraniumDocumentValidator.identifyLexingError} attaches
68
+ * it only when the two match exactly, which is also what keeps a custom lexer's
69
+ * own diagnostics — Langium admits any of them through `lexerReport` — from
70
+ * being mislabelled as this one.
71
+ *
72
+ * It exists because a lexing error is the FIRST message a user of a new language
73
+ * sees and the one an adopter cannot reach: every other diagnostic worth
74
+ * translating either carries an identity already or is raised by adopter code,
75
+ * while this one arrives with a Langium `data.code` naming a KIND and no
76
+ * parameters at all — so a catalogue had nothing to key on and nothing to
77
+ * interpolate.
78
+ *
79
+ * `skipped` rather than `length`, matching what the sentence says the number
80
+ * means: chevrotain reports how many characters the lexer discarded to recover,
81
+ * which for a single stray character is one and for a run of them is the run.
82
+ */
83
+ export declare const UNEXPECTED_CHARACTER: MessageDefinition<"unexpected character: ->{character}<- at offset: {offset}, skipped {skipped} characters.">;
84
+ /**
85
+ * A token the grammar does not admit at this position.
86
+ *
87
+ * **The English is byte-identical to Langium's
88
+ * `LangiumParserErrorMessageProvider.buildMismatchTokenMessage`, and must stay
89
+ * so**, on the same rule as {@link UNRESOLVED_REFERENCE}.
90
+ *
91
+ * `expected` is a token type name, which is grammar vocabulary rather than
92
+ * translatable text — only the frame around it is. Promoting it into the code
93
+ * instead would make the catalogue as large as the grammar.
94
+ */
95
+ export declare const UNEXPECTED_TOKEN: MessageDefinition<"Expecting token of type '{expected}' but found `{found}`.">;
96
+ /**
97
+ * Input left over once the entry rule had matched.
98
+ *
99
+ * **The English is byte-identical to Langium's
100
+ * `LangiumParserErrorMessageProvider.buildNotAllInputParsedMessage`, and must
101
+ * stay so.**
102
+ */
103
+ export declare const TRAILING_INPUT: MessageDefinition<"Expecting end of file but found `{found}`.">;
104
+ /**
105
+ * A mode-popping token reached with nothing on the lexer's mode stack.
106
+ *
107
+ * **The English is byte-identical to CHEVROTAIN's
108
+ * `defaultLexerErrorProvider.buildUnableToPopLexerModeMessage`, and must stay
109
+ * so**, the closing clause running on without punctuation exactly as upstream
110
+ * writes it.
111
+ *
112
+ * Reachable only from a multi-mode lexer, which a grammar opts into through a
113
+ * custom token builder.
114
+ */
115
+ export declare const UNPOPPABLE_LEXER_MODE: MessageDefinition<"Unable to pop Lexer Mode after encountering Token ->{image}<- The Mode Stack is empty">;
116
+ /**
117
+ * A dedent that lines up with no enclosing indentation level.
118
+ *
119
+ * **The English is byte-identical to LANGIUM's `IndentationAwareTokenBuilder`,
120
+ * and must stay so** — the one lexing sentence Langium words itself rather than
121
+ * relaying from chevrotain, which is why it renders through no
122
+ * `ILexerErrorMessageProvider` and an adopter cannot reach it by replacing one.
123
+ *
124
+ * `stack` is the indentation stack as the template literal upstream stringifies
125
+ * it, comma-joined: structure would have to survive {@link MessageParams}, which
126
+ * holds scalars, and a translation has nothing to say about the numbers anyway.
127
+ */
128
+ export declare const INVALID_DEDENT: MessageDefinition<"Invalid dedent level {level} at offset: {offset}. Current indentation stack: {stack}">;
129
+ /**
130
+ * A position where none of a rule's alternatives can start.
131
+ *
132
+ * **The English is byte-identical to CHEVROTAIN's
133
+ * `defaultParserErrorProvider.buildNoViableAltMessage`, and must stay so** —
134
+ * one layer further out than {@link UNEXPECTED_TOKEN}, because Langium overrides
135
+ * only two of the four parser sentences and passes this one straight through.
136
+ *
137
+ * `sequences` is the token-sequence list chevrotain generated, carried whole
138
+ * rather than as structure: {@link MessageParams} holds scalars, and the list is
139
+ * token names in any case, so only the frame around it is translatable.
140
+ */
141
+ export declare const NO_VIABLE_ALTERNATIVE: MessageDefinition<"Expecting: one of these possible Token sequences:\n{sequences}\nbut found: '{found}'">;
142
+ /**
143
+ * A repetition that had to match at least once and matched nothing.
144
+ *
145
+ * **The English is byte-identical to CHEVROTAIN's
146
+ * `defaultParserErrorProvider.buildEarlyExitMessage`, and must stay so**,
147
+ * including the doubled colon after `sequences::`, which is upstream's and not a
148
+ * typo to repair here — a divergence would silently stop the identity attaching.
149
+ *
150
+ * Named for the empty repetition rather than for chevrotain's `EarlyExit`, which
151
+ * describes its own control flow rather than the reader's problem.
152
+ */
153
+ export declare const MISSING_ITERATION: MessageDefinition<"Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n <{sequences}>\nbut found: '{found}'">;
23
154
  export interface DocumentValidatorOptions extends LogNameOptions {
24
155
  /**
25
156
  * Level at which the `validateDocument` timing line is emitted, or `'off'`
@@ -57,7 +188,7 @@ export interface DocumentValidatorOptions extends LogNameOptions {
57
188
  * - **Skip-validation hook** via the virtual {@link shouldSkipValidation}
58
189
  * predicate, which adopters override to compose additional skip reasons.
59
190
  * - **Diagnostic mapping** to {@link TransferDiagnostic}-shaped
60
- * {@link TransferLspDiagnostic}: every emitted diagnostic carries the AST
191
+ * {@link AstDiagnostic}: every emitted diagnostic carries the AST
61
192
  * node's path (built via Langium's `AstNodeLocator`) plus the optional
62
193
  * offending property name.
63
194
  * - **Optional timing wrap** on `validateDocument`, on by default.
@@ -65,6 +196,13 @@ export interface DocumentValidatorOptions extends LogNameOptions {
65
196
  export declare class HydraniumDocumentValidator extends DefaultDocumentValidator {
66
197
  protected readonly tracer: Tracer;
67
198
  protected readonly astNodeLocator: AstNodeLocator;
199
+ protected readonly reflection: AstReflection;
200
+ protected readonly lexer: Lexer;
201
+ /**
202
+ * {@link tokenTypeNames}' answer. Nothing invalidates it: the vocabulary
203
+ * comes from the grammar, which is fixed once the DI tree is composed.
204
+ */
205
+ protected expectedNames?: readonly string[];
68
206
  protected readonly logLevel: ObservableValue<LogThreshold>;
69
207
  protected readonly logAfterMs: ObservableValue<number>;
70
208
  protected readonly validateVirtualDocuments: ObservableValue<boolean>;
@@ -75,6 +213,104 @@ export declare class HydraniumDocumentValidator extends DefaultDocumentValidator
75
213
  };
76
214
  }, options?: DocumentValidatorOptions);
77
215
  validateDocument(document: LangiumDocument, options?: ValidationOptions, cancelToken?: CancellationToken): Promise<Diagnostic[]>;
216
+ /**
217
+ * Langium's validation pass, plus the framework identity on the lexing and
218
+ * parsing diagnostics it produced.
219
+ *
220
+ * **Here rather than in an override of `processLexingErrors` /
221
+ * `processParsingErrors`, and the reason is that neither seam can see what
222
+ * the identity needs.** Langium hands them a `ParseResult`, which carries the
223
+ * AST and the error lists but not the source text — and the offending
224
+ * CHARACTER, or the offending TOKEN, is the parameter a translation exists to
225
+ * interpolate. The document does carry it, and this is the innermost point
226
+ * that still holds one.
227
+ *
228
+ * Correlating the finished diagnostics back to the `ParseResult`'s error
229
+ * lists positionally is the alternative, and it is unsound for the parsing
230
+ * half: `processParsingErrors` DROPS an error whose token offsets are `NaN`
231
+ * and whose exception carries no `previousToken`, so the two lists differ in
232
+ * length exactly when recovery has been at work.
233
+ *
234
+ * Inside the timing span rather than around it, so the line accounts for the
235
+ * whole pass.
236
+ */
237
+ protected validateAndIdentify(document: LangiumDocument, options?: ValidationOptions, cancelToken?: CancellationToken): Promise<Diagnostic[]>;
238
+ /**
239
+ * Add whichever lexing identity renders `diagnostic`'s sentence, or return it
240
+ * untouched when none of them does — a custom lexer's own report, which
241
+ * Langium admits through `lexerReport`, being the case that reaches the end.
242
+ *
243
+ * The parameters come from the diagnostic's own RANGE, not from
244
+ * `parseResult.lexerErrors`. Both hold the same numbers, and the range is the
245
+ * one that needs no assumption about upstream: correlating the two lists
246
+ * would depend on Langium appending one diagnostic per lexer error in order,
247
+ * which is true today and is an internal of the method being wrapped.
248
+ *
249
+ * **The format-and-compare is the whole discriminator, and it validates the
250
+ * reconstruction as well as the identity.** A range that did not round-trip
251
+ * to the offset chevrotain reported would produce a different sentence and be
252
+ * declined, so a wrong parameter set can never be attached to a right-looking
253
+ * message.
254
+ */
255
+ protected identifyLexingError(document: LangiumDocument, diagnostic: Diagnostic): Diagnostic;
256
+ /**
257
+ * Add whichever parser identity renders `diagnostic`'s sentence, or return it
258
+ * untouched when none of them does — an adopter that replaced the parser
259
+ * error-message provider being the case that reaches the last branch.
260
+ *
261
+ * `found` comes from the diagnostic's own RANGE, for the same reason
262
+ * {@link identifyLexingError} reads its parameters there. A token whose
263
+ * offsets chevrotain could not report collapses to a zero-width range, which
264
+ * yields the empty string the sentence already renders for it.
265
+ *
266
+ * **`expected` is recovered by SEARCHING the vocabulary, because nothing
267
+ * carries it.** Chevrotain hands the expected token type to the message
268
+ * provider and keeps it on neither the exception nor the diagnostic, so the
269
+ * only structured source left is the grammar's own vocabulary: every token
270
+ * type is offered to the same `format` the identity renders with, and the one
271
+ * that reproduces the message supplies the parameter. Matching it out of the
272
+ * prose instead would derive a parameter from a sentence that a Langium
273
+ * reword can change without warning. Two distinct names cannot render one
274
+ * sentence, so the match is unique where it exists.
275
+ */
276
+ protected identifyParsingError(document: LangiumDocument, diagnostic: Diagnostic): Diagnostic;
277
+ /** `diagnostic` carrying `definition`'s identity, over whatever `data` it already had. */
278
+ protected identified<S extends string>(diagnostic: Diagnostic, definition: MessageDefinition<S>, ...params: ParamsArg<S>): Diagnostic;
279
+ /**
280
+ * `definition`'s parameters as they appear in `message`, taking the ones in
281
+ * `known` as given, or `undefined` when `message` is not that sentence.
282
+ *
283
+ * **The only parameters in this file taken OUT of the prose rather than
284
+ * derived and checked against it, and the bound on that is what `known`
285
+ * is for.** A generated token-sequence list, a lexer's indentation stack: for
286
+ * these there is no finite candidate set to offer to `format` the way a token
287
+ * type name can be, and no structured field carries them. What keeps the read
288
+ * honest is that everything else in the sentence is either a fixed literal or
289
+ * a parameter the caller derived independently, so the frame either matches
290
+ * exactly or the sentence is declined.
291
+ *
292
+ * **The trailing format-and-compare is load-bearing once more than one
293
+ * parameter is unknown.** Each is captured up to the NEXT fixed separator, so
294
+ * a separator that also occurs inside a value would cut early — re-rendering
295
+ * catches that, where for a single unknown between two affixes it could not
296
+ * fail. Two adjacent placeholders are declined outright: nothing marks the
297
+ * boundary, so no capture is recoverable.
298
+ *
299
+ * The frame is split off the declaration's own `text`, so it cannot drift
300
+ * from the sentence `format` renders.
301
+ */
302
+ protected sliceFramed<S extends string>(message: string, definition: MessageDefinition<S>, known: MessageParams): ParamsOf<S> | undefined;
303
+ /**
304
+ * Every token type name the grammar declares, as
305
+ * {@link identifyParsingError} candidates.
306
+ *
307
+ * Read off the lexer, whose `definition` the `Lexer` INTERFACE declares —
308
+ * the parser holds the same vocabulary only behind Langium's default class,
309
+ * where an adopter's replacement need not keep it. A token type the parser
310
+ * expects but the lexer does not declare yields no match, which declines the
311
+ * identity rather than attaching a wrong one.
312
+ */
313
+ protected tokenTypeNames(): readonly string[];
78
314
  /**
79
315
  * Skip validation for a node **and its children** when
80
316
  * {@link shouldSkipValidation} returns true.
@@ -89,7 +325,55 @@ export declare class HydraniumDocumentValidator extends DefaultDocumentValidator
89
325
  * `super.shouldSkipValidation(node) || ...`.
90
326
  */
91
327
  protected shouldSkipValidation(node: AstNode): boolean;
92
- protected toDiagnostic<N extends AstNode>(severity: ValidationSeverity, message: string, info: DiagnosticInfo<N, string>): TransferLspDiagnostic;
328
+ /**
329
+ * Langium's linking-error pass, plus the framework identity on each
330
+ * diagnostic it produced.
331
+ *
332
+ * Langium puts its own `linking-error` marker in `data.code` and leaves
333
+ * `Diagnostic.code` unset, so nothing identifies the message on a surface
334
+ * that drops `data` — which is every editor surface. This adds the framework
335
+ * identity to both `code` and `data.hydranium` while LEAVING `data.code` in
336
+ * place: `stopAfterLinkingErrors` and Langium's code-action dispatch both
337
+ * read it.
338
+ *
339
+ * **The identity is attached only when the message is the one
340
+ * {@link UNRESOLVED_REFERENCE} renders.** Two other sentences reach this
341
+ * list: the linker's exception form, raised when resolution itself throws,
342
+ * and whatever an adopter overriding `createLinkingError` chose. Labelling
343
+ * either would make a catalogue render the wrong sentence — and for the
344
+ * exception form it would discard the underlying cause. Comparing against
345
+ * the locally rendered English is what discriminates; there is no structural
346
+ * field that does.
347
+ */
348
+ protected processLinkingErrors(document: LangiumDocument, diagnostics: Diagnostic[], options: ValidationOptions): void;
349
+ /**
350
+ * Add the {@link UNRESOLVED_REFERENCE} identity to one linking diagnostic,
351
+ * or return it untouched when its message is not the sentence that identity
352
+ * renders.
353
+ *
354
+ * `refText` comes from the `data` Langium populated; `referenceType` is not
355
+ * in it, so it is recovered the same way `createLinkingError` produced it —
356
+ * through the reflection, from the container type and property.
357
+ */
358
+ protected identifyLinkingError(diagnostic: Diagnostic): Diagnostic;
359
+ /**
360
+ * The declared target type of the reference this diagnostic came from, or
361
+ * `undefined` when the reflection cannot name one.
362
+ *
363
+ * **The lookup can throw, and that is the reason this is a method rather
364
+ * than an inline call.** `AbstractAstReflection.getReferenceType` raises on
365
+ * an unknown container `$type` and on a property that is not a reference —
366
+ * and the linking error whose type it cannot name is the one most likely to
367
+ * reach here, because `DefaultLinker` catches its OWN failed lookup and
368
+ * turns it into the exception-form message. Rethrowing would take
369
+ * `validateDocument` with it, since Langium wraps `processLinkingErrors` in
370
+ * no try: a diagnostic Langium degraded gracefully would become a failed
371
+ * build. Declining is also the right answer on the merits — a reference
372
+ * whose type cannot be named is not the message
373
+ * {@link UNRESOLVED_REFERENCE} claims.
374
+ */
375
+ protected referenceTypeOf(containerType: string, property: string, refText: string): string | undefined;
376
+ protected toDiagnostic<N extends AstNode>(severity: ValidationSeverity, message: string, info: DiagnosticInfo<N, string>): AstDiagnostic;
93
377
  /**
94
378
  * Construct the `element` path for a diagnostic. Falls back through:
95
379
  * - the node's own AST path, then
@@ -1 +1 @@
1
- {"version":3,"file":"document-validator.d.ts","sourceRoot":"","sources":["../../../src/langium/validation/document-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,eAAe,EAAE,KAAK,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AACrI,OAAO,EACJ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,wBAAwB,EACxB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D;;;;GAIG;AACH,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC7D;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,o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AAC,CAAC,SAAS,OAAO,EAC9C,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,GAC/B,qBAAqB;IAWxB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,gBAAgB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM;CAejG"}
1
+ {"version":3,"file":"document-validator.d.ts","sourceRoot":"","sources":["../../../src/langium/validation/document-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAIJ,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,eAAe,EACf,KAAK,MAAM,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACJ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,wBAAwB,EACxB,KAAK,cAAc,EAEnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,KAAK,EACV,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAIxE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,wFAGhC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