Binds parenthesized expressions

This commit is contained in:
Deukhoofd 2018-11-11 20:00:06 +01:00
parent 82dff87d4d
commit ce92348199
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace Upsilon.Binder
case SyntaxKind.LiteralExpression: case SyntaxKind.LiteralExpression:
return BindLiteralExpression((LiteralExpressionSyntax) e); return BindLiteralExpression((LiteralExpressionSyntax) e);
case SyntaxKind.ParenthesizedExpression: case SyntaxKind.ParenthesizedExpression:
break; return BindParenthesizedExpression((ParenthesizedExpressionSyntax) e);
case SyntaxKind.AssignmentExpression: case SyntaxKind.AssignmentExpression:
break; break;
case SyntaxKind.VariableExpression: case SyntaxKind.VariableExpression:
@ -100,5 +100,10 @@ namespace Upsilon.Binder
} }
return new BoundLiteralExpression(outValue, type); return new BoundLiteralExpression(outValue, type);
} }
private BoundExpression BindParenthesizedExpression(ParenthesizedExpressionSyntax syntax)
{
return BindExpression(syntax.Expression);
}
} }
} }