godot/modules
Kirill Diduk 52507443d3 Check duplicate keys in dictionary literals: enums and const variables
Check identifiers (const variables and unnamed enums) and named
enums when parsing dictionary literals whether the keys are not
duplicated.

In case of duplicate key is encountered, highlight the line with it
and print error message:
`Duplicate key "foo" found in Dictionary literal`

This commit is a logical continuation of the commit dab73c7 which
implemented such checks only for literal keys (which fixed #7034).

Apart from that, this commit also fixes the issue with the error
message itself, which was shown one line below the duplicated key
in case it was the last one in the dictionary literal and there
was no hanging comma.

Also, the format of the error message has been changed so that now
the error message also contains the value of the key which is duplicated.
Instead of `Duplicate key found in Dictionary literal`, it now prints
`Duplicate key "<value>" found in Dictionary literal`

Fixes #50971
2024-03-25 00:07:51 +01:00
..
bmp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
bullet add ORMSpatialMaterial 2024-02-08 20:34:11 +01:00
camera One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
csg add ORMSpatialMaterial 2024-02-08 20:34:11 +01:00
cvtt One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
dds [3.x] Fix grayscale dds loading 2023-09-12 15:22:42 +02:00
denoise Linux: Fix arm32 build for OIDN and Embree 2024-01-16 18:17:05 +01:00
enet One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
etc One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
fbx fix crash on mat creation after orm refactor 2024-02-16 20:51:27 +01:00
freetype One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
gdnative [3.x] GDNative: Fix Linux arm32 warning about ignored sysv_abi attribute 2024-02-15 14:30:03 +01:00
gdscript Check duplicate keys in dictionary literals: enums and const variables 2024-03-25 00:07:51 +01:00
gltf fix crash on mat creation after orm refactor 2024-02-16 20:51:27 +01:00
gridmap fix crash on mat creation after orm refactor 2024-02-16 20:51:27 +01:00
hdr One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
jpg One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
jsonrpc One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
lightmapper_cpu One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
mbedtls One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
minimp3 One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
mobile_vr One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
mono Merge pull request #87272 from halotroop2288/patch-3 2024-01-17 13:47:09 +01:00
navigation Fix NavigationServer free error print 2023-03-06 13:48:18 +01:00
ogg One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
opensimplex One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
opus One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
pvr One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
raycast Linux: Fix arm32 build for OIDN and Embree 2024-01-16 18:17:05 +01:00
regex pcre2: Update to upstream version 10.42 (take two) 2023-08-29 11:45:59 +02:00
squish One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
stb_vorbis One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
svg Merge pull request #70502 from HolonProduction/svg_assets_3.x 2023-06-07 14:46:14 +02:00
tga One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
theora One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
tinyexr One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
upnp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
vhacd One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
visual_script Fix various GCC 13 warnings 2023-12-08 15:32:59 +01:00
vorbis One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
webm Linux: Disable webm module on arm32, we can't build libvpx properly 2024-01-17 15:06:52 +01:00
webp libwebp: Sync with upstream 1.3.0 2023-08-28 17:27:17 +02:00
webrtc One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
websocket One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
webxr Fix touch events in WebXR with an "immersive-ar" session 2023-11-29 14:54:45 -06:00
xatlas_unwrap One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
modules_builders.py SCons: Generate header with info on which modules are enabled 2021-07-14 23:09:47 +02:00
register_module_types.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
SCsub Add env.Depends to modules_enabled.gen.h generator 2021-07-14 23:46:44 +02:00