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