Binds parenthesized expressions
This commit is contained in:
parent
82dff87d4d
commit
ce92348199
|
@ -34,7 +34,7 @@ namespace Upsilon.Binder
|
|||
case SyntaxKind.LiteralExpression:
|
||||
return BindLiteralExpression((LiteralExpressionSyntax) e);
|
||||
case SyntaxKind.ParenthesizedExpression:
|
||||
break;
|
||||
return BindParenthesizedExpression((ParenthesizedExpressionSyntax) e);
|
||||
case SyntaxKind.AssignmentExpression:
|
||||
break;
|
||||
case SyntaxKind.VariableExpression:
|
||||
|
@ -100,5 +100,10 @@ namespace Upsilon.Binder
|
|||
}
|
||||
return new BoundLiteralExpression(outValue, type);
|
||||
}
|
||||
|
||||
private BoundExpression BindParenthesizedExpression(ParenthesizedExpressionSyntax syntax)
|
||||
{
|
||||
return BindExpression(syntax.Expression);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue