DescriptionCompute distinguishing argument index
The "distinguishing argument index" is the next part of the overload
resolution algorithm.
In overload resolution, you first distinguish by number of arguments,
then distinguish by checking the type of a single argument at some index;
this CL adds the index computation.
In practice it's just the first index where types differ,
but there are additional conditions to check.
http://heycam.github.io/webidl/#dfn-distinguishing-argument-index
Next CL will add the very lengthy "distinguishability classes".
After that we'll finally be ready to start changing the code generation,
based first on number of arguments, secondly on type!
Also:
* Some refactoring
* Fixes some tests that were invalid overloads, and were caught
by the new checks!
(No invalid overloads in actual IDLs, but test cases were too simple.)
R=haraken
BUG=293561
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173741
Patch Set 1 #Patch Set 2 : Tweak #Patch Set 3 : Comments #Patch Set 4 : Alpha #
Total comments: 2
Patch Set 5 : Fix exception catching #
Total comments: 2
Patch Set 6 : Simplify index computation #
Messages
Total messages: 8 (0 generated)
|