bracket-spacing.fmt.sol 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // config: line_length = 120
  2. // config: bracket_spacing = true
  3. contract FunctionCall {
  4. function foo() public pure {
  5. bar(1111111111111111111111111111111111111111111111111111, 111111111111111111111111111111111111111111111111111);
  6. bar(1111111111111111111111111111111111111111111111111112, 1111111111111111111111111111111111111111111111111112);
  7. bar(1111111111111111111111111111111111111111111111111113, 11111111111111111111111111111111111111111111111111113); // the semicolon is not considered when determining line break
  8. bar(
  9. 1111111111111111111111111111111111111111111111111114, 111111111111111111111111111111111111111111111111111114
  10. );
  11. bar(
  12. 111111111111111111111111111111111115,
  13. 11111111111111111111111111111111115,
  14. 11111111111111111111111111111111115
  15. );
  16. bar(
  17. 111111111111111111111111111111111111111111111111111116,
  18. 111111111111111111111111111111111111111111111111111116
  19. );
  20. bar(
  21. 111111111111111111111111111111111111111111111111111117,
  22. 1111111111111111111111111111111111111111111111111111117
  23. );
  24. }
  25. function bar(uint256, uint256) private pure {
  26. return;
  27. }
  28. }
  29. function a(uint256 foo) {
  30. foo;
  31. MyContract c = new MyContract(address(0), hex"beef");
  32. }
  33. function b() {
  34. a({ foo: 5 });
  35. }
  36. contract MyContract {
  37. constructor(address arg, bytes memory data) { }
  38. }