#include <BinaryExpression.hpp>
void ast::be::EqEq::accept |
( |
ASTVisitor & |
visitor | ) |
const |
|
virtual |
std::pair< bool, bool > ast::be::EqEq::constBool |
( |
| ) |
const |
|
virtual |
Special while check for definite return analysis: Return a pair<bool,bool>. The first bool signifies whether it is a constant bool expression, and in this case, the second bool is the result.
Reimplemented from ast::be::BinaryExpression.
Idea: When getting the type of an Expression, the Expression checks if it's own and it's children Expressions type definitions are valid and then returns it's type. If something is invalid, an error is printed in the Expression that is invalid and an empty pointer is returned.
Implements ast::Expression.
void ast::be::EqEq::toString |
( |
std::ostream & |
out, |
|
|
unsigned |
indent, |
|
|
bool |
special = false |
|
) |
| const |
|
virtual |
writes a representation of the Node to out, including all children. special invokes "special" behavior for certain nodes MethodDeclaration: print static keyword Block & If: skip indentation Expression: don't print surrounding parens in addition Block doesn't print newline after trailing } if ~indent is passed instead of indent
Implements ast::be::BinaryExpression.
The documentation for this class was generated from the following files: