Bug 58553 - improve-task-t-return-type-description tool incorrectly types Task from completion handler arguments
Summary: improve-task-t-return-type-description tool incorrectly types Task from compl...
Status: CONFIRMED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 10.99 (xcode9)
Hardware: Macintosh All
: Normal enhancement
Target Milestone: Future Cycle (TBD)
Assignee: Manuel de la Peña
URL:
Depends on:
Blocks:
 
Reported: 2017-08-02 19:19 UTC by Mike Norman
Modified: 2017-08-04 20:55 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Mike Norman 2017-08-02 19:19:14 UTC
I found the following in ./en/MonoTouch.WebKit/WKContentRuleListStore.xml:

<para class="improve-task-t-return-type-description">A task that represents the asynchronous CompileContentRuleList operation.  The value of the TResult parameter is of type MonoTouch.WebKit.WKContentRuleList,MonoTouch.Foundation.NSError.</para>

The specified "type" is the argument list for the completion handler in the non-Async version of the method. There is not a simple rule that generates the Task return type from the completion handler. If these descriptions are necessary, please use the actual Task type from the Async method (System.Threading.Tasks.Task&lt;MonoTouch.WebKit.WKContentRuleList&gt;, in this case) to fill out this field, instead.
Comment 1 Mike Norman 2017-08-02 19:27:08 UTC
While a text search will yield the method, I found it in CompileContentRuleListAsync()

Note You need to log in before you can comment on or make changes to this bug.