Fixes after rebase

This commit is contained in:
wechman 2022-09-14 13:54:22 +02:00
parent d414469014
commit 7b81a65bc6
3 changed files with 3 additions and 2 deletions

View File

@ -339,7 +339,7 @@ bool ASTJsonExporter::visit(UsingForDirective const& _node)
functionNode["function"] = toJson(*function); functionNode["function"] = toJson(*function);
if (op.has_value()) if (op.has_value())
functionNode["operator"] = string(TokenTraits::toString(*op)); functionNode["operator"] = string(TokenTraits::toString(*op));
functionList.append(move(functionNode)); functionList.append(std::move(functionNode));
} }
attributes.emplace_back("functionList", std::move(functionList)); attributes.emplace_back("functionList", std::move(functionList));
} }

View File

@ -405,7 +405,7 @@ ASTPointer<UsingForDirective> ASTJsonImporter::createUsingForDirective(Json::Val
return createASTNode<UsingForDirective>( return createASTNode<UsingForDirective>(
_node, _node,
std::move(functions), std::move(functions),
move(operators), std::move(operators),
!_node.isMember("libraryName"), !_node.isMember("libraryName"),
_node["typeName"].isNull() ? nullptr : convertJsonToASTNode<TypeName>(_node["typeName"]), _node["typeName"].isNull() ? nullptr : convertJsonToASTNode<TypeName>(_node["typeName"]),
memberAsBool(_node, "global") memberAsBool(_node, "global")

View File

@ -24,3 +24,4 @@ contract C {
// ---- // ----
// test() -> 3 // test() -> 3
// gas legacy: 119695