File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
tools/SourceKit/include/SourceKit/Core
utils/gyb_sourcekit_support Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
% {
2
2
# -*- mode: Python -*-
3
- from gyb_sourcekit_support .UIDs import UID_KEYS
4
- from gyb_sourcekit_support .UIDs import UID_REQUESTS
5
- from gyb_sourcekit_support .UIDs import UID_KINDS
3
+ from gyb_sourcekit_support import *
4
+ assert check_uid_duplication (), "Found UID duplication"
6
5
# Ignore the following admonition; it applies to the resulting .def file only
7
6
}%
8
7
// // Automatically Generated From ProtocolUIDs .def .gyb .
Original file line number Diff line number Diff line change 14
14
# utils/gyb_sourcekit_support/ directory as a module.
15
15
#
16
16
# ----------------------------------------------------------------------------
17
+ from UIDs import UID_KEYS
18
+ from UIDs import UID_KINDS
19
+ from UIDs import UID_REQUESTS
20
+
21
+
22
+ def check_uid_duplication ():
23
+ all_external_names = [K .externalName for K in UID_KEYS ] + \
24
+ [R .externalName for R in UID_REQUESTS ] + \
25
+ [K .externalName for K in UID_KINDS ]
26
+ return len (all_external_names ) == len (set (all_external_names ))
You can’t perform that action at this time.
0 commit comments