Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, r=jdm

Fixed compile error in generated code, when webidl constructors have same number of args

One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-03-04 15:14:20 +05:30
commit c37a086660
4 changed files with 25 additions and 5 deletions

View file

@ -69,7 +69,9 @@ dictionary TestDictionaryDefaults {
object? nullableObjectValue = null;
};
[Constructor]
[Constructor,
Constructor(sequence<unrestricted double> numberSequence),
Constructor(unrestricted double num)]
interface TestBinding {
attribute boolean booleanAttribute;
attribute byte byteAttribute;