Skip to content

No longer move to the next token when parsing an is or as expression#289

Merged
metoule merged 4 commits intodynamicexpresso:masterfrom
metoule:fix_287
Jun 11, 2023
Merged

No longer move to the next token when parsing an is or as expression#289
metoule merged 4 commits intodynamicexpresso:masterfrom
metoule:fix_287

Conversation

@metoule
Copy link
Copy Markdown
Contributor

@metoule metoule commented Jun 10, 2023

After the changes introduced in #178, the parser no longer needs to move to the token after the known type.

Fixes #287

@metoule metoule requested a review from davideicardi as a code owner June 10, 2023 10:51
Comment thread src/DynamicExpresso.Core/Parsing/Parser.cs
Comment thread src/DynamicExpresso.Core/Parsing/Parser.cs
Comment thread test/DynamicExpresso.UnitTest/GithubIssues.cs
Comment thread src/DynamicExpresso.Core/Parsing/Parser.cs
Copy link
Copy Markdown
Member

@davideicardi davideicardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR as usual! Thank you!

Maybe you can just add as test the case 'string.IsNullOrEmpty(variable as string))'?
The one mentioned in the bug...

@metoule
Copy link
Copy Markdown
Contributor Author

metoule commented Jun 11, 2023

Good idea, I've added the test for the case mentioned in the bug report

@metoule metoule merged commit dfa3277 into dynamicexpresso:master Jun 11, 2023
@metoule metoule deleted the fix_287 branch June 11, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing exception while using 'as' operator

2 participants