Binds parenthesized expressions
This commit is contained in:
parent
82dff87d4d
commit
ce92348199
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue