Missing parentheses in metadata translations

Description

✔️ SKTGraphic.swift:

converts to:

... but should be:

Environment

None

Activity

Show:
Alex Petuschak
May 23, 2018, 3:53 PM
Edited

✔️ Related (SKSTableView project):

http://take.ms/ZVDAn

Alex Petuschak
February 21, 2019, 3:41 PM
Edited

✔️ A related case is functions mapped to a method call.
See the following note in FunctionMappings.def:

We need to support optional parentheses around {0}, probably using a special syntax e.g. `<<0>>`.

Alex Petuschak
December 12, 2019, 4:48 PM
Edited

✔️ Related: after the latest method mapping changes, I wanted to add these mappings, but they increase the number of errors in the Sketch project due to missing parentheses: https://cl.ly/17f6072d3f98

See ShouldUnwrapOptionalPropertyInOptionalMethodChain test that should be fixed / addressed.

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

High
Configure