Beispiel #1
0
 public override void VisitExpressionStatement(ExpressionStatement exprStmt)
 {
     exprStmt.Expression.Accept(this);
 }
Beispiel #2
0
 public override void VisitExpressionStatement(ExpressionStatement exprStmt)
 {
     exprStmt.Expression.Accept(this);
     if (exprStmt.Expression.NodeType != null &&
         !exprStmt.Expression.NodeType.IsVoid) {
         report.Error(exprStmt.Location,
                      "expressions used as statements may not have " +
                      "return values");
     }
 }
Beispiel #3
0
 public virtual void VisitExpressionStatement(ExpressionStatement exprstmt)
 {
 }