Binds parenthesized expressions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user