8000 Trailing comma for function use and parameter lists by mkornaukhov03 · Pull Request #971 · VKCOM/kphp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Trailing comma for function use and parameter lists #971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mkornaukhov03
Copy link
Contributor

See #664
Just change compare branch

< 8000 circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke" fill="none" />

@@ -97,6 +99,9 @@ VertexPtr GenTree::get_foreach_value() {
}

VertexAdaptor<op_var> GenTree::get_function_use_var_name_ref() {
if (cur->type() == tok_clpar) { // for trailing comma
return {};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems strange, because get_func_param() and other list-item parsing function don't handle ')' separately

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
0