Skip to content

Commit 63d65b2

Browse files
committed
Add resource types
1 parent 4f8520c commit 63d65b2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

interpreter/encode.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -1406,9 +1406,9 @@ func (t FunctionStaticType) Encode(_ *cbor.StreamEncoder) error {
14061406

14071407
// compositeTypeInfo
14081408
type compositeTypeInfo struct {
1409-
location common.Location
1410-
qualifiedIdentifier string
1411-
kind common.CompositeKind
1409+
Location common.Location
1410+
QualifiedIdentifier string
1411+
Kind common.CompositeKind
14121412
}
14131413

14141414
func NewCompositeTypeInfo(
@@ -1420,9 +1420,9 @@ func NewCompositeTypeInfo(
14201420
common.UseMemory(memoryGauge, common.CompositeTypeInfoMemoryUsage)
14211421

14221422
return compositeTypeInfo{
1423-
location: location,
1424-
qualifiedIdentifier: qualifiedIdentifier,
1425-
kind: kind,
1423+
Location: location,
1424+
QualifiedIdentifier: qualifiedIdentifier,
1425+
Kind: kind,
14261426
}
14271427
}
14281428

@@ -1450,17 +1450,17 @@ func (c compositeTypeInfo) Encode(e *cbor.StreamEncoder) error {
14501450
return err
14511451
}
14521452

1453-
err = EncodeLocation(e, c.location)
1453+
err = EncodeLocation(e, c.Location)
14541454
if err != nil {
14551455
return err
14561456
}
14571457

1458-
err = e.EncodeString(c.qualifiedIdentifier)
1458+
err = e.EncodeString(c.QualifiedIdentifier)
14591459
if err != nil {
14601460
return err
14611461
}
14621462

1463-
err = e.EncodeUint64(uint64(c.kind))
1463+
err = e.EncodeUint64(uint64(c.Kind))
14641464
if err != nil {
14651465
return err
14661466
}
@@ -1471,9 +1471,9 @@ func (c compositeTypeInfo) Encode(e *cbor.StreamEncoder) error {
14711471
func (c compositeTypeInfo) Equal(o atree.TypeInfo) bool {
14721472
other, ok := o.(compositeTypeInfo)
14731473
return ok &&
1474-
c.location == other.location &&
1475-
c.qualifiedIdentifier == other.qualifiedIdentifier &&
1476-
c.kind == other.kind
1474+
c.Location == other.Location &&
1475+
c.QualifiedIdentifier == other.QualifiedIdentifier &&
1476+
c.Kind == other.Kind
14771477
}
14781478

14791479
// EmptyTypeInfo

runtime/interpreter/value.go

Whitespace-only changes.

0 commit comments

Comments
 (0)