mjplusplus
v0.4.1
|
#include <PrimaryExpression.hpp>
Public Member Functions | |
PrimaryExpression (source_position_t position) | |
virtual bool | standalone () const |
virtual std::pair< bool, bool > | constBool () const |
![]() | |
Expression (source_position_t position) | |
virtual shptr< Type > | get_type (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symbolTable) const =0 |
virtual bool | isLValue () const =0 |
virtual void | accept (ASTVisitor &visitor) const |
![]() | |
virtual void | toString (std::ostream &out, unsigned int indent, bool special=false) const =0 |
![]() | |
source_position_t | getPosition () const |
PositionAwareNode (lexer::Token const &token) | |
PositionAwareNode (source_position_t const &position) | |
Additional Inherited Members | |
![]() | |
source_position_t | position |
ast::pe::PrimaryExpression::PrimaryExpression | ( | source_position_t | position | ) |
|
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.
Implements ast::Expression.
Reimplemented in ast::pe::Bool.
|
virtual |
Implements ast::Expression.
Reimplemented in ast::pe::MethodInvocation, and ast::pe::NewObjectExpression.