mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
changes to redefine the token list, the scanner, and the parser and how they pass around variable types of different sizes
not ready for change to FixedPoint just yet made this more const correct and added a switch statement for easier reading
This commit is contained in:
@@ -139,7 +139,7 @@ bool ASTJsonConverter::visit(TypeName const&)
|
||||
|
||||
bool ASTJsonConverter::visit(ElementaryTypeName const& _node)
|
||||
{
|
||||
addJsonNode("ElementaryTypeName", { make_pair("name", Token::toString(_node.typeName())) });
|
||||
addJsonNode("ElementaryTypeName", { make_pair("name", _node.typeName().toString()) });
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ bool ASTJsonConverter::visit(Identifier const& _node)
|
||||
bool ASTJsonConverter::visit(ElementaryTypeNameExpression const& _node)
|
||||
{
|
||||
addJsonNode("ElementaryTypenameExpression",
|
||||
{ make_pair("value", Token::toString(_node.typeToken())), make_pair("type", type(_node)) });
|
||||
{ make_pair("value", _node.typeName().toString()), make_pair("type", type(_node)) });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user