spiegel-keyman/developer/src/common/delphi
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
..
compiler fix(developer): suppress repeated warnings about unreachable code 2022-09-07 06:02:46 +10:00
components fix(developer): add no-ops for symbol builds for components 2022-07-08 05:04:10 +10:00
general chore(windows): move general developer files to developer/ 2022-06-23 09:28:34 +10:00
keyboards chore(windows): move Delphi developer units to developer 2022-06-12 15:38:19 +10:00
lexicalmodels chore(windows): move Delphi developer units to developer 2022-06-12 15:38:19 +10:00
packages chore(windows): move general developer files to developer/ 2022-06-23 09:28:34 +10:00