mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjust code to review findings
This commit is contained in:
@@ -61,8 +61,6 @@ bool ControlFlowBuilder::visit(BinaryOperation const& _operation)
|
||||
|
||||
switch (_operation.getOperator())
|
||||
{
|
||||
case Token::Conditional:
|
||||
return true;
|
||||
case Token::Or:
|
||||
case Token::And:
|
||||
{
|
||||
@@ -89,10 +87,12 @@ bool ControlFlowBuilder::visit(BinaryOperation const& _operation)
|
||||
|
||||
connect(m_currentNode, nextNode);
|
||||
m_currentNode = nextNode;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
return ASTConstVisitor::visit(_operation);
|
||||
}
|
||||
|
||||
bool ControlFlowBuilder::visit(UnaryOperation const& _operation)
|
||||
|
||||
@@ -3853,7 +3853,7 @@ void TypeChecker::endVisit(UsingForDirective const& _usingFor)
|
||||
m_errorReporter.typeError(
|
||||
9921_error,
|
||||
_usingFor.location(),
|
||||
"The \"using\" directive cannot be used to attach functions to the enum type."
|
||||
"The \"using\" directive cannot be used to attach functions to enum types."
|
||||
);
|
||||
|
||||
Type const* normalizedType = TypeProvider::withLocationIfReference(
|
||||
|
||||
Reference in New Issue
Block a user