Implements binding parenthesized expression
This commit is contained in:
		| @@ -42,6 +42,9 @@ BoundExpression* Binder::BindExpression(ParsedExpression* expression){ | |||||||
|         case ParsedExpressionKind ::LiteralBool: |         case ParsedExpressionKind ::LiteralBool: | ||||||
|             return new BoundLiteralBoolExpression(((LiteralBoolExpression*)expression)->GetValue(), expression->GetStartPosition(), expression->GetLength()); |             return new BoundLiteralBoolExpression(((LiteralBoolExpression*)expression)->GetValue(), expression->GetStartPosition(), expression->GetLength()); | ||||||
|  |  | ||||||
|  |         case ParsedExpressionKind ::Parenthesized: | ||||||
|  |             return BindExpression(((ParenthesizedExpression*)expression)->GetInnerExpression()); | ||||||
|  |  | ||||||
|         case ParsedExpressionKind ::Bad: |         case ParsedExpressionKind ::Bad: | ||||||
|             return new BoundBadExpression(expression->GetStartPosition(), expression-> GetLength()); |             return new BoundBadExpression(expression->GetStartPosition(), expression-> GetLength()); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user