CodeEvaluationVisitor Class

Definition

Line 10 of scmpg/CodeEvaluationVisitor.cm

Inheritance

Constructors & Destructor

public CodeEvaluationVisitor()

Member Functions

public bool HasPass() const
public bool HasReturn() const
public bool HasSpan() const
public override void Visit(AddNode& addNode)
public override void Visit(AddrOfNode& addrOfNode)
public override void Visit(ArrayNode& arrayNode)
public override void Visit(ArrowNode& arrowNode)
public override void Visit(AsNode& asNode)
public override void Visit(AssertStatementNode& assertStatementNode)
public override void Visit(AssignmentStatementNode& assignmentStatementNode)
public override void Visit(BitAndNode& bitAndNode)
public override void Visit(BitOrNode& bitOrNode)
public override void Visit(BitXorNode& bitXorNode)
public override void Visit(BreakStatementNode& breakStatementNode)
public override void Visit(CaseStatementNode& caseStatementNode)
public override void Visit(CastNode& castNode)
public override void Visit(CatchNode& catchNode)
public override void Visit(ComplementNode& complementNode)
public override void Visit(CompoundStatementNode& compoundStatementNode)
public override void Visit(ConditionalCompilationConjunctionNode& conditionalCompilationConjunctionNode)
public override void Visit(ConditionalCompilationDisjunctionNode& conditionalCompilationDisjunctionNode)
public override void Visit(ConditionalCompilationNotNode& conditionalCompilationNotNode)
public override void Visit(ConditionalCompilationPartNode& conditionalCompilationPartNode)
public override void Visit(ConditionalCompilationPrimaryNode& conditionalCompilationPrimaryNode)
public override void Visit(ConditionalCompilationStatementNode& conditionalCompilationStatementNode)
public override void Visit(ConjunctionNode& conjunctionNode)
public override void Visit(ConstNode& constNode)
public override void Visit(ConstructNode& constructNode)
public override void Visit(ConstructionStatementNode& constructionStatementNode)
public override void Visit(ContinueStatementNode& continueStatementNode)
public override void Visit(DefaultStatementNode& defaultStatementNode)
public override void Visit(DeleteStatementNode& deleteStatementNode)
public override void Visit(DerefNode& derefNode)
public override void Visit(DestroyStatementNode& destroyStatementNode)
public override void Visit(DisjunctionNode& disjunctionNode)
public override void Visit(DivNode& divNode)
public override void Visit(DoStatementNode& doStatementNode)
public override void Visit(DotNode& dotNode)
public override void Visit(EmptyStatementNode& emptyStatementNode)
public override void Visit(EqualNode& equalNode)
public override void Visit(EquivalenceNode& equivalenceNode)
public override void Visit(ExpressionStatementNode& expressionStatementNode)
public override void Visit(ForStatementNode& forStatementNode)
public override void Visit(GotoCaseStatementNode& gotoCaseStatementNode)
public override void Visit(GotoDefaultStatementNode& gotoDefaultStatementNode)
public override void Visit(GotoStatementNode& gotoStatementNode)
public override void Visit(GreaterNode& greaterNode)
public override void Visit(GreaterOrEqualNode& greaterOrEqualNode)
public override void Visit(IdentifierNode& node)
public override void Visit(IfStatementNode& ifStatementNode)
public override void Visit(ImplicationNode& implicationNode)
public override void Visit(IndexingNode& indexingNode)
public override void Visit(InvokeNode& invokeNode)
public override void Visit(IsNode& isNode)
public override void Visit(LValueRefNode& lvalueRefNode)
public override void Visit(LabeledStatementNode& labeledStatementNode)
public override void Visit(LessNode& lessNode)
public override void Visit(LessOrEqualNode& lessOrEqualNode)
public override void Visit(MulNode& mulNode)
public override void Visit(NewNode& newNode)
public override void Visit(NotEqualNode& notEqualNode)
public override void Visit(NotNode& notNode)
public override void Visit(ParenthesizedConditionalCompilationExpressionNode& parenthesizeCondCompExprNode)
public override void Visit(ParenthesizedExpressionNode& parenthesizedExpressionNode)
public override void Visit(PointerNode& pointerNode)
public override void Visit(PostfixDecrementNode& postfixDecrementNode)
public override void Visit(PostfixIncrementNode& postfixIncrementNode)
public override void Visit(PrefixDecrementNode& prefixDecrementNode)
public override void Visit(PrefixIncrementNode& prefixIncrementNode)
public override void Visit(RValueRefNode& rvalueRefNode)
public override void Visit(RangeForStatementNode& rangeForStatementNode)
public override void Visit(RemNode& remNode)
public override void Visit(ReturnStatementNode& returnStatementNode)
public override void Visit(ShiftLeftNode& shiftLeftNode)
public override void Visit(ShiftRightNode& shiftRightNode)
public override void Visit(SizeOfNode& sizeOfNode)
public override void Visit(SubNode& subNode)
public override void Visit(SwitchStatementNode& switchStatementNode)
public override void Visit(ThrowStatementNode& throwStatementNode)
public override void Visit(TryStatementNode& tryStatementNode)
public override void Visit(TypeIdNode& typeIdNode)
public override void Visit(TypeNameNode& typeNameNode)
public override void Visit(UnaryMinusNode& unaryMinusNode)
public override void Visit(UnaryPlusNode& unaryPlusNode)
public override void Visit(WhileStatementNode& whileStatementNode)

