Skip to content

Comments

DP-3332 - Parse Invalid Expressions#171

Open
gvjoshi25 wants to merge 2 commits intomasterfrom
DP-3332-Parse_invalid_expressions
Open

DP-3332 - Parse Invalid Expressions#171
gvjoshi25 wants to merge 2 commits intomasterfrom
DP-3332-Parse_invalid_expressions

Conversation

@gvjoshi25
Copy link
Contributor

No description provided.

@gvjoshi25 gvjoshi25 requested a review from DeleTaylor July 4, 2023 13:48

Expression expression = Parser.parseExpression("toInt('123'", true);

InvalidSyntax invalidSyntax = (InvalidSyntax) expression;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's extract this code as a separate method (executeExpression(Expression expression)) for use here and with the 2 expressions below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created this common method.

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.

2 participants