Skip to content

Commit

Permalink
Use _ for pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Feb 10, 2019
1 parent 29432b8 commit 5558731
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/SharpToml/Syntax/SyntaxValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ public override void Visit(KeyValueSyntax keyValue)
ObjectKind kind;
switch (keyValue.Value)
{
case ArraySyntax arraySyntax:
case ArraySyntax _:
kind = ObjectKind.Array;
break;
case BooleanValueSyntax booleanValueSyntax:
case BooleanValueSyntax _:
kind = ObjectKind.Boolean;
break;
case DateTimeValueSyntax dateTimeValueSyntax:
case DateTimeValueSyntax _:
kind = ObjectKind.DateTime;
break;
case FloatValueSyntax floatValueSyntax:
case FloatValueSyntax _:
kind = ObjectKind.Float;
break;
case InlineTableSyntax inlineTableSyntax:
case InlineTableSyntax _:
kind = ObjectKind.Table;
break;
case IntegerValueSyntax integerValueSyntax:
case IntegerValueSyntax _:
kind = ObjectKind.Integer;
break;
case StringValueSyntax stringValueSyntax:
case StringValueSyntax _:
kind = ObjectKind.String;
break;
default:
Expand Down

0 comments on commit 5558731

Please sign in to comment.