spiegel-keyman/developer/src/common/delphi/compiler
Marc Durdin c98fb89b86 fix(developer): suppress repeated warnings about unreachable code
Fixes #7216.

The warning message 0x209A 'The rule will never be matched because its
key code is never fired.' was being generated multiple times for a
single line because the `JavaScript_Key` function it is generated by is
used for various purposes.

This PR keeps a cache of reported key rules to ensure that the message
is reported only once for a given key rule, and also improves the
reporting to clarify which specific key is unreachable, which makes it
easier to diagnose when using `any(k)` style messages, for example:

```
lao_phonetic.kmn (237): Warning: 209A The rule will never be matched for key 'ñ' because its key code is never fired.
```

This also reduces the warning to a hint, as this should not be a
blocking issue for a keyboard, rather just a place the keyboard author
can tidy up.
2022-09-07 06:02:46 +10:00
..
compile.pas feat(developer): Option to skip embed of compiler version 2022-07-11 12:01:13 +10:00
CompileErrorCodes.pas fix(developer): suppress repeated warnings about unreachable code 2022-09-07 06:02:46 +10:00
CompilePackage.pas chore(developer): Merge branch 'master' into chore/developer/js-to-lmc 2022-06-25 05:48:57 +10:00
CompilePackageInstaller.pas chore(windows): move general developer files to developer/ 2022-06-23 09:28:34 +10:00
Keyman.Developer.System.ValidateKpsFile.pas chore(windows): move general developer files to developer/ 2022-06-23 09:28:34 +10:00