namespace Synopsis::TypeAnalysis
class ConstEvaluator
ConstEvaluator-inheritance Scopes/Synopsis/PTree/Visitor.html

Evaluate the value of a constant expression.

Public Member functions Summary:
 constructor ConstEvaluator(const SymbolLookup::Scope* s)
source code
 bool evaluate(const PTree::Node* node, long& value)
source code
Private Member functions Summary:
virtual void visit(PTree::Literal*)
source code
virtual void visit(PTree::Identifier*)
source code
virtual void visit(PTree::FstyleCastExpr*)
source code
virtual void visit(PTree::InfixExpr*)
source code
virtual void visit(PTree::SizeofExpr*)
source code
virtual void visit(PTree::UnaryExpr*)
source code
virtual void visit(PTree::CondExpr*)
source code
virtual void visit(PTree::ParenExpr*)
source code
Private Data members Summary:
references
source code
references
source code
references
source code