Member Variables

private bool hasPass
private bool hasReturn
private bool hasSpan

Constructor& Destructor Details

CodeEvaluationVisitor Constructor

public CodeEvaluationVisitor()

Definition
Line 12 of scmpg/CodeEvaluationVisitor.cm


Member Function Details

HasPass Member Function

public bool HasPass()

Definition
Line 20 of scmpg/CodeEvaluationVisitor.cm


HasReturn Member Function

public bool HasReturn()

Definition
Line 16 of scmpg/CodeEvaluationVisitor.cm


HasSpan Member Function

public bool HasSpan()

Definition
Line 24 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(AddNode& addNode)

Definition
Line 336 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(AddrOfNode& addrOfNode)

Definition
Line 385 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ArrayNode& arrayNode)

Definition
Line 243 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ArrowNode& arrowNode)

Definition
Line 256 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(AsNode& asNode)

Definition
Line 398 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(AssertStatementNode& assertStatementNode)

Definition
Line 180 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(AssignmentStatementNode& assignmentStatementNode)

Definition
Line 101 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(BitAndNode& bitAndNode)

Definition
Line 291 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(BitOrNode& bitOrNode)

Definition
Line 281 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(BitXorNode& bitXorNode)

Definition
Line 286 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(BreakStatementNode& breakStatementNode)

Definition
Line 74 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(CaseStatementNode& caseStatementNode)

Definition
Line 133 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(CastNode& castNode)

Definition
Line 437 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(CatchNode& catchNode)

Definition
Line 174 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ComplementNode& complementNode)

Definition
Line 389 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(CompoundStatementNode& compoundStatementNode)

Definition
Line 32 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConditionalCompilationConjunctionNode& conditionalCompilationConjunctionNode)

Definition
Line 198 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConditionalCompilationDisjunctionNode& conditionalCompilationDisjunctionNode)

Definition
Line 193 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConditionalCompilationNotNode& conditionalCompilationNotNode)

Definition
Line 203 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConditionalCompilationPartNode& conditionalCompilationPartNode)

Definition
Line 184 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConditionalCompilationPrimaryNode& conditionalCompilationPrimaryNode)

Definition
Line 207 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConditionalCompilationStatementNode& conditionalCompilationStatementNode)

Definition
Line 214 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConjunctionNode& conjunctionNode)

Definition
Line 276 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConstNode& constNode)

Definition
Line 227 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConstructNode& constructNode)

Definition
Line 442 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ConstructionStatementNode& constructionStatementNode)

Definition
Line 83 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ContinueStatementNode& continueStatementNode)

Definition
Line 77 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DefaultStatementNode& defaultStatementNode)

Definition
Line 146 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DeleteStatementNode& deleteStatementNode)

Definition
Line 93 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DerefNode& derefNode)

Definition
Line 381 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DestroyStatementNode& destroyStatementNode)

Definition
Line 97 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DisjunctionNode& disjunctionNode)

Definition
Line 271 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DivNode& divNode)

Definition
Line 351 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DoStatementNode& doStatementNode)

Definition
Line 59 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(DotNode& dotNode)

Definition
Line 251 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(EmptyStatementNode& emptyStatementNode)

Definition
Line 110 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(EqualNode& equalNode)

Definition
Line 296 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(EquivalenceNode& equivalenceNode)

Definition
Line 261 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ExpressionStatementNode& expressionStatementNode)

Definition
Line 106 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ForStatementNode& forStatementNode)

Definition
Line 64 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(GotoCaseStatementNode& gotoCaseStatementNode)

Definition
Line 154 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(GotoDefaultStatementNode& gotoDefaultStatementNode)

Definition
Line 158 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(GotoStatementNode& gotoStatementNode)

Definition
Line 80 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(GreaterNode& greaterNode)

Definition
Line 311 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(GreaterOrEqualNode& greaterOrEqualNode)

Definition
Line 321 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(IdentifierNode& node)

Definition
Line 464 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(IfStatementNode& ifStatementNode)

Definition
Line 45 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ImplicationNode& implicationNode)

Definition
Line 266 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(IndexingNode& indexingNode)

Definition
Line 403 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(InvokeNode& invokeNode)

Definition
Line 408 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(IsNode& isNode)

Definition
Line 393 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(LValueRefNode& lvalueRefNode)

Definition
Line 231 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(LabeledStatementNode& labeledStatementNode)

Definition
Line 28 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(LessNode& lessNode)

Definition
Line 306 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(LessOrEqualNode& lessOrEqualNode)

Definition
Line 316 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(MulNode& mulNode)

Definition
Line 346 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(NewNode& newNode)

Definition
Line 451 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(NotEqualNode& notEqualNode)

Definition
Line 301 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(NotNode& notNode)

Definition
Line 361 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ParenthesizedConditionalCompilationExpressionNode& parenthesizeCondCompExprNode)

Definition
Line 210 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ParenthesizedExpressionNode& parenthesizedExpressionNode)

Definition
Line 460 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(PointerNode& pointerNode)

Definition
Line 239 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(PostfixDecrementNode& postfixDecrementNode)

Definition
Line 421 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(PostfixIncrementNode& postfixIncrementNode)

Definition
Line 417 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(PrefixDecrementNode& prefixDecrementNode)

Definition
Line 377 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(PrefixIncrementNode& prefixIncrementNode)

Definition
Line 373 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(RValueRefNode& rvalueRefNode)

Definition
Line 235 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(RangeForStatementNode& rangeForStatementNode)

Definition
Line 113 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(RemNode& remNode)

Definition
Line 356 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ReturnStatementNode& returnStatementNode)

Definition
Line 40 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ShiftLeftNode& shiftLeftNode)

Definition
Line 326 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ShiftRightNode& shiftRightNode)

Definition
Line 331 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(SizeOfNode& sizeOfNode)

Definition
Line 425 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(SubNode& subNode)

Definition
Line 341 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(SwitchStatementNode& switchStatementNode)

Definition
Line 120 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(ThrowStatementNode& throwStatementNode)

Definition
Line 161 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(TryStatementNode& tryStatementNode)

Definition
Line 165 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(TypeIdNode& typeIdNode)

Definition
Line 433 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(TypeNameNode& typeNameNode)

Definition
Line 429 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(UnaryMinusNode& unaryMinusNode)

Definition
Line 369 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(UnaryPlusNode& unaryPlusNode)

Definition
Line 365 of scmpg/CodeEvaluationVisitor.cm


Visit Member Function

public override void Visit(WhileStatementNode& whileStatementNode)

Definition
Line 54 of scmpg/CodeEvaluationVisitor.cm