Open fvictorio opened 1 year ago
This:
contract Foo { fallback() {} }
when formatted, gets an added external modifier. This is useful in a lot of situations, but I don't think we should do it. In the same vein as issues like #662, we should avoid making this kind of non-strictly-formatting change.
external
the printer doesn't make that decision. We print exactly the visibility that the parser gives us.
visibility
https://github.com/prettier-solidity/prettier-plugin-solidity/blob/f927935dc8c0ce4a0da06b5a7df6063fe81ba9bc/src/nodes/FunctionDefinition.js#L110
https://github.com/prettier-solidity/prettier-plugin-solidity/blob/f927935dc8c0ce4a0da06b5a7df6063fe81ba9bc/src/nodes/FunctionDefinition.js#L57-L60
I will open an issue in the parser about this.
https://github.com/solidity-parser/parser/issues/76
This:
when formatted, gets an added
external
modifier. This is useful in a lot of situations, but I don't think we should do it. In the same vein as issues like #662, we should avoid making this kind of non-strictly-formatting change.