We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a1edf commit 288e0ecCopy full SHA for 288e0ec
…dbf125835fb83a510465b2f29a24/go.dbscheme …e5e892dfb16b55ed4bd76ea662be/go.dbschemego/downgrades/76243dd9f77adbf125835fb83a510465b2f29a24/go.dbscheme renamed to go/downgrades/4bd57e093275e5e892dfb16b55ed4bd76ea662be/go.dbscheme
…bf125835fb83a510465b2f29a24/old.dbscheme …5e892dfb16b55ed4bd76ea662be/old.dbschemego/downgrades/76243dd9f77adbf125835fb83a510465b2f29a24/old.dbscheme renamed to go/downgrades/4bd57e093275e5e892dfb16b55ed4bd76ea662be/old.dbscheme
@@ -208,7 +208,7 @@ underlying_type(unique int named: @namedtype ref, int tp: @type ref);
208
component_types(int parent: @compositetype ref, int index: int ref, string name: string ref, int tp: @type ref);
209
210
#keyset[parent, index]
211
-component_tags(int parent: @structtype ref, int index: int ref, string tag: string ref);
+struct_tags(int parent: @structtype ref, int index: int ref, string tag: string ref);
212
213
#keyset[interface, index]
214
interface_private_method_ids(int interface: @interfacetype ref, int index: int ref, string id: string ref);
…35fb83a510465b2f29a24/upgrade.properties …fb16b55ed4bd76ea662be/upgrade.propertiesgo/downgrades/76243dd9f77adbf125835fb83a510465b2f29a24/upgrade.properties renamed to go/downgrades/4bd57e093275e5e892dfb16b55ed4bd76ea662be/upgrade.properties
@@ -1,5 +1,5 @@
1
description: Remove component-tags and interface-method-id tables
2
compatibility: full
3
4
-component_tags.rel: delete
+struct_tags.rel: delete
5
interface_private_method_ids.rel: delete
go/extractor/dbscheme/tables.go
@@ -1150,8 +1150,8 @@ var ComponentTypesTable = NewTable("component_types",
1150
EntityColumn(TypeType, "tp"),
1151
).KeySet("parent", "index")
1152
1153
-// ComponentTagsTable is the table associating struct types with their component types' tags
1154
-var ComponentTagsTable = NewTable("component_tags",
+// StructTagsTable is the table associating struct types with their component types' tags
+var StructTagsTable = NewTable("struct_tags",
1155
EntityColumn(StructType, "parent"),
1156
IntColumn("index"),
1157
StringColumn("tag"),
go/extractor/extractor.go
@@ -1625,7 +1625,7 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
1625
}
1626
extractComponentType(tw, lbl, i, name, field.Type())
1627
if tp.Tag(i) != "" {
1628
- dbscheme.ComponentTagsTable.Emit(tw, lbl, i, tp.Tag(i))
+ dbscheme.StructTagsTable.Emit(tw, lbl, i, tp.Tag(i))
1629
1630
1631
case *types.Pointer:
go/ql/lib/go.dbscheme
go/ql/lib/go.dbscheme.stats
@@ -13979,7 +13979,7 @@
13979
</dependencies>
13980
</relation>
13981
<relation>
13982
- <name>component_tags</name>
+ <name>struct_tags</name>
13983
<cardinality>41038845</cardinality>
13984
<columnsizes>
13985
<e>
go/ql/lib/semmle/go/Types.qll
@@ -467,9 +467,9 @@ class StructType extends @structtype, CompositeType {
467
predicate hasOwnFieldWithTag(int i, string name, Type tp, boolean isEmbedded, string tag) {
468
this.hasOwnField(i, name, tp, isEmbedded) and
469
(
470
- component_tags(this, i, tag)
+ struct_tags(this, i, tag)
471
or
472
- not component_tags(this, i, _) and tag = ""
+ not struct_tags(this, i, _) and tag = ""
473
)
474
475
@@ -594,9 +594,9 @@ class StructType extends @structtype, CompositeType {
594
concat(int i, string name, Type tp, string tagToPrint |
595
component_types(this, i, name, tp) and
596
597
- tagToPrint = " `" + any(string tag | component_tags(this, i, tag)) + "`"
+ tagToPrint = " `" + any(string tag | struct_tags(this, i, tag)) + "`"
598
599
- tagToPrint = "" and not component_tags(this, i, _)
+ tagToPrint = "" and not struct_tags(this, i, _)
600
601
|
602
name + " " + tp.pp() + tagToPrint, "; " order by i
go/ql/lib/upgrades/a58b81b1b4c4cccc8ca11731c1db86622f33af57/go.dbscheme
0 commit comments