mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Reintroduce sealed interfaces for generated DB types
This commit is contained in:
@@ -171,7 +171,7 @@ with open('src/main/kotlin/KotlinExtractorDbScheme.kt', 'w') as kt:
|
||||
genTable(kt, relname, columns, enum, kind, num, typ)
|
||||
|
||||
for typ in sorted(supertypes):
|
||||
kt.write('interface Db' + upperFirst(typ))
|
||||
kt.write('sealed interface Db' + upperFirst(typ))
|
||||
# Sorting makes the output deterministic.
|
||||
names = sorted(supertypes[typ])
|
||||
if names:
|
||||
|
||||
Reference in New Issue
Block a user