Implements binding parenthesized expression
This commit is contained in:
parent
80998eab14
commit
c8183e5405
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue