184e2a8b4c
This is complicated by the fact that the normal factory method for creating Invocation objects references the arguments descriptor to determine how many type arguments are passed. This doesn't work for partially instantiated closures, because the arguments descriptor will say "0" type arguments even when there may be delayed type arguments attached to the closure from partial instantiation. The arguments descriptor can't be modified, so we have a new factory method which takes the number of delayed type arguments directly. Change-Id: Ic9a35a482b3b7ef80564e674cc6207873e255111 Reviewed-on: https://dart-review.googlesource.com/54245 Commit-Queue: Samir Jindel <sjindel@google.com> Reviewed-by: Régis Crelier <regis@google.com>