mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7509 from ethereum/fixTrailingSpaces
Fix trailing spaces
This commit is contained in:
commit
6cbcc3796c
@ -24,6 +24,7 @@
|
||||
#include <libsolidity/ast/AST.h>
|
||||
#include <libyul/AsmData.h>
|
||||
#include <libyul/AsmPrinter.h>
|
||||
#include <libdevcore/JSON.h>
|
||||
#include <libdevcore/UTF8.h>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
|
||||
@ -189,7 +190,7 @@ Json::Value ASTJsonConverter::inlineAssemblyIdentifierToJson(pair<yul::Identifie
|
||||
|
||||
void ASTJsonConverter::print(ostream& _stream, ASTNode const& _node)
|
||||
{
|
||||
_stream << toJson(_node);
|
||||
_stream << jsonPrettyPrint(toJson(_node));
|
||||
}
|
||||
|
||||
Json::Value&& ASTJsonConverter::toJson(ASTNode const& _node)
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { uint[] i; }
|
||||
|
||||
// ----
|
||||
|
@ -2,3 +2,5 @@ contract C {
|
||||
constructor() public {
|
||||
}
|
||||
}
|
||||
|
||||
// ----
|
||||
|
@ -15,3 +15,5 @@ contract C {
|
||||
/** Some comment on mod.*/ modifier mod() { _; }
|
||||
/** Some comment on fn.*/ function fn() public {}
|
||||
}
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { enum E { A, B } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { event E(); }
|
||||
|
||||
// ----
|
||||
|
@ -2,3 +2,5 @@ contract C {
|
||||
function() external payable {
|
||||
}
|
||||
}
|
||||
|
||||
// ----
|
||||
|
@ -1,3 +1,5 @@
|
||||
contract C {
|
||||
function() external {}
|
||||
}
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract c { function f() public { uint a = 2 + 3; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract c { uint[] a; function f() public { uint[] storage b = a; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { modifier M(uint i) { _; } function F() M(1) public {} }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { modifier M(uint i) { _; } function F() M(1) public {} }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { function f() public { var x = hex"ff"; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { modifier M { _; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract c { function f() public { uint[] memory x; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract c { function f() public { uint[][] memory rows; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C {}
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
contract C { function f() { var x = 2; x++; } }
|
||||
|
||||
// ----
|
||||
|
@ -1 +1,3 @@
|
||||
library L {} contract C { using L for uint; }
|
||||
|
||||
// ----
|
||||
|
Loading…
Reference in New Issue
Block a user