@keymanapp/kmc-kmn 18.0.41-alpha → 18.0.45-alpha

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 (45) hide show
  1. package/build/src/compiler/compiler.d.ts +181 -181
  2. package/build/src/compiler/compiler.js +493 -496
  3. package/build/src/compiler/compiler.js.map +1 -1
  4. package/build/src/compiler/kmn-compiler-messages.d.ts +458 -458
  5. package/build/src/compiler/kmn-compiler-messages.d.ts.map +1 -1
  6. package/build/src/compiler/kmn-compiler-messages.js +459 -462
  7. package/build/src/compiler/kmn-compiler-messages.js.map +1 -1
  8. package/build/src/compiler/osk.d.ts +31 -31
  9. package/build/src/compiler/osk.js +84 -87
  10. package/build/src/compiler/osk.js.map +1 -1
  11. package/build/src/import/kmcmplib/wasm-host.d.ts +2 -2
  12. package/build/src/import/kmcmplib/wasm-host.js +3262 -3265
  13. package/build/src/import/kmcmplib/wasm-host.js.map +1 -1
  14. package/build/src/import/kmcmplib/wasm-host.wasm +0 -0
  15. package/build/src/kmw-compiler/compiler-globals.d.ts +19 -19
  16. package/build/src/kmw-compiler/compiler-globals.js +38 -41
  17. package/build/src/kmw-compiler/compiler-globals.js.map +1 -1
  18. package/build/src/kmw-compiler/constants.d.ts +16 -16
  19. package/build/src/kmw-compiler/constants.js +79 -82
  20. package/build/src/kmw-compiler/constants.js.map +1 -1
  21. package/build/src/kmw-compiler/javascript-strings.d.ts +32 -32
  22. package/build/src/kmw-compiler/javascript-strings.js +852 -855
  23. package/build/src/kmw-compiler/javascript-strings.js.map +1 -1
  24. package/build/src/kmw-compiler/keymanweb-key-codes.d.ts +22 -22
  25. package/build/src/kmw-compiler/keymanweb-key-codes.js +819 -822
  26. package/build/src/kmw-compiler/keymanweb-key-codes.js.map +1 -1
  27. package/build/src/kmw-compiler/kmw-compiler-messages.d.ts +30 -30
  28. package/build/src/kmw-compiler/kmw-compiler-messages.js +40 -43
  29. package/build/src/kmw-compiler/kmw-compiler-messages.js.map +1 -1
  30. package/build/src/kmw-compiler/kmw-compiler.d.ts +13 -13
  31. package/build/src/kmw-compiler/kmw-compiler.js +547 -550
  32. package/build/src/kmw-compiler/kmw-compiler.js.map +1 -1
  33. package/build/src/kmw-compiler/util.d.ts +74 -74
  34. package/build/src/kmw-compiler/util.js +247 -250
  35. package/build/src/kmw-compiler/util.js.map +1 -1
  36. package/build/src/kmw-compiler/validate-layout-file.d.ts +8 -8
  37. package/build/src/kmw-compiler/validate-layout-file.js +276 -279
  38. package/build/src/kmw-compiler/validate-layout-file.js.map +1 -1
  39. package/build/src/kmw-compiler/visual-keyboard-compiler.d.ts +2 -2
  40. package/build/src/kmw-compiler/visual-keyboard-compiler.js +119 -122
  41. package/build/src/kmw-compiler/visual-keyboard-compiler.js.map +1 -1
  42. package/build/src/main.d.ts +9 -9
  43. package/build/src/main.js +10 -13
  44. package/build/src/main.js.map +1 -1
  45. package/package.json +5 -5
