/// <summary> /// Checks the statement for semantical errors /// </summary> public override void CheckStatement() { if (ListExpression != null) { ListExpression.CheckExpression(); Collection listExpressionType = ListExpression.GetExpressionType() as Collection; if (listExpressionType == null) { Root.AddError("Target does not references a list"); } } else { Root.AddError("List should be specified"); } if (ConditionExpression != null) { ConditionExpression.CheckExpression(); } if (AppliedStatement != null) { AppliedStatement.CheckStatement(); } else { Root.AddError("Procedure should be specified in the APPLY statement"); } }