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

Fixed access to a member property right after a function call #368

Merged
merged 2 commits into from
Sep 1, 2019

Conversation

ziflex
Copy link
Member

@ziflex ziflex commented Aug 30, 2019

Closes #335

@ziflex ziflex added type/bug Something isn't working area/compiler Compiler issue area/parser Parser issue area/syntax FQL syntax issue labels Aug 30, 2019
@codecov
Copy link

codecov bot commented Aug 30, 2019

Codecov Report

Merging #368 into master will increase coverage by <.1%.
The diff coverage is 62.1%.

@@           Coverage Diff            @@
##           master    #368     +/-   ##
========================================
+ Coverage    39.7%   39.8%   +<.1%     
========================================
  Files         218     218             
  Lines        8721    8735     +14     
========================================
+ Hits         3465    3473      +8     
- Misses       4905    4908      +3     
- Partials      351     354      +3

if err != nil {
return nil, err
if identifier != nil {
varName := ctx.Identifier().GetText()
Copy link
Member

Choose a reason for hiding this comment

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

Why not just identifier.GetText()?

Copy link
Member Author

Choose a reason for hiding this comment

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

🤷‍♂️for clarity, I guess 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I use the variable to do an existence check

@ziflex ziflex merged commit 2a81356 into master Sep 1, 2019
@ziflex ziflex deleted the feature/#335-mem-prop-call branch September 4, 2019 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compiler Compiler issue area/parser Parser issue area/syntax FQL syntax issue type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to access to a member property after a function call
2 participants