...
This commit is contained in:
@@ -211,6 +211,8 @@ public sealed class Parser
|
||||
|
||||
private StatementSyntax ParseStatement()
|
||||
{
|
||||
var startIndex = _tokenIndex;
|
||||
|
||||
if (CurrentToken is SymbolToken symbol)
|
||||
{
|
||||
switch (symbol.Symbol)
|
||||
@@ -236,12 +238,6 @@ public sealed class Parser
|
||||
}
|
||||
}
|
||||
|
||||
return ParseStatementExpression();
|
||||
}
|
||||
|
||||
private StatementSyntax ParseStatementExpression()
|
||||
{
|
||||
var startIndex = _tokenIndex;
|
||||
var expr = ParseExpression();
|
||||
|
||||
if (TryExpectSymbol(Symbol.Assign))
|
||||
|
||||
Reference in New Issue
Block a user