@@ -1,459 +1,459 @@
1
- import { CompilerEvent } from "@keymanapp/common-types";
2
- export declare const enum KmnCompilerMessageRanges {
3
- RANGE_KMN_COMPILER_MIN = 1,
4
- RANGE_KMN_COMPILER_MAX = 2047,
5
- RANGE_LEXICAL_MODEL_MIN = 2048,
6
- RANGE_LEXICAL_MODEL_MAX = 2303,
7
- RANGE_CompilerMessage_Min = 2304,
8
- RANGE_CompilerMessage_Max = 4095
9
- }
10
- /**
11
- * @internal
12
- *
13
- * Error messages reported by the .kmn compiler. The error codes in this class
14
- * share an address space with messages from kmn_compiler_errors.h, which are
15
- * generated by kmcmplib, so codes below 0x900 are reserved for kmcmplib
16
- * messages.
17
- *
18
- * The second half of this class defines the messages from kmcmplib. These
19
- * messages should correspond to codes in kmn_compiler_errors.h, exclusive
20
- * severity bits. Message text is defined by kmcmplib and passed through a
21
- * callback at this time. The message text presented here is currently unused
22
- * during the compilation process, but is used in the `kmc messages` tool and
23
- * for documentation.
24
- *
25
- * `CERR_` messages that are actually fatals have been renamed to `FATAL_`.
26
- *
27
- * @example
28
- *
29
- * ```
30
- * kmcmplib.CERR_BadCallParams = CERR_FATAL | 0x002 = 0x8002
31
- * ERROR_BadCallParams = SevError | 0x0002 = 0x300000 | 0x2000 | 0x002 = 0x302002
32
- * ```
33
- */
34
- export declare class KmnCompilerMessages {
35
- static FATAL_UnexpectedException: number;
36
- static Fatal_UnexpectedException: (o: {
37
- e: any;
38
- }) => CompilerEvent;
39
- static FATAL_MissingWasmModule: number;
40
- static Fatal_MissingWasmModule: (o: {
41
- e?: any;
42
- }) => CompilerEvent;
43
- static FATAL_CallbacksNotSet: number;
44
- static Fatal_CallbacksNotSet: () => CompilerEvent;
45
- static FATAL_UnicodeSetOutOfRange: number;
46
- static Fatal_UnicodeSetOutOfRange: () => CompilerEvent;
47
- static ERROR_UnicodeSetHasStrings: number;
48
- static Error_UnicodeSetHasStrings: () => CompilerEvent;
49
- static ERROR_UnicodeSetHasProperties: number;
50
- static Error_UnicodeSetHasProperties: () => CompilerEvent;
51
- static ERROR_UnicodeSetSyntaxError: number;
52
- static Error_UnicodeSetSyntaxError: () => CompilerEvent;
53
- static ERROR_InvalidKvksFile: number;
54
- static Error_InvalidKvksFile: (o: {
55
- filename: string;
56
- e: any;
57
- }) => CompilerEvent;
58
- static WARN_InvalidVkeyInKvksFile: number;
59
- static Warn_InvalidVkeyInKvksFile: (o: {
60
- filename: string;
61
- invalidVkey: string;
62
- }) => CompilerEvent;
63
- static ERROR_InvalidDisplayMapFile: number;
64
- static Error_InvalidDisplayMapFile: (o: {
65
- filename: string;
66
- e: any;
67
- }) => CompilerEvent;
68
- static ERROR_InvalidKvkFile: number;
69
- static Error_InvalidKvkFile: (o: {
70
- filename: string;
71
- e: any;
72
- }) => CompilerEvent;
73
- static ERROR_FileNotFound: number;
74
- static Error_FileNotFound: (o: {
75
- filename: string;
76
- }) => CompilerEvent;
77
- static INFO_EndOfFile: number;
78
- static Info_EndOfFile: () => CompilerEvent;
79
- static FATAL_BadCallParams: number;
80
- static Fatal_BadCallParams: () => CompilerEvent;
81
- static FATAL_CannotAllocateMemory: number;
82
- static Fatal_CannotAllocateMemory: () => CompilerEvent;
83
- static ERROR_InfileNotExist: number;
84
- static Error_InfileNotExist: () => CompilerEvent;
85
- static FATAL_UnableToWriteFully: number;
86
- static Fatal_UnableToWriteFully: () => CompilerEvent;
87
- static ERROR_CannotReadInfile: number;
88
- static Error_CannotReadInfile: () => CompilerEvent;
89
- static FATAL_SomewhereIGotItWrong: number;
90
- static Fatal_SomewhereIGotItWrong: () => CompilerEvent;
91
- static ERROR_InvalidToken: number;
92
- static Error_InvalidToken: () => CompilerEvent;
93
- static ERROR_InvalidBegin: number;
94
- static Error_InvalidBegin: () => CompilerEvent;
95
- static ERROR_InvalidName: number;
96
- static Error_InvalidName: () => CompilerEvent;
97
- static ERROR_InvalidVersion: number;
98
- static Error_InvalidVersion: () => CompilerEvent;
99
- static ERROR_InvalidLanguageLine: number;
100
- static Error_InvalidLanguageLine: () => CompilerEvent;
101
- static ERROR_LayoutButNoLanguage: number;
102
- static Error_LayoutButNoLanguage: () => CompilerEvent;
103
- static ERROR_InvalidLayoutLine: number;
104
- static Error_InvalidLayoutLine: () => CompilerEvent;
105
- static ERROR_NoVersionLine: number;
106
- static Error_NoVersionLine: () => CompilerEvent;
107
- static ERROR_InvalidGroupLine: number;
108
- static Error_InvalidGroupLine: () => CompilerEvent;
109
- static ERROR_InvalidStoreLine: number;
110
- static Error_InvalidStoreLine: () => CompilerEvent;
111
- static ERROR_InvalidCodeInKeyPartOfRule: number;
112
- static Error_InvalidCodeInKeyPartOfRule: () => CompilerEvent;
113
- static ERROR_InvalidDeadkey: number;
114
- static Error_InvalidDeadkey: () => CompilerEvent;
115
- static ERROR_InvalidValue: number;
116
- static Error_InvalidValue: () => CompilerEvent;
117
- static ERROR_ZeroLengthString: number;
118
- static Error_ZeroLengthString: () => CompilerEvent;
119
- static ERROR_TooManyIndexToKeyRefs: number;
120
- static Error_TooManyIndexToKeyRefs: () => CompilerEvent;
121
- static ERROR_UnterminatedString: number;
122
- static Error_UnterminatedString: () => CompilerEvent;
123
- static ERROR_StringInVirtualKeySection: number;
124
- static Error_StringInVirtualKeySection: () => CompilerEvent;
125
- static ERROR_AnyInVirtualKeySection: number;
126
- static Error_AnyInVirtualKeySection: () => CompilerEvent;
127
- static ERROR_InvalidAny: number;
128
- static Error_InvalidAny: () => CompilerEvent;
129
- static ERROR_StoreDoesNotExist: number;
130
- static Error_StoreDoesNotExist: () => CompilerEvent;
131
- static ERROR_BeepInVirtualKeySection: number;
132
- static Error_BeepInVirtualKeySection: () => CompilerEvent;
133
- static ERROR_IndexInVirtualKeySection: number;
134
- static Error_IndexInVirtualKeySection: () => CompilerEvent;
135
- static ERROR_InvalidIndex: number;
136
- static Error_InvalidIndex: () => CompilerEvent;
137
- static ERROR_OutsInVirtualKeySection: number;
138
- static Error_OutsInVirtualKeySection: () => CompilerEvent;
139
- static ERROR_InvalidOuts: number;
140
- static Error_InvalidOuts: () => CompilerEvent;
141
- static ERROR_ContextInVirtualKeySection: number;
142
- static Error_ContextInVirtualKeySection: () => CompilerEvent;
143
- static ERROR_InvalidUse: number;
144
- static Error_InvalidUse: () => CompilerEvent;
145
- static ERROR_GroupDoesNotExist: number;
146
- static Error_GroupDoesNotExist: () => CompilerEvent;
147
- static ERROR_VirtualKeyNotAllowedHere: number;
148
- static Error_VirtualKeyNotAllowedHere: () => CompilerEvent;
149
- static ERROR_InvalidSwitch: number;
150
- static Error_InvalidSwitch: () => CompilerEvent;
151
- static ERROR_NoTokensFound: number;
152
- static Error_NoTokensFound: () => CompilerEvent;
153
- static ERROR_InvalidLineContinuation: number;
154
- static Error_InvalidLineContinuation: () => CompilerEvent;
155
- static ERROR_LineTooLong: number;
156
- static Error_LineTooLong: () => CompilerEvent;
157
- static ERROR_InvalidCopyright: number;
158
- static Error_InvalidCopyright: () => CompilerEvent;
159
- static ERROR_CodeInvalidInThisSection: number;
160
- static Error_CodeInvalidInThisSection: () => CompilerEvent;
161
- static ERROR_InvalidMessage: number;
162
- static Error_InvalidMessage: () => CompilerEvent;
163
- static ERROR_InvalidLanguageName: number;
164
- static Error_InvalidLanguageName: () => CompilerEvent;
165
- static ERROR_InvalidBitmapLine: number;
166
- static Error_InvalidBitmapLine: () => CompilerEvent;
167
- static ERROR_CannotReadBitmapFile: number;
168
- static Error_CannotReadBitmapFile: () => CompilerEvent;
169
- static ERROR_IndexDoesNotPointToAny: number;
170
- static Error_IndexDoesNotPointToAny: () => CompilerEvent;
171
- static ERROR_ReservedCharacter: number;
172
- static Error_ReservedCharacter: () => CompilerEvent;
173
- static ERROR_InvalidCharacter: number;
174
- static Error_InvalidCharacter: () => CompilerEvent;
175
- static ERROR_InvalidCall: number;
176
- static Error_InvalidCall: () => CompilerEvent;
177
- static ERROR_CallInVirtualKeySection: number;
178
- static Error_CallInVirtualKeySection: () => CompilerEvent;
179
- static ERROR_CodeInvalidInKeyStore: number;
180
- static Error_CodeInvalidInKeyStore: () => CompilerEvent;
181
- static ERROR_CannotLoadIncludeFile: number;
182
- static Error_CannotLoadIncludeFile: () => CompilerEvent;
183
- static ERROR_60FeatureOnly_EthnologueCode: number;
184
- static Error_60FeatureOnly_EthnologueCode: () => CompilerEvent;
185
- static ERROR_60FeatureOnly_MnemonicLayout: number;
186
- static Error_60FeatureOnly_MnemonicLayout: () => CompilerEvent;
187
- static ERROR_60FeatureOnly_OldCharPosMatching: number;
188
- static Error_60FeatureOnly_OldCharPosMatching: () => CompilerEvent;
189
- static ERROR_60FeatureOnly_NamedCodes: number;
190
- static Error_60FeatureOnly_NamedCodes: () => CompilerEvent;
191
- static ERROR_60FeatureOnly_Contextn: number;
192
- static Error_60FeatureOnly_Contextn: () => CompilerEvent;
193
- static ERROR_501FeatureOnly_Call: number;
194
- static Error_501FeatureOnly_Call: () => CompilerEvent;
195
- static ERROR_InvalidNamedCode: number;
196
- static Error_InvalidNamedCode: () => CompilerEvent;
197
- static ERROR_InvalidSystemStore: number;
198
- static Error_InvalidSystemStore: () => CompilerEvent;
199
- static ERROR_60FeatureOnly_VirtualCharKey: number;
200
- static Error_60FeatureOnly_VirtualCharKey: () => CompilerEvent;
201
- static ERROR_VersionAlreadyIncluded: number;
202
- static Error_VersionAlreadyIncluded: () => CompilerEvent;
203
- static ERROR_70FeatureOnly: number;
204
- static Error_70FeatureOnly: () => CompilerEvent;
205
- static ERROR_80FeatureOnly: number;
206
- static Error_80FeatureOnly: () => CompilerEvent;
207
- static ERROR_InvalidInVirtualKeySection: number;
208
- static Error_InvalidInVirtualKeySection: () => CompilerEvent;
209
- static ERROR_InvalidIf: number;
210
- static Error_InvalidIf: () => CompilerEvent;
211
- static ERROR_InvalidReset: number;
212
- static Error_InvalidReset: () => CompilerEvent;
213
- static ERROR_InvalidSet: number;
214
- static Error_InvalidSet: () => CompilerEvent;
215
- static ERROR_InvalidSave: number;
216
- static Error_InvalidSave: () => CompilerEvent;
217
- static ERROR_InvalidEthnologueCode: number;
218
- static Error_InvalidEthnologueCode: () => CompilerEvent;
219
- static FATAL_CannotCreateTempfile: number;
220
- static Fatal_CannotCreateTempfile: () => CompilerEvent;
221
- static ERROR_90FeatureOnly_IfSystemStores: number;
222
- static Error_90FeatureOnly_IfSystemStores: () => CompilerEvent;
223
- static ERROR_IfSystemStore_NotFound: number;
224
- static Error_IfSystemStore_NotFound: () => CompilerEvent;
225
- static ERROR_90FeatureOnly_SetSystemStores: number;
226
- static Error_90FeatureOnly_SetSystemStores: () => CompilerEvent;
227
- static ERROR_SetSystemStore_NotFound: number;
228
- static Error_SetSystemStore_NotFound: () => CompilerEvent;
229
- static ERROR_90FeatureOnlyVirtualKeyDictionary: number;
230
- static Error_90FeatureOnlyVirtualKeyDictionary: () => CompilerEvent;
231
- static ERROR_NotSupportedInKeymanWebContext: number;
232
- static Error_NotSupportedInKeymanWebContext: (o: {
233
- line: number;
234
- code: String;
235
- }) => CompilerEvent;
236
- static ERROR_NotSupportedInKeymanWebOutput: number;
237
- static Error_NotSupportedInKeymanWebOutput: (o: {
238
- line: number;
239
- code: string;
240
- }) => CompilerEvent;
241
- static ERROR_NotSupportedInKeymanWebStore: number;
242
- static Error_NotSupportedInKeymanWebStore: (o: {
243
- code: string;
244
- store: string;
245
- }) => CompilerEvent;
246
- static ERROR_VirtualCharacterKeysNotSupportedInKeymanWeb: number;
247
- static Error_VirtualCharacterKeysNotSupportedInKeymanWeb: (o: {
248
- line: number;
249
- }) => CompilerEvent;
250
- static ERROR_VirtualKeysNotValidForMnemonicLayouts: number;
251
- static Error_VirtualKeysNotValidForMnemonicLayouts: (o: {
252
- line: number;
253
- }) => CompilerEvent;
254
- static ERROR_InvalidTouchLayoutFile: number;
255
- static Error_InvalidTouchLayoutFile: (o: {
256
- filename: string;
257
- }) => CompilerEvent;
258
- static ERROR_TouchLayoutInvalidIdentifier: number;
259
- static Error_TouchLayoutInvalidIdentifier: (o: {
260
- keyId: string;
261
- platformName: string;
262
- layerId: string;
263
- }) => CompilerEvent;
264
- static ERROR_InvalidKeyCode: number;
265
- static Error_InvalidKeyCode: (o: {
266
- keyId: string;
267
- }) => CompilerEvent;
268
- static ERROR_90FeatureOnlyLayoutFile: number;
269
- static Error_90FeatureOnlyLayoutFile: () => CompilerEvent;
270
- static ERROR_90FeatureOnlyKeyboardVersion: number;
271
- static Error_90FeatureOnlyKeyboardVersion: () => CompilerEvent;
272
- static ERROR_KeyboardVersionFormatInvalid: number;
273
- static Error_KeyboardVersionFormatInvalid: () => CompilerEvent;
274
- static ERROR_ContextExHasInvalidOffset: number;
275
- static Error_ContextExHasInvalidOffset: () => CompilerEvent;
276
- static ERROR_90FeatureOnlyEmbedCSS: number;
277
- static Error_90FeatureOnlyEmbedCSS: () => CompilerEvent;
278
- static ERROR_90FeatureOnlyTargets: number;
279
- static Error_90FeatureOnlyTargets: () => CompilerEvent;
280
- static ERROR_ContextAndIndexInvalidInMatchNomatch: number;
281
- static Error_ContextAndIndexInvalidInMatchNomatch: () => CompilerEvent;
282
- static ERROR_140FeatureOnlyContextAndNotAnyWeb: number;
283
- static Error_140FeatureOnlyContextAndNotAnyWeb: () => CompilerEvent;
284
- static ERROR_ExpansionMustFollowCharacterOrVKey: number;
285
- static Error_ExpansionMustFollowCharacterOrVKey: () => CompilerEvent;
286
- static ERROR_VKeyExpansionMustBeFollowedByVKey: number;
287
- static Error_VKeyExpansionMustBeFollowedByVKey: () => CompilerEvent;
288
- static ERROR_CharacterExpansionMustBeFollowedByCharacter: number;
289
- static Error_CharacterExpansionMustBeFollowedByCharacter: () => CompilerEvent;
290
- static ERROR_VKeyExpansionMustUseConsistentShift: number;
291
- static Error_VKeyExpansionMustUseConsistentShift: () => CompilerEvent;
292
- static ERROR_ExpansionMustBePositive: number;
293
- static Error_ExpansionMustBePositive: () => CompilerEvent;
294
- static ERROR_CasedKeysMustContainOnlyVirtualKeys: number;
295
- static Error_CasedKeysMustContainOnlyVirtualKeys: () => CompilerEvent;
296
- static ERROR_CasedKeysMustNotIncludeShiftStates: number;
297
- static Error_CasedKeysMustNotIncludeShiftStates: () => CompilerEvent;
298
- static ERROR_CasedKeysNotSupportedWithMnemonicLayout: number;
299
- static Error_CasedKeysNotSupportedWithMnemonicLayout: () => CompilerEvent;
300
- static ERROR_CannotUseReadWriteGroupFromReadonlyGroup: number;
301
- static Error_CannotUseReadWriteGroupFromReadonlyGroup: () => CompilerEvent;
302
- static ERROR_StatementNotPermittedInReadonlyGroup: number;
303
- static Error_StatementNotPermittedInReadonlyGroup: () => CompilerEvent;
304
- static ERROR_OutputInReadonlyGroup: number;
305
- static Error_OutputInReadonlyGroup: () => CompilerEvent;
306
- static ERROR_NewContextGroupMustBeReadonly: number;
307
- static Error_NewContextGroupMustBeReadonly: () => CompilerEvent;
308
- static ERROR_PostKeystrokeGroupMustBeReadonly: number;
309
- static Error_PostKeystrokeGroupMustBeReadonly: () => CompilerEvent;
310
- static ERROR_DuplicateGroup: number;
311
- static Error_DuplicateGroup: () => CompilerEvent;
312
- static ERROR_DuplicateStore: number;
313
- static Error_DuplicateStore: () => CompilerEvent;
314
- static ERROR_RepeatedBegin: number;
315
- static Error_RepeatedBegin: () => CompilerEvent;
316
- static ERROR_VirtualKeyInContext: number;
317
- static Error_VirtualKeyInContext: () => CompilerEvent;
318
- static ERROR_OutsTooLong: number;
319
- static Error_OutsTooLong: () => CompilerEvent;
320
- static ERROR_ExtendedStringTooLong: number;
321
- static Error_ExtendedStringTooLong: () => CompilerEvent;
322
- static ERROR_VirtualKeyExpansionTooLong: number;
323
- static Error_VirtualKeyExpansionTooLong: () => CompilerEvent;
324
- static ERROR_CharacterRangeTooLong: number;
325
- static Error_CharacterRangeTooLong: () => CompilerEvent;
326
- static WARN_TooManyWarnings: number;
327
- static Warn_TooManyWarnings: () => CompilerEvent;
328
- static WARN_OldVersion: number;
329
- static Warn_OldVersion: () => CompilerEvent;
330
- static WARN_BitmapNotUsed: number;
331
- static Warn_BitmapNotUsed: () => CompilerEvent;
332
- static WARN_CustomLanguagesNotSupported: number;
333
- static Warn_CustomLanguagesNotSupported: () => CompilerEvent;
334
- static WARN_KeyBadLength: number;
335
- static Warn_KeyBadLength: () => CompilerEvent;
336
- static WARN_IndexStoreShort: number;
337
- static Warn_IndexStoreShort: () => CompilerEvent;
338
- static WARN_UnicodeInANSIGroup: number;
339
- static Warn_UnicodeInANSIGroup: () => CompilerEvent;
340
- static WARN_ANSIInUnicodeGroup: number;
341
- static Warn_ANSIInUnicodeGroup: () => CompilerEvent;
342
- static WARN_UnicodeSurrogateUsed: number;
343
- static Warn_UnicodeSurrogateUsed: () => CompilerEvent;
344
- static WARN_ReservedCharacter: number;
345
- static Warn_ReservedCharacter: () => CompilerEvent;
346
- static INFO_Info: number;
347
- static Info_Info: () => CompilerEvent;
348
- static WARN_VirtualKeyWithMnemonicLayout: number;
349
- static Warn_VirtualKeyWithMnemonicLayout: () => CompilerEvent;
350
- static WARN_VirtualCharKeyWithPositionalLayout: number;
351
- static Warn_VirtualCharKeyWithPositionalLayout: () => CompilerEvent;
352
- static WARN_StoreAlreadyUsedAsOptionOrCall: number;
353
- static Warn_StoreAlreadyUsedAsOptionOrCall: () => CompilerEvent;
354
- static WARN_StoreAlreadyUsedAsStoreOrCall: number;
355
- static Warn_StoreAlreadyUsedAsStoreOrCall: () => CompilerEvent;
356
- static WARN_StoreAlreadyUsedAsStoreOrOption: number;
357
- static Warn_StoreAlreadyUsedAsStoreOrOption: () => CompilerEvent;
358
- static WARN_PunctuationInEthnologueCode: number;
359
- static Warn_PunctuationInEthnologueCode: () => CompilerEvent;
360
- static WARN_TouchLayoutMissingLayer: number;
361
- static Warn_TouchLayoutMissingLayer: (o: {
362
- keyId: string;
363
- platformName: string;
364
- layerId: string;
365
- nextLayer: string;
366
- }) => CompilerEvent;
367
- static WARN_TouchLayoutCustomKeyNotDefined: number;
368
- static Warn_TouchLayoutCustomKeyNotDefined: (o: {
369
- keyId: string;
370
- platformName: string;
371
- layerId: string;
372
- }) => CompilerEvent;
373
- static WARN_TouchLayoutMissingRequiredKeys: number;
374
- static Warn_TouchLayoutMissingRequiredKeys: (o: {
375
- layerId: string;
376
- platformName: string;
377
- missingKeys: string;
378
- }) => CompilerEvent;
379
- static WARN_HelpFileMissing: number;
380
- static Warn_HelpFileMissing: (o: {
381
- line: number;
382
- helpFilename: string;
383
- e: any;
384
- }) => CompilerEvent;
385
- static WARN_EmbedJsFileMissing: number;
386
- static Warn_EmbedJsFileMissing: (o: {
387
- line: number;
388
- jsFilename: string;
389
- e: any;
390
- }) => CompilerEvent;
391
- static WARN_ExtendedShiftFlagsNotSupportedInKeymanWeb: number;
392
- static Warn_ExtendedShiftFlagsNotSupportedInKeymanWeb: (o: {
393
- line: number;
394
- flags: string;
395
- }) => CompilerEvent;
396
- static WARN_TouchLayoutUnidentifiedKey: number;
397
- static Warn_TouchLayoutUnidentifiedKey: (o: {
398
- layerId: string;
399
- }) => CompilerEvent;
400
- static HINT_UnreachableKeyCode: number;
401
- static Hint_UnreachableKeyCode: (o: {
402
- line: number;
403
- key: string;
404
- }) => CompilerEvent;
405
- static WARN_PlatformNotInTargets: number;
406
- static Warn_PlatformNotInTargets: () => CompilerEvent;
407
- static WARN_HeaderStatementIsDeprecated: number;
408
- static Warn_HeaderStatementIsDeprecated: () => CompilerEvent;
409
- static WARN_UseNotLastStatementInRule: number;
410
- static Warn_UseNotLastStatementInRule: () => CompilerEvent;
411
- static WARN_TouchLayoutFontShouldBeSameForAllPlatforms: number;
412
- static Warn_TouchLayoutFontShouldBeSameForAllPlatforms: () => CompilerEvent;
413
- static WARN_KVKFileIsInSourceFormat: number;
414
- static Warn_KVKFileIsInSourceFormat: () => CompilerEvent;
415
- static WARN_DontMixChiralAndNonChiralModifiers: number;
416
- static Warn_DontMixChiralAndNonChiralModifiers: () => CompilerEvent;
417
- static WARN_MixingLeftAndRightModifiers: number;
418
- static Warn_MixingLeftAndRightModifiers: () => CompilerEvent;
419
- static WARN_LanguageHeadersDeprecatedInKeyman10: number;
420
- static Warn_LanguageHeadersDeprecatedInKeyman10: () => CompilerEvent;
421
- static HINT_NonUnicodeFile: number;
422
- static Hint_NonUnicodeFile: () => CompilerEvent;
423
- static WARN_HotkeyHasInvalidModifier: number;
424
- static Warn_HotkeyHasInvalidModifier: () => CompilerEvent;
425
- static WARN_TouchLayoutSpecialLabelOnNormalKey: number;
426
- static Warn_TouchLayoutSpecialLabelOnNormalKey: (o: {
427
- keyId: string;
428
- platformName: string;
429
- layerId: string;
430
- label: string;
431
- }) => CompilerEvent;
432
- static WARN_OptionStoreNameInvalid: number;
433
- static Warn_OptionStoreNameInvalid: (o: {
434
- name: string;
435
- }) => CompilerEvent;
436
- static WARN_NulNotFirstStatementInContext: number;
437
- static Warn_NulNotFirstStatementInContext: () => CompilerEvent;
438
- static WARN_IfShouldBeAtStartOfContext: number;
439
- static Warn_IfShouldBeAtStartOfContext: () => CompilerEvent;
440
- static WARN_KeyShouldIncludeNCaps: number;
441
- static Warn_KeyShouldIncludeNCaps: () => CompilerEvent;
442
- static HINT_UnreachableRule: number;
443
- static Hint_UnreachableRule: () => CompilerEvent;
444
- static WARN_VirtualKeyInOutput: number;
445
- static Warn_VirtualKeyInOutput: () => CompilerEvent;
446
- static FATAL_BufferOverflow: number;
447
- static Fatal_BufferOverflow: () => CompilerEvent;
448
- static FATAL_Break: number;
449
- static Fatal_Break: () => CompilerEvent;
450
- }
451
- /**
452
- * @internal
453
- * TODO: This class is here as a stopgap as we merged it with
454
- * KmnCompilerMessages. It should be removed in v18.0.
455
- */
456
- export declare class CompilerMessages extends KmnCompilerMessages {
457
- }
458
- export declare function mapErrorFromKmcmplib(line: number, code: number, msg: string): CompilerEvent;
1
+ import { CompilerEvent } from "@keymanapp/common-types";
2
+ export declare const enum KmnCompilerMessageRanges {
3
+ RANGE_KMN_COMPILER_MIN = 1,// from kmn_compiler_errors.h
4
+ RANGE_KMN_COMPILER_MAX = 2047,// from kmn_compiler_errors.h
5
+ RANGE_LEXICAL_MODEL_MIN = 2048,// from kmn_compiler_errors.h, deprecated -- this range will not be used in future versions
6
+ RANGE_LEXICAL_MODEL_MAX = 2303,// from kmn_compiler_errors.h, deprecated -- this range will not be used in future versions
7
+ RANGE_CompilerMessage_Min = 2304,// All compiler messages listed here must be >= this value
8
+ RANGE_CompilerMessage_Max = 4095
9
+ }
10
+ /**
11
+ * @internal
12
+ *
13
+ * Error messages reported by the .kmn compiler. The error codes in this class
14
+ * share an address space with messages from kmn_compiler_errors.h, which are
15
+ * generated by kmcmplib, so codes below 0x900 are reserved for kmcmplib
16
+ * messages.
17
+ *
18
+ * The second half of this class defines the messages from kmcmplib. These
19
+ * messages should correspond to codes in kmn_compiler_errors.h, exclusive
20
+ * severity bits. Message text is defined by kmcmplib and passed through a
21
+ * callback at this time. The message text presented here is currently unused
22
+ * during the compilation process, but is used in the `kmc messages` tool and
23
+ * for documentation.
24
+ *
25
+ * `CERR_` messages that are actually fatals have been renamed to `FATAL_`.
26
+ *
27
+ * @example
28
+ *
29
+ * ```
30
+ * kmcmplib.CERR_BadCallParams = CERR_FATAL | 0x002 = 0x8002
31
+ * ERROR_BadCallParams = SevError | 0x0002 = 0x300000 | 0x2000 | 0x002 = 0x302002
32
+ * ```
33
+ */
34
+ export declare class KmnCompilerMessages {
35
+ static FATAL_UnexpectedException: number;
36
+ static Fatal_UnexpectedException: (o: {
37
+ e: any;
38
+ }) => CompilerEvent;
39
+ static FATAL_MissingWasmModule: number;
40
+ static Fatal_MissingWasmModule: (o: {
41
+ e?: any;
42
+ }) => CompilerEvent;
43
+ static FATAL_CallbacksNotSet: number;
44
+ static Fatal_CallbacksNotSet: () => CompilerEvent;
45
+ static FATAL_UnicodeSetOutOfRange: number;
46
+ static Fatal_UnicodeSetOutOfRange: () => CompilerEvent;
47
+ static ERROR_UnicodeSetHasStrings: number;
48
+ static Error_UnicodeSetHasStrings: () => CompilerEvent;
49
+ static ERROR_UnicodeSetHasProperties: number;
50
+ static Error_UnicodeSetHasProperties: () => CompilerEvent;
51
+ static ERROR_UnicodeSetSyntaxError: number;
52
+ static Error_UnicodeSetSyntaxError: () => CompilerEvent;
53
+ static ERROR_InvalidKvksFile: number;
54
+ static Error_InvalidKvksFile: (o: {
55
+ filename: string;
56
+ e: any;
57
+ }) => CompilerEvent;
58
+ static WARN_InvalidVkeyInKvksFile: number;
59
+ static Warn_InvalidVkeyInKvksFile: (o: {
60
+ filename: string;
61
+ invalidVkey: string;
62
+ }) => CompilerEvent;
63
+ static ERROR_InvalidDisplayMapFile: number;
64
+ static Error_InvalidDisplayMapFile: (o: {
65
+ filename: string;
66
+ e: any;
67
+ }) => CompilerEvent;
68
+ static ERROR_InvalidKvkFile: number;
69
+ static Error_InvalidKvkFile: (o: {
70
+ filename: string;
71
+ e: any;
72
+ }) => CompilerEvent;
73
+ static ERROR_FileNotFound: number;
74
+ static Error_FileNotFound: (o: {
75
+ filename: string;
76
+ }) => CompilerEvent;
77
+ static INFO_EndOfFile: number;
78
+ static Info_EndOfFile: () => CompilerEvent;
79
+ static FATAL_BadCallParams: number;
80
+ static Fatal_BadCallParams: () => CompilerEvent;
81
+ static FATAL_CannotAllocateMemory: number;
82
+ static Fatal_CannotAllocateMemory: () => CompilerEvent;
83
+ static ERROR_InfileNotExist: number;
84
+ static Error_InfileNotExist: () => CompilerEvent;
85
+ static FATAL_UnableToWriteFully: number;
86
+ static Fatal_UnableToWriteFully: () => CompilerEvent;
87
+ static ERROR_CannotReadInfile: number;
88
+ static Error_CannotReadInfile: () => CompilerEvent;
89
+ static FATAL_SomewhereIGotItWrong: number;
90
+ static Fatal_SomewhereIGotItWrong: () => CompilerEvent;
91
+ static ERROR_InvalidToken: number;
92
+ static Error_InvalidToken: () => CompilerEvent;
93
+ static ERROR_InvalidBegin: number;
94
+ static Error_InvalidBegin: () => CompilerEvent;
95
+ static ERROR_InvalidName: number;
96
+ static Error_InvalidName: () => CompilerEvent;
97
+ static ERROR_InvalidVersion: number;
98
+ static Error_InvalidVersion: () => CompilerEvent;
99
+ static ERROR_InvalidLanguageLine: number;
100
+ static Error_InvalidLanguageLine: () => CompilerEvent;
101
+ static ERROR_LayoutButNoLanguage: number;
102
+ static Error_LayoutButNoLanguage: () => CompilerEvent;
103
+ static ERROR_InvalidLayoutLine: number;
104
+ static Error_InvalidLayoutLine: () => CompilerEvent;
105
+ static ERROR_NoVersionLine: number;
106
+ static Error_NoVersionLine: () => CompilerEvent;
107
+ static ERROR_InvalidGroupLine: number;
108
+ static Error_InvalidGroupLine: () => CompilerEvent;
109
+ static ERROR_InvalidStoreLine: number;
110
+ static Error_InvalidStoreLine: () => CompilerEvent;
111
+ static ERROR_InvalidCodeInKeyPartOfRule: number;
112
+ static Error_InvalidCodeInKeyPartOfRule: () => CompilerEvent;
113
+ static ERROR_InvalidDeadkey: number;
114
+ static Error_InvalidDeadkey: () => CompilerEvent;
115
+ static ERROR_InvalidValue: number;
116
+ static Error_InvalidValue: () => CompilerEvent;
117
+ static ERROR_ZeroLengthString: number;
118
+ static Error_ZeroLengthString: () => CompilerEvent;
119
+ static ERROR_TooManyIndexToKeyRefs: number;
120
+ static Error_TooManyIndexToKeyRefs: () => CompilerEvent;
121
+ static ERROR_UnterminatedString: number;
122
+ static Error_UnterminatedString: () => CompilerEvent;
123
+ static ERROR_StringInVirtualKeySection: number;
124
+ static Error_StringInVirtualKeySection: () => CompilerEvent;
125
+ static ERROR_AnyInVirtualKeySection: number;
126
+ static Error_AnyInVirtualKeySection: () => CompilerEvent;
127
+ static ERROR_InvalidAny: number;
128
+ static Error_InvalidAny: () => CompilerEvent;
129
+ static ERROR_StoreDoesNotExist: number;
130
+ static Error_StoreDoesNotExist: () => CompilerEvent;
131
+ static ERROR_BeepInVirtualKeySection: number;
132
+ static Error_BeepInVirtualKeySection: () => CompilerEvent;
133
+ static ERROR_IndexInVirtualKeySection: number;
134
+ static Error_IndexInVirtualKeySection: () => CompilerEvent;
135
+ static ERROR_InvalidIndex: number;
136
+ static Error_InvalidIndex: () => CompilerEvent;
137
+ static ERROR_OutsInVirtualKeySection: number;
138
+ static Error_OutsInVirtualKeySection: () => CompilerEvent;
139
+ static ERROR_InvalidOuts: number;
140
+ static Error_InvalidOuts: () => CompilerEvent;
141
+ static ERROR_ContextInVirtualKeySection: number;
142
+ static Error_ContextInVirtualKeySection: () => CompilerEvent;
143
+ static ERROR_InvalidUse: number;
144
+ static Error_InvalidUse: () => CompilerEvent;
145
+ static ERROR_GroupDoesNotExist: number;
146
+ static Error_GroupDoesNotExist: () => CompilerEvent;
147
+ static ERROR_VirtualKeyNotAllowedHere: number;
148
+ static Error_VirtualKeyNotAllowedHere: () => CompilerEvent;
149
+ static ERROR_InvalidSwitch: number;
150
+ static Error_InvalidSwitch: () => CompilerEvent;
151
+ static ERROR_NoTokensFound: number;
152
+ static Error_NoTokensFound: () => CompilerEvent;
153
+ static ERROR_InvalidLineContinuation: number;
154
+ static Error_InvalidLineContinuation: () => CompilerEvent;
155
+ static ERROR_LineTooLong: number;
156
+ static Error_LineTooLong: () => CompilerEvent;
157
+ static ERROR_InvalidCopyright: number;
158
+ static Error_InvalidCopyright: () => CompilerEvent;
159
+ static ERROR_CodeInvalidInThisSection: number;
160
+ static Error_CodeInvalidInThisSection: () => CompilerEvent;
161
+ static ERROR_InvalidMessage: number;
162
+ static Error_InvalidMessage: () => CompilerEvent;
163
+ static ERROR_InvalidLanguageName: number;
164
+ static Error_InvalidLanguageName: () => CompilerEvent;
165
+ static ERROR_InvalidBitmapLine: number;
166
+ static Error_InvalidBitmapLine: () => CompilerEvent;
167
+ static ERROR_CannotReadBitmapFile: number;
168
+ static Error_CannotReadBitmapFile: () => CompilerEvent;
169
+ static ERROR_IndexDoesNotPointToAny: number;
170
+ static Error_IndexDoesNotPointToAny: () => CompilerEvent;
171
+ static ERROR_ReservedCharacter: number;
172
+ static Error_ReservedCharacter: () => CompilerEvent;
173
+ static ERROR_InvalidCharacter: number;
174
+ static Error_InvalidCharacter: () => CompilerEvent;
175
+ static ERROR_InvalidCall: number;
176
+ static Error_InvalidCall: () => CompilerEvent;
177
+ static ERROR_CallInVirtualKeySection: number;
178
+ static Error_CallInVirtualKeySection: () => CompilerEvent;
179
+ static ERROR_CodeInvalidInKeyStore: number;
180
+ static Error_CodeInvalidInKeyStore: () => CompilerEvent;
181
+ static ERROR_CannotLoadIncludeFile: number;
182
+ static Error_CannotLoadIncludeFile: () => CompilerEvent;
183
+ static ERROR_60FeatureOnly_EthnologueCode: number;
184
+ static Error_60FeatureOnly_EthnologueCode: () => CompilerEvent;
185
+ static ERROR_60FeatureOnly_MnemonicLayout: number;
186
+ static Error_60FeatureOnly_MnemonicLayout: () => CompilerEvent;
187
+ static ERROR_60FeatureOnly_OldCharPosMatching: number;
188
+ static Error_60FeatureOnly_OldCharPosMatching: () => CompilerEvent;
189
+ static ERROR_60FeatureOnly_NamedCodes: number;
190
+ static Error_60FeatureOnly_NamedCodes: () => CompilerEvent;
191
+ static ERROR_60FeatureOnly_Contextn: number;
192
+ static Error_60FeatureOnly_Contextn: () => CompilerEvent;
193
+ static ERROR_501FeatureOnly_Call: number;
194
+ static Error_501FeatureOnly_Call: () => CompilerEvent;
195
+ static ERROR_InvalidNamedCode: number;
196
+ static Error_InvalidNamedCode: () => CompilerEvent;
197
+ static ERROR_InvalidSystemStore: number;
198
+ static Error_InvalidSystemStore: () => CompilerEvent;
199
+ static ERROR_60FeatureOnly_VirtualCharKey: number;
200
+ static Error_60FeatureOnly_VirtualCharKey: () => CompilerEvent;
201
+ static ERROR_VersionAlreadyIncluded: number;
202
+ static Error_VersionAlreadyIncluded: () => CompilerEvent;
203
+ static ERROR_70FeatureOnly: number;
204
+ static Error_70FeatureOnly: () => CompilerEvent;
205
+ static ERROR_80FeatureOnly: number;
206
+ static Error_80FeatureOnly: () => CompilerEvent;
207
+ static ERROR_InvalidInVirtualKeySection: number;
208
+ static Error_InvalidInVirtualKeySection: () => CompilerEvent;
209
+ static ERROR_InvalidIf: number;
210
+ static Error_InvalidIf: () => CompilerEvent;
211
+ static ERROR_InvalidReset: number;
212
+ static Error_InvalidReset: () => CompilerEvent;
213
+ static ERROR_InvalidSet: number;
214
+ static Error_InvalidSet: () => CompilerEvent;
215
+ static ERROR_InvalidSave: number;
216
+ static Error_InvalidSave: () => CompilerEvent;
217
+ static ERROR_InvalidEthnologueCode: number;
218
+ static Error_InvalidEthnologueCode: () => CompilerEvent;
219
+ static FATAL_CannotCreateTempfile: number;
220
+ static Fatal_CannotCreateTempfile: () => CompilerEvent;
221
+ static ERROR_90FeatureOnly_IfSystemStores: number;
222
+ static Error_90FeatureOnly_IfSystemStores: () => CompilerEvent;
223
+ static ERROR_IfSystemStore_NotFound: number;
224
+ static Error_IfSystemStore_NotFound: () => CompilerEvent;
225
+ static ERROR_90FeatureOnly_SetSystemStores: number;
226
+ static Error_90FeatureOnly_SetSystemStores: () => CompilerEvent;
227
+ static ERROR_SetSystemStore_NotFound: number;
228
+ static Error_SetSystemStore_NotFound: () => CompilerEvent;
229
+ static ERROR_90FeatureOnlyVirtualKeyDictionary: number;
230
+ static Error_90FeatureOnlyVirtualKeyDictionary: () => CompilerEvent;
231
+ static ERROR_NotSupportedInKeymanWebContext: number;
232
+ static Error_NotSupportedInKeymanWebContext: (o: {
233
+ line: number;
234
+ code: String;
235
+ }) => CompilerEvent;
236
+ static ERROR_NotSupportedInKeymanWebOutput: number;
237
+ static Error_NotSupportedInKeymanWebOutput: (o: {
238
+ line: number;
239
+ code: string;
240
+ }) => CompilerEvent;
241
+ static ERROR_NotSupportedInKeymanWebStore: number;
242
+ static Error_NotSupportedInKeymanWebStore: (o: {
243
+ code: string;
244
+ store: string;
245
+ }) => CompilerEvent;
246
+ static ERROR_VirtualCharacterKeysNotSupportedInKeymanWeb: number;
247
+ static Error_VirtualCharacterKeysNotSupportedInKeymanWeb: (o: {
248
+ line: number;
249
+ }) => CompilerEvent;
250
+ static ERROR_VirtualKeysNotValidForMnemonicLayouts: number;
251
+ static Error_VirtualKeysNotValidForMnemonicLayouts: (o: {
252
+ line: number;
253
+ }) => CompilerEvent;
254
+ static ERROR_InvalidTouchLayoutFile: number;
255
+ static Error_InvalidTouchLayoutFile: (o: {
256
+ filename: string;
257
+ }) => CompilerEvent;
258
+ static ERROR_TouchLayoutInvalidIdentifier: number;
259
+ static Error_TouchLayoutInvalidIdentifier: (o: {
260
+ keyId: string;
261
+ platformName: string;
262
+ layerId: string;
263
+ }) => CompilerEvent;
264
+ static ERROR_InvalidKeyCode: number;
265
+ static Error_InvalidKeyCode: (o: {
266
+ keyId: string;
267
+ }) => CompilerEvent;
268
+ static ERROR_90FeatureOnlyLayoutFile: number;
269
+ static Error_90FeatureOnlyLayoutFile: () => CompilerEvent;
270
+ static ERROR_90FeatureOnlyKeyboardVersion: number;
271
+ static Error_90FeatureOnlyKeyboardVersion: () => CompilerEvent;
272
+ static ERROR_KeyboardVersionFormatInvalid: number;
273
+ static Error_KeyboardVersionFormatInvalid: () => CompilerEvent;
274
+ static ERROR_ContextExHasInvalidOffset: number;
275
+ static Error_ContextExHasInvalidOffset: () => CompilerEvent;
276
+ static ERROR_90FeatureOnlyEmbedCSS: number;
277
+ static Error_90FeatureOnlyEmbedCSS: () => CompilerEvent;
278
+ static ERROR_90FeatureOnlyTargets: number;
279
+ static Error_90FeatureOnlyTargets: () => CompilerEvent;
280
+ static ERROR_ContextAndIndexInvalidInMatchNomatch: number;
281
+ static Error_ContextAndIndexInvalidInMatchNomatch: () => CompilerEvent;
282
+ static ERROR_140FeatureOnlyContextAndNotAnyWeb: number;
283
+ static Error_140FeatureOnlyContextAndNotAnyWeb: () => CompilerEvent;
284
+ static ERROR_ExpansionMustFollowCharacterOrVKey: number;
285
+ static Error_ExpansionMustFollowCharacterOrVKey: () => CompilerEvent;
286
+ static ERROR_VKeyExpansionMustBeFollowedByVKey: number;
287
+ static Error_VKeyExpansionMustBeFollowedByVKey: () => CompilerEvent;
288
+ static ERROR_CharacterExpansionMustBeFollowedByCharacter: number;
289
+ static Error_CharacterExpansionMustBeFollowedByCharacter: () => CompilerEvent;
290
+ static ERROR_VKeyExpansionMustUseConsistentShift: number;
291
+ static Error_VKeyExpansionMustUseConsistentShift: () => CompilerEvent;
292
+ static ERROR_ExpansionMustBePositive: number;
293
+ static Error_ExpansionMustBePositive: () => CompilerEvent;
294
+ static ERROR_CasedKeysMustContainOnlyVirtualKeys: number;
295
+ static Error_CasedKeysMustContainOnlyVirtualKeys: () => CompilerEvent;
296
+ static ERROR_CasedKeysMustNotIncludeShiftStates: number;
297
+ static Error_CasedKeysMustNotIncludeShiftStates: () => CompilerEvent;
298
+ static ERROR_CasedKeysNotSupportedWithMnemonicLayout: number;
299
+ static Error_CasedKeysNotSupportedWithMnemonicLayout: () => CompilerEvent;
300
+ static ERROR_CannotUseReadWriteGroupFromReadonlyGroup: number;
301
+ static Error_CannotUseReadWriteGroupFromReadonlyGroup: () => CompilerEvent;
302
+ static ERROR_StatementNotPermittedInReadonlyGroup: number;
303
+ static Error_StatementNotPermittedInReadonlyGroup: () => CompilerEvent;
304
+ static ERROR_OutputInReadonlyGroup: number;
305
+ static Error_OutputInReadonlyGroup: () => CompilerEvent;
306
+ static ERROR_NewContextGroupMustBeReadonly: number;
307
+ static Error_NewContextGroupMustBeReadonly: () => CompilerEvent;
308
+ static ERROR_PostKeystrokeGroupMustBeReadonly: number;
309
+ static Error_PostKeystrokeGroupMustBeReadonly: () => CompilerEvent;
310
+ static ERROR_DuplicateGroup: number;
311
+ static Error_DuplicateGroup: () => CompilerEvent;
312
+ static ERROR_DuplicateStore: number;
313
+ static Error_DuplicateStore: () => CompilerEvent;
314
+ static ERROR_RepeatedBegin: number;
315
+ static Error_RepeatedBegin: () => CompilerEvent;
316
+ static ERROR_VirtualKeyInContext: number;
317
+ static Error_VirtualKeyInContext: () => CompilerEvent;
318
+ static ERROR_OutsTooLong: number;
319
+ static Error_OutsTooLong: () => CompilerEvent;
320
+ static ERROR_ExtendedStringTooLong: number;
321
+ static Error_ExtendedStringTooLong: () => CompilerEvent;
322
+ static ERROR_VirtualKeyExpansionTooLong: number;
323
+ static Error_VirtualKeyExpansionTooLong: () => CompilerEvent;
324
+ static ERROR_CharacterRangeTooLong: number;
325
+ static Error_CharacterRangeTooLong: () => CompilerEvent;
326
+ static WARN_TooManyWarnings: number;
327
+ static Warn_TooManyWarnings: () => CompilerEvent;
328
+ static WARN_OldVersion: number;
329
+ static Warn_OldVersion: () => CompilerEvent;
330
+ static WARN_BitmapNotUsed: number;
331
+ static Warn_BitmapNotUsed: () => CompilerEvent;
332
+ static WARN_CustomLanguagesNotSupported: number;
333
+ static Warn_CustomLanguagesNotSupported: () => CompilerEvent;
334
+ static WARN_KeyBadLength: number;
335
+ static Warn_KeyBadLength: () => CompilerEvent;
336
+ static WARN_IndexStoreShort: number;
337
+ static Warn_IndexStoreShort: () => CompilerEvent;
338
+ static WARN_UnicodeInANSIGroup: number;
339
+ static Warn_UnicodeInANSIGroup: () => CompilerEvent;
340
+ static WARN_ANSIInUnicodeGroup: number;
341
+ static Warn_ANSIInUnicodeGroup: () => CompilerEvent;
342
+ static WARN_UnicodeSurrogateUsed: number;
343
+ static Warn_UnicodeSurrogateUsed: () => CompilerEvent;
344
+ static WARN_ReservedCharacter: number;
345
+ static Warn_ReservedCharacter: () => CompilerEvent;
346
+ static INFO_Info: number;
347
+ static Info_Info: () => CompilerEvent;
348
+ static WARN_VirtualKeyWithMnemonicLayout: number;
349
+ static Warn_VirtualKeyWithMnemonicLayout: () => CompilerEvent;
350
+ static WARN_VirtualCharKeyWithPositionalLayout: number;
351
+ static Warn_VirtualCharKeyWithPositionalLayout: () => CompilerEvent;
352
+ static WARN_StoreAlreadyUsedAsOptionOrCall: number;
353
+ static Warn_StoreAlreadyUsedAsOptionOrCall: () => CompilerEvent;
354
+ static WARN_StoreAlreadyUsedAsStoreOrCall: number;
355
+ static Warn_StoreAlreadyUsedAsStoreOrCall: () => CompilerEvent;
356
+ static WARN_StoreAlreadyUsedAsStoreOrOption: number;
357
+ static Warn_StoreAlreadyUsedAsStoreOrOption: () => CompilerEvent;
358
+ static WARN_PunctuationInEthnologueCode: number;
359
+ static Warn_PunctuationInEthnologueCode: () => CompilerEvent;
360
+ static WARN_TouchLayoutMissingLayer: number;
361
+ static Warn_TouchLayoutMissingLayer: (o: {
362
+ keyId: string;
363
+ platformName: string;
364
+ layerId: string;
365
+ nextLayer: string;
366
+ }) => CompilerEvent;
367
+ static WARN_TouchLayoutCustomKeyNotDefined: number;
368
+ static Warn_TouchLayoutCustomKeyNotDefined: (o: {
369
+ keyId: string;
370
+ platformName: string;
371
+ layerId: string;
372
+ }) => CompilerEvent;
373
+ static WARN_TouchLayoutMissingRequiredKeys: number;
374
+ static Warn_TouchLayoutMissingRequiredKeys: (o: {
375
+ layerId: string;
376
+ platformName: string;
377
+ missingKeys: string;
378
+ }) => CompilerEvent;
379
+ static WARN_HelpFileMissing: number;
380
+ static Warn_HelpFileMissing: (o: {
381
+ line: number;
382
+ helpFilename: string;
383
+ e: any;
384
+ }) => CompilerEvent;
385
+ static WARN_EmbedJsFileMissing: number;
386
+ static Warn_EmbedJsFileMissing: (o: {
387
+ line: number;
388
+ jsFilename: string;
389
+ e: any;
390
+ }) => CompilerEvent;
391
+ static WARN_ExtendedShiftFlagsNotSupportedInKeymanWeb: number;
392
+ static Warn_ExtendedShiftFlagsNotSupportedInKeymanWeb: (o: {
393
+ line: number;
394
+ flags: string;
395
+ }) => CompilerEvent;
396
+ static WARN_TouchLayoutUnidentifiedKey: number;
397
+ static Warn_TouchLayoutUnidentifiedKey: (o: {
398
+ layerId: string;
399
+ }) => CompilerEvent;
400
+ static HINT_UnreachableKeyCode: number;
401
+ static Hint_UnreachableKeyCode: (o: {
402
+ line: number;
403
+ key: string;
404
+ }) => CompilerEvent;
405
+ static WARN_PlatformNotInTargets: number;
406
+ static Warn_PlatformNotInTargets: () => CompilerEvent;
407
+ static WARN_HeaderStatementIsDeprecated: number;
408
+ static Warn_HeaderStatementIsDeprecated: () => CompilerEvent;
409
+ static WARN_UseNotLastStatementInRule: number;
410
+ static Warn_UseNotLastStatementInRule: () => CompilerEvent;
411
+ static WARN_TouchLayoutFontShouldBeSameForAllPlatforms: number;
412
+ static Warn_TouchLayoutFontShouldBeSameForAllPlatforms: () => CompilerEvent;
413
+ static WARN_KVKFileIsInSourceFormat: number;
414
+ static Warn_KVKFileIsInSourceFormat: () => CompilerEvent;
415
+ static WARN_DontMixChiralAndNonChiralModifiers: number;
416
+ static Warn_DontMixChiralAndNonChiralModifiers: () => CompilerEvent;
417
+ static WARN_MixingLeftAndRightModifiers: number;
418
+ static Warn_MixingLeftAndRightModifiers: () => CompilerEvent;
419
+ static WARN_LanguageHeadersDeprecatedInKeyman10: number;
420
+ static Warn_LanguageHeadersDeprecatedInKeyman10: () => CompilerEvent;
421
+ static HINT_NonUnicodeFile: number;
422
+ static Hint_NonUnicodeFile: () => CompilerEvent;
423
+ static WARN_HotkeyHasInvalidModifier: number;
424
+ static Warn_HotkeyHasInvalidModifier: () => CompilerEvent;
425
+ static WARN_TouchLayoutSpecialLabelOnNormalKey: number;
426
+ static Warn_TouchLayoutSpecialLabelOnNormalKey: (o: {
427
+ keyId: string;
428
+ platformName: string;
429
+ layerId: string;
430
+ label: string;
431
+ }) => CompilerEvent;
432
+ static WARN_OptionStoreNameInvalid: number;
433
+ static Warn_OptionStoreNameInvalid: (o: {
434
+ name: string;
435
+ }) => CompilerEvent;
436
+ static WARN_NulNotFirstStatementInContext: number;
437
+ static Warn_NulNotFirstStatementInContext: () => CompilerEvent;
438
+ static WARN_IfShouldBeAtStartOfContext: number;
439
+ static Warn_IfShouldBeAtStartOfContext: () => CompilerEvent;
440
+ static WARN_KeyShouldIncludeNCaps: number;
441
+ static Warn_KeyShouldIncludeNCaps: () => CompilerEvent;
442
+ static HINT_UnreachableRule: number;
443
+ static Hint_UnreachableRule: () => CompilerEvent;
444
+ static WARN_VirtualKeyInOutput: number;
445
+ static Warn_VirtualKeyInOutput: () => CompilerEvent;
446
+ static FATAL_BufferOverflow: number;
447
+ static Fatal_BufferOverflow: () => CompilerEvent;
448
+ static FATAL_Break: number;
449
+ static Fatal_Break: () => CompilerEvent;
450
+ }
451
+ /**
452
+ * @internal
453
+ * TODO: This class is here as a stopgap as we merged it with
454
+ * KmnCompilerMessages. It should be removed in v18.0.
455
+ */
456
+ export declare class CompilerMessages extends KmnCompilerMessages {
457
+ }
458
+ export declare function mapErrorFromKmcmplib(line: number, code: number, msg: string): CompilerEvent;
459
459
  //# sourceMappingURL=kmn-compiler-messages.d.ts.map