Fixed BadExpression throwing exceptions
This commit is contained in:
1 file changed
+1
-1
@@ -128,7 +128,7 @@ namespace Upsilon.Binder
|
||||
case SyntaxKind.FunctionExpression:
|
||||
return BindFunctionExpression((FunctionExpressionSyntax) e);
|
||||
case SyntaxKind.BadExpression:
|
||||
break;
|
||||
return new BoundLiteralExpression(new ScriptNull(), e.Span);
|
||||
case SyntaxKind.ScriptUnit:
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user