mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parse default dialect and omit when printing.
This commit is contained in:
@@ -366,7 +366,7 @@ Parser::ElementaryOperation Parser::parseElementaryOperation()
|
||||
location(),
|
||||
kind,
|
||||
YulString{currentLiteral()},
|
||||
{}
|
||||
kind == LiteralKind::Boolean ? m_dialect.boolType : m_dialect.defaultType
|
||||
};
|
||||
advance();
|
||||
if (currentToken() == Token::Colon)
|
||||
@@ -497,6 +497,9 @@ TypedName Parser::parseTypedName()
|
||||
typedName.location.end = endPosition();
|
||||
typedName.type = expectAsmIdentifier();
|
||||
}
|
||||
else
|
||||
typedName.type = m_dialect.defaultType;
|
||||
|
||||
return typedName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user