Implements binding parenthesized expression

This commit is contained in:
Deukhoofd committed 2019-05-21 21:00:56 +02:00
1 parent 80998eab14
commit c8183e5405
1 file changed
+3
+3
View File
@@ -42,6 +42,9 @@ BoundExpression* Binder::BindExpression(ParsedExpression* expression){
case ParsedExpressionKind ::LiteralBool:
return new BoundLiteralBoolExpression(((LiteralBoolExpression*)expression)->GetValue(), expression->GetStartPosition(), expression->GetLength());
case ParsedExpressionKind ::Parenthesized:
return BindExpression(((ParenthesizedExpression*)expression)->GetInnerExpression());
case ParsedExpressionKind ::Bad:
return new BoundBadExpression(expression->GetStartPosition(), expression-> GetLength());
}