mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds a test to check_style.sh to check for spaces before colon (:) in range based for loops.
This commit is contained in:
committed by
chriseth
parent
3b0284817e
commit
7b3aba81fb
@@ -456,15 +456,13 @@ bool ASTJsonConverter::visit(ArrayTypeName const& _node)
|
||||
bool ASTJsonConverter::visit(InlineAssembly const& _node)
|
||||
{
|
||||
Json::Value externalReferences(Json::arrayValue);
|
||||
for (auto const& it : _node.annotation().externalReferences)
|
||||
{
|
||||
for (auto const& it: _node.annotation().externalReferences)
|
||||
if (it.first)
|
||||
{
|
||||
Json::Value tuple(Json::objectValue);
|
||||
tuple[it.first->name.str()] = inlineAssemblyIdentifierToJson(it);
|
||||
externalReferences.append(tuple);
|
||||
}
|
||||
}
|
||||
setJsonNode(_node, "InlineAssembly", {
|
||||
make_pair("operations", Json::Value(yul::AsmPrinter()(_node.operations()))),
|
||||
make_pair("externalReferences", std::move(externalReferences))
|
||||
|
||||
Reference in New Issue
Block a user