Skip to content

Commit 8e6c5e9

Browse files
committed
bump parser
1 parent 384bb11 commit 8e6c5e9

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎Directory.Build.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
<PeachpieLibraryRegularExpressionsVersion>1.7.1</PeachpieLibraryRegularExpressionsVersion>
4444
<MySqlConnectorVersion>2.0.0</MySqlConnectorVersion>
45-
<ParserVersion>8.5.18350</ParserVersion>
45+
<ParserVersion>8.5.18992</ParserVersion>
4646
<PeachpieMicrosoftCodeAnalysisVersion>3.7.4</PeachpieMicrosoftCodeAnalysisVersion>
4747

4848
</PropertyGroup>

‎src/Peachpie.CodeAnalysis/Semantics/SemanticsBinder.cs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,9 @@ AST.Expression BindArm(AST.IExpression value, AST.MatchArm arm, AST.IExpression
10151015
// Template: $tmp = A
10161016
var tmpvar = AST.DirectVarUse.Create(value.Span, new VariableName(tmpname));
10171017
tmpvar.ContainingElement = value;
1018-
1019-
var assignment = new AST.ValueAssignEx(value.Span, AST.Operations.AssignValue, tmpvar, value) { ContainingElement = value };
1018+
1019+
var assignment = AST.ValueAssignEx.Create(value.Span, AST.Operations.AssignValue, tmpvar, value);
1020+
assignment.ContainingElement = value;
10201021

10211022
// Template: throw new UnhandledMatchError
10221023
AST.Expression result = new AST.ThrowEx(value.Span,
@@ -1163,7 +1164,7 @@ protected ImmutableArray<BoundArrayItem> BindArrayItems(ReadOnlySpan<AST.ArrayIt
11631164
}
11641165

11651166
var builder = ArrayBuilder<BoundArrayItem>.GetInstance();
1166-
1167+
11671168
foreach (var x in items)
11681169
{
11691170
if (x.IsDefault)
@@ -1390,6 +1391,7 @@ protected BoundExpression BindUnaryEx(AST.UnaryEx expr, BoundAccess access)
13901391
operandAccess = access; // TODO: | Quiet
13911392
break;
13921393
case AST.Operations.UnsetCast:
1394+
case AST.Operations.VoidCast:
13931395
operandAccess = BoundAccess.None;
13941396
break;
13951397
}

‎src/Peachpie.Library.Scripting/Tokenizer.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,12 @@ public static class Tokenizer
367367
///<summary>insteadof Traits(available since PHP 5.4.0)</summary>
368368
public const int T_INSTEADOF = (int)Tokens.T_INSTEADOF;
369369

370-
///<summary>int) or(integer) type-casting</summary>
370+
///<summary>(int) or(integer) type-casting</summary>
371371
public const int T_INT_CAST = (int)Tokens.T_INT_CAST;
372372

373+
/// <summary>(void) type-casting.</summary>
374+
public const int T_VOID_CAST = (int)Tokens.T_VOID_CAST;
375+
373376
///<summary>interface Object Interfaces</summary>
374377
public const int T_INTERFACE = (int)Tokens.T_INTERFACE;
375378

0 commit comments

Comments
 (0)