Detect when built in property is invoked using message syntax

Description

+Calculator project.

converts to:

... but should be:

Environment

None

Activity

Show:
Alex Petuschak
September 13, 2017, 1:42 PM
Edited

+Tip Tap Toe project.

converts to:

but should be:

Alex Petuschak
September 29, 2017, 8:31 AM
Edited

+Related case is when a property invocation (self.persistentContainer.viewContext) appears as

in Swift (ezmm3.zip, AppDelegate.m):

Keegan Rush
April 27, 2018, 7:48 AM

Hi Alex, I'm still seeing this on the Alternative slot (v4.1.6691) - please let me know if I'm using a faulty example? https://swiftify-alterntiveslot.azurewebsites.net/#/converter/code/pge393/

Alex Petuschak
April 27, 2018, 11:38 AM
Edited

I've figured it out.
You had different class names in `@interface` and `@implementation` sections.
Here is the fixed version that works:
http://swiftify.me/pge393/1

P.S. In addition to this change, another change (not explicitly mentioned in JIRA) was persisting and recognizing type names of properties declared in other classes.
It's not straightforward to craft a test case for you right now, but if you change the code to say `[anotherViewController isLoading]` and include the declaration of `AnotherViewController` class, that property type will be also recognized in cases when a typecasting is needed.
I do not demand that you cover this in the news update (may be non-trivial to explain), up to you.

P.P.S. It seems like most of the changes mentioned in the news update are indeed included in the update on the Alternative website.
If you find out anything that was not included (I did not include very recent changes made this week), let me a note.

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Medium
Configure