mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix tabs/spaces.
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
/*
|
||||
This file is part of solidity.
|
||||
This file is part of solidity.
|
||||
|
||||
solidity is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
solidity is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
solidity is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
solidity is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* @author Christian <c@ethdev.com>
|
||||
@@ -113,9 +113,13 @@ bool ASTPrinter::visit(ParameterList const& _node)
|
||||
|
||||
bool ASTPrinter::visit(FunctionDefinition const& _node)
|
||||
{
|
||||
writeLine("FunctionDefinition \"" + _node.name() + "\"" +
|
||||
(_node.isPublic() ? " - public" : "") +
|
||||
(_node.stateMutability() == StateMutability::View ? " - const" : ""));
|
||||
writeLine(
|
||||
"FunctionDefinition \"" +
|
||||
_node.name() +
|
||||
"\"" +
|
||||
(_node.isPublic() ? " - public" : "") +
|
||||
(_node.stateMutability() == StateMutability::View ? " - const" : "")
|
||||
);
|
||||
printSourcePart(_node);
|
||||
return goDeeper();
|
||||
}
|
||||
@@ -305,8 +309,12 @@ bool ASTPrinter::visit(TupleExpression const& _node)
|
||||
|
||||
bool ASTPrinter::visit(UnaryOperation const& _node)
|
||||
{
|
||||
writeLine(string("UnaryOperation (") + (_node.isPrefixOperation() ? "prefix" : "postfix") +
|
||||
") " + TokenTraits::toString(_node.getOperator()));
|
||||
writeLine(
|
||||
string("UnaryOperation (") +
|
||||
(_node.isPrefixOperation() ? "prefix" : "postfix") +
|
||||
") " +
|
||||
TokenTraits::toString(_node.getOperator())
|
||||
);
|
||||
printType(_node);
|
||||
printSourcePart(_node);
|
||||
return goDeeper();
|
||||
|
||||
Reference in New Issue
Block a user