Skip to content
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

Handle dropped fields in methods #31

Merged
merged 6 commits into from
Feb 19, 2019
Merged

Conversation

dennwc
Copy link
Member

@dennwc dennwc commented Feb 15, 2019

Handle all dropped fields for method/constructor/destructor declarations:

  • Base class initializer
  • Attribute lists (annotations)
  • Arrow expressions
  • Template parameters

Finally fixes #19

See comments in the code for more details.

Denys Smirnov added 3 commits February 15, 2019 17:42
Signed-off-by: Denys Smirnov <denys@sourced.tech>
Signed-off-by: Denys Smirnov <denys@sourced.tech>
Signed-off-by: Denys Smirnov <denys@sourced.tech>
@dennwc dennwc self-assigned this Feb 15, 2019
Denys Smirnov added 2 commits February 15, 2019 19:56
Signed-off-by: Denys Smirnov <denys@sourced.tech>
Signed-off-by: Denys Smirnov <denys@sourced.tech>
@dennwc dennwc changed the title Handle dropped fields in methods (part 1) Handle dropped fields in methods Feb 15, 2019
driver/normalizer/normalizer.go Show resolved Hide resolved
driver/normalizer/normalizer.go Outdated Show resolved Hide resolved
driver/normalizer/normalizer.go Show resolved Hide resolved
driver/normalizer/normalizer.go Outdated Show resolved Hide resolved
@dennwc
Copy link
Member Author

dennwc commented Feb 19, 2019

@creachadair @bzz Ready for another round. As soon as it's ready, I would say we can release v1.0.

Copy link

@bzz bzz left a comment

Choose a reason for hiding this comment

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

looks great to me

"Type": UASTType(uast.FunctionType{}, dstType),
// If the function was defined with an arrow expression, we will
// generate a uast:Block with a since csharp:Return node containing
Copy link

Choose a reason for hiding this comment

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

Not sure I can understand this sentence generate a uast:Block with a ...? since csharp:Return node containing

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Fixed the typo in the latest commit.

Signed-off-by: Denys Smirnov <denys@sourced.tech>
@dennwc dennwc force-pushed the handle_fields_func_1 branch from 099d8e9 to b372b4a Compare February 19, 2019 19:33
@dennwc dennwc merged commit 9cf954c into bblfsh:master Feb 19, 2019
@dennwc dennwc deleted the handle_fields_func_1 branch February 19, 2019 20:53
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.

Documentation and comments are missing
4 participants