@@ -335,7 +335,7 @@ class Type
335
335
return members (_currentScope).memberType (_name);
336
336
}
337
337
338
- virtual std::string toString (bool _short ) const = 0;
338
+ virtual std::string toString (bool _withoutDataLocation ) const = 0;
339
339
std::string toString () const { return toString (false ); }
340
340
// / @returns the canonical name of this type for use in library function signatures.
341
341
virtual std::string canonicalName () const { return toString (true ); }
@@ -428,7 +428,7 @@ class AddressType: public Type
428
428
429
429
MemberList::MemberMap nativeMembers (ASTNode const *) const override ;
430
430
431
- std::string toString (bool _short ) const override ;
431
+ std::string toString (bool _withoutDataLocation ) const override ;
432
432
std::string canonicalName () const override ;
433
433
434
434
u256 literalValue (Literal const * _literal) const override ;
@@ -471,7 +471,7 @@ class IntegerType: public Type
471
471
bool isValueType () const override { return true ; }
472
472
bool nameable () const override { return true ; }
473
473
474
- std::string toString (bool _short ) const override ;
474
+ std::string toString (bool _withoutDataLocation ) const override ;
475
475
476
476
Type const * encodingType () const override { return this ; }
477
477
TypeResult interfaceType (bool ) const override { return this ; }
@@ -518,7 +518,7 @@ class FixedPointType: public Type
518
518
bool isValueType () const override { return true ; }
519
519
bool nameable () const override { return true ; }
520
520
521
- std::string toString (bool _short ) const override ;
521
+ std::string toString (bool _withoutDataLocation ) const override ;
522
522
523
523
Type const * encodingType () const override { return this ; }
524
524
TypeResult interfaceType (bool ) const override { return this ; }
@@ -568,7 +568,7 @@ class RationalNumberType: public Type
568
568
569
569
bool canBeStored () const override { return false ; }
570
570
571
- std::string toString (bool _short ) const override ;
571
+ std::string toString (bool _withoutDataLocation ) const override ;
572
572
u256 literalValue (Literal const * _literal) const override ;
573
573
Type const * mobileType () const override ;
574
574
@@ -832,7 +832,7 @@ class ArrayType: public ReferenceType
832
832
bool containsNestedMapping () const override { return m_baseType->containsNestedMapping (); }
833
833
bool nameable () const override { return true ; }
834
834
835
- std::string toString (bool _short ) const override ;
835
+ std::string toString (bool _withoutDataLocation ) const override ;
836
836
std::string humanReadableName () const override ;
837
837
std::string canonicalName () const override ;
838
838
std::string signatureInExternalFunction (bool _structsByName) const override ;
@@ -897,7 +897,7 @@ class ArraySliceType: public ReferenceType
897
897
unsigned calldataEncodedTailSize () const override { return 32 ; }
898
898
bool isDynamicallySized () const override { return true ; }
899
899
bool isDynamicallyEncoded () const override { return true ; }
900
- std::string toString (bool _short ) const override ;
900
+ std::string toString (bool _withoutDataLocation ) const override ;
901
901
std::string humanReadableName () const override ;
902
902
Type const * mobileType () const override ;
903
903
@@ -942,7 +942,7 @@ class ContractType: public Type
942
942
bool leftAligned () const override { solAssert (!isSuper (), " " ); return false ; }
943
943
bool isValueType () const override { return !isSuper (); }
944
944
bool nameable () const override { return !isSuper (); }
945
- std::string toString (bool _short ) const override ;
945
+ std::string toString (bool _withoutDataLocation ) const override ;
946
946
std::string canonicalName () const override ;
947
947
948
948
MemberList::MemberMap nativeMembers (ASTNode const * _currentScope) const override ;
@@ -1004,7 +1004,7 @@ class StructType: public ReferenceType
1004
1004
u256 storageSize () const override ;
1005
1005
bool containsNestedMapping () const override ;
1006
1006
bool nameable () const override { return true ; }
1007
- std::string toString (bool _short ) const override ;
1007
+ std::string toString (bool _withoutDataLocation ) const override ;
1008
1008
1009
1009
MemberList::MemberMap nativeMembers (ASTNode const * _currentScope) const override ;
1010
1010
@@ -1066,7 +1066,7 @@ class EnumType: public Type
1066
1066
}
1067
1067
unsigned storageBytes () const override ;
1068
1068
bool leftAligned () const override { return false ; }
1069
- std::string toString (bool _short ) const override ;
1069
+ std::string toString (bool _withoutDataLocation ) const override ;
1070
1070
std::string canonicalName () const override ;
1071
1071
bool isValueType () const override { return true ; }
1072
1072
bool nameable () const override { return true ; }
@@ -1153,7 +1153,7 @@ class UserDefinedValueType: public Type
1153
1153
return false ;
1154
1154
}
1155
1155
1156
- std::string toString (bool _short ) const override ;
1156
+ std::string toString (bool _withoutDataLocation ) const override ;
1157
1157
std::string canonicalName () const override ;
1158
1158
std::string signatureInExternalFunction (bool ) const override { solAssert (false , " " ); }
1159
1159
@@ -1179,7 +1179,7 @@ class TupleType: public CompositeType
1179
1179
std::string richIdentifier () const override ;
1180
1180
bool operator ==(Type const & _other) const override ;
1181
1181
TypeResult binaryOperatorResult (Token, Type const *) const override { return nullptr ; }
1182
- std::string toString (bool _short ) const override ;
1182
+ std::string toString (bool _withoutDataLocation ) const override ;
1183
1183
std::string humanReadableName () const override ;
1184
1184
bool canBeStored () const override { return false ; }
1185
1185
u256 storageSize () const override ;
@@ -1383,7 +1383,7 @@ class FunctionType: public Type
1383
1383
TypeResult binaryOperatorResult (Token, Type const *) const override ;
1384
1384
std::string canonicalName () const override ;
1385
1385
std::string humanReadableName () const override ;
1386
- std::string toString (bool _short ) const override ;
1386
+ std::string toString (bool _withoutDataLocation ) const override ;
1387
1387
unsigned calldataEncodedSize (bool _padded) const override ;
1388
1388
bool canBeStored () const override { return m_kind == Kind::Internal || m_kind == Kind::External; }
1389
1389
u256 storageSize () const override ;
@@ -1517,7 +1517,7 @@ class MappingType: public CompositeType
1517
1517
1518
1518
std::string richIdentifier () const override ;
1519
1519
bool operator ==(Type const & _other) const override ;
1520
- std::string toString (bool _short ) const override ;
1520
+ std::string toString (bool _withoutDataLocation ) const override ;
1521
1521
std::string canonicalName () const override ;
1522
1522
bool containsNestedMapping () const override { return true ; }
1523
1523
TypeResult binaryOperatorResult (Token, Type const *) const override { return nullptr ; }
@@ -1558,7 +1558,7 @@ class TypeType: public Type
1558
1558
bool canBeStored () const override { return false ; }
1559
1559
u256 storageSize () const override ;
1560
1560
bool hasSimpleZeroValueInMemory () const override { solAssert (false , " " ); }
1561
- std::string toString (bool _short ) const override { return " type(" + m_actualType->toString (_short ) + " )" ; }
1561
+ std::string toString (bool _withoutDataLocation ) const override { return " type(" + m_actualType->toString (_withoutDataLocation ) + " )" ; }
1562
1562
MemberList::MemberMap nativeMembers (ASTNode const * _currentScope) const override ;
1563
1563
1564
1564
BoolResult isExplicitlyConvertibleTo (Type const & _convertTo) const override ;
@@ -1585,7 +1585,7 @@ class ModifierType: public Type
1585
1585
bool hasSimpleZeroValueInMemory () const override { solAssert (false , " " ); }
1586
1586
std::string richIdentifier () const override ;
1587
1587
bool operator ==(Type const & _other) const override ;
1588
- std::string toString (bool _short ) const override ;
1588
+ std::string toString (bool _withoutDataLocation ) const override ;
1589
1589
protected:
1590
1590
std::vector<std::tuple<std::string, Type const *>> makeStackItems () const override { return {}; }
1591
1591
private:
@@ -1611,7 +1611,7 @@ class ModuleType: public Type
1611
1611
bool hasSimpleZeroValueInMemory () const override { solAssert (false , " " ); }
1612
1612
MemberList::MemberMap nativeMembers (ASTNode const *) const override ;
1613
1613
1614
- std::string toString (bool _short ) const override ;
1614
+ std::string toString (bool _withoutDataLocation ) const override ;
1615
1615
1616
1616
protected:
1617
1617
std::vector<std::tuple<std::string, Type const *>> makeStackItems () const override { return {}; }
@@ -1650,7 +1650,7 @@ class MagicType: public Type
1650
1650
bool hasSimpleZeroValueInMemory () const override { solAssert (false , " " ); }
1651
1651
MemberList::MemberMap nativeMembers (ASTNode const *) const override ;
1652
1652
1653
- std::string toString (bool _short ) const override ;
1653
+ std::string toString (bool _withoutDataLocation ) const override ;
1654
1654
1655
1655
Kind kind () const { return m_kind; }
1656
1656
0 commit comments