fmt.sol 971 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. contract ContractDefinition is
  2. Contract1,
  3. Contract2,
  4. Contract3,
  5. Contract4,
  6. Contract5
  7. {}
  8. // comment 7
  9. contract SampleContract {
  10. // spaced comment 1
  11. // spaced comment 2
  12. // that spans multiple lines
  13. // comment 8
  14. constructor() { /* comment 9 */ } // comment 10
  15. // comment 11
  16. function max( /* comment 13 */
  17. uint256 arg1,
  18. uint256 /* comment 14 */ arg2,
  19. uint256 /* comment 15 */
  20. )
  21. // comment 16
  22. external /* comment 17 */
  23. pure
  24. returns (uint256)
  25. // comment 18
  26. {
  27. // comment 19
  28. return arg1 > arg2 ? arg1 : arg2;
  29. }
  30. }
  31. // comment 20
  32. contract /* comment 21 */ ExampleContract is /* comment 22 */ SampleContract {}
  33. contract ERC20DecimalsMock is ERC20 {
  34. uint8 private immutable _decimals;
  35. constructor(string memory name_, string memory symbol_, uint8 decimals_)
  36. ERC20(name_, symbol_)
  37. {
  38. _decimals = decimals_;
  39. }
  40. }