Exemple #1
0
 public override void ExitChaseExpression(ChaseExpression chaseExpression)
 {
     if (!(chaseExpression.VariableReference.Declaration is VariableDeclaration))
     {
         Errors.Add(new CompilationError(chaseExpression.Context, "The first argument must be a variable."));
     }
     if (!chaseExpression.VariableReference.Type.IsEquivalentTo(chaseExpression.Destination.Type))
     {
         Errors.Add(new CompilationError(chaseExpression.Context, "Variable and destination must be of same types"));
     }
     chaseExpression.Type = new VoidType(chaseExpression.Context);
 }
Exemple #2
0
 public virtual void ExitChaseExpression(ChaseExpression chaseExpression)
 {
 }
Exemple #3
0
 public virtual void EnterChaseExpression(ChaseExpression chaseExpression)
 {
 }
Exemple #4
0
 public virtual T VisitChaseExpression(ChaseExpression chaseExpression)
 {
     return(VisitChildren(chaseExpression));
 }