@@ -15990,27 +15990,35 @@ var base64chars = []byte{
15990
15990
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '$', '%',
15991
15991
}
15992
15992
15993
- func (b *KeyBuilder) WriteUint64 (value uint64 ) {
15993
+ func (b *KeyBuilder) WriteUintptr (value uintptr ) {
15994
15994
for value != 0 {
15995
15995
b.WriteByte(base64chars[value&0x3F])
15996
15996
value >>= 6
15997
15997
}
15998
15998
}
15999
15999
16000
+ func (b *KeyBuilder) WriteUint(value uint) {
16001
+ b.WriteUintptr(uintptr(value))
16002
+ }
16003
+
16000
16004
func (b *KeyBuilder) WriteInt(value int) {
16001
- b.WriteUint64(uint64(int64(value)))
16005
+ b.WriteUint(uint(value))
16006
+ }
16007
+
16008
+ func (b *KeyBuilder) WriteUint32(value uint32) {
16009
+ b.WriteUint(uint(value))
16002
16010
}
16003
16011
16004
16012
func (b *KeyBuilder) WriteSymbolId(id ast.SymbolId) {
16005
- b.WriteUint64(uint64 (id))
16013
+ b.WriteUintptr(uintptr (id))
16006
16014
}
16007
16015
16008
16016
func (b *KeyBuilder) WriteSymbol(s *ast.Symbol) {
16009
16017
b.WriteSymbolId(ast.GetSymbolId(s))
16010
16018
}
16011
16019
16012
16020
func (b *KeyBuilder) WriteTypeId(id TypeId) {
16013
- b.WriteUint64(uint64 (id))
16021
+ b.WriteUint32(uint32 (id))
16014
16022
}
16015
16023
16016
16024
func (b *KeyBuilder) WriteType(t *Type) {
@@ -16088,7 +16096,7 @@ func (b *KeyBuilder) WriteGenericTypeReferences(source *Type, target *Type, igno
16088
16096
}
16089
16097
16090
16098
func (b *KeyBuilder) WriteNodeId(id ast.NodeId) {
16091
- b.WriteUint64(uint64 (id))
16099
+ b.WriteUintptr(uintptr (id))
16092
16100
}
16093
16101
16094
16102
func (b *KeyBuilder) WriteNode(node *ast.Node) {
@@ -16187,7 +16195,7 @@ func getIndexedAccessKey(objectType *Type, indexType *Type, accessFlags AccessFl
16187
16195
b.WriteByte(',')
16188
16196
b.WriteType(indexType)
16189
16197
b.WriteByte(',')
16190
- b.WriteUint64(uint64 (accessFlags))
16198
+ b.WriteUint32(uint32 (accessFlags))
16191
16199
b.WriteAlias(alias)
16192
16200
return b.String()
16193
16201
}
@@ -16234,7 +16242,7 @@ func getRelationKey(source *Type, target *Type, intersectionState IntersectionSt
16234
16242
}
16235
16243
if intersectionState != IntersectionStateNone {
16236
16244
b.WriteByte(':')
16237
- b.WriteUint64(uint64 (intersectionState))
16245
+ b.WriteUint32(uint32 (intersectionState))
16238
16246
}
16239
16247
if constrained {
16240
16248
// We mark keys with type references that reference constrained type parameters such that we know
0 commit comments