public override ExpressionKind Eat(ISnapshot snapshot, IAsExpression expression) { var operandKind = Eater.Eat(snapshot, expression.Operand); var typeUsageKind = _typeEater.EatCastType(snapshot, expression.TypeOperand); return(_kindHelper.ValueOfKindAsTypeOfKind(operandKind, typeUsageKind)); }
public override ExpressionKind Eat(ISnapshot snapshot, IDefaultExpression expression) { return(_typeEater.EatCastType(snapshot, expression.TypeName)); }