testing/web-platform/tests/resources/webidl2/test/syntax/json/record.json
author Geoffrey Sneddon <me@gsnedders.com>
Tue, 01 May 2018 15:02:42 +0000
changeset 472676 21a5a8d11df33df8681ed3468f6b67b11e411d66
parent 448379 6a65a1dcc6447e76191a24ea679c1927d862fefa
child 483640 5b8090a38193f68cdcb5ec3c4789838f8e0de363
permissions -rw-r--r--
Bug 1457047 [wpt PR 10645] - Update webidl2.js to v10.2.1, a=testonly Automatic update from web-platform-testsMerge pull request #10645 from csnardi/update-webidl2 Update webidl2.js to v10.2.1 -- wpt-commits: 9f5c74dc3a633802acaa93ac325b11fff8c739f1 wpt-pr: 10645

[
    {
        "type": "interface",
        "name": "Foo",
        "partial": false,
        "members": [
            {
                "type": "operation",
                "getter": false,
                "setter": false,
                "deleter": false,
                "static": false,
                "stringifier": false,
                "idlType": {
                    "type": "return-type",
                    "sequence": false,
                    "generic": null,
                    "nullable": false,
                    "union": false,
                    "idlType": "void"
                },
                "name": "foo",
                "arguments": [
                    {
                        "optional": false,
                        "variadic": false,
                        "extAttrs": [],
                        "idlType": {
                            "type": "argument-type",
                            "sequence": true,
                            "generic": "sequence",
                            "nullable": false,
                            "union": false,
                            "idlType": {
                                "type": "argument-type",
                                "sequence": false,
                                "generic": "record",
                                "nullable": false,
                                "union": false,
                                "idlType": [
                                    {
                                        "type": "argument-type",
                                        "sequence": false,
                                        "generic": null,
                                        "nullable": false,
                                        "union": false,
                                        "idlType": "ByteString"
                                    },
                                    {
                                        "type": "argument-type",
                                        "sequence": false,
                                        "generic": null,
                                        "nullable": false,
                                        "union": false,
                                        "idlType": "any"
                                    }
                                ]
                            }
                        },
                        "name": "param"
                    }
                ],
                "extAttrs": []
            },
            {
                "type": "operation",
                "getter": false,
                "setter": false,
                "deleter": false,
                "static": false,
                "stringifier": false,
                "idlType": {
                    "type": "return-type",
                    "sequence": false,
                    "generic": "record",
                    "nullable": false,
                    "union": false,
                    "idlType": [
                        {
                            "type": "return-type",
                            "sequence": false,
                            "generic": null,
                            "nullable": false,
                            "union": false,
                            "idlType": "DOMString"
                        },
                        {
                            "type": "return-type",
                            "sequence": false,
                            "generic": null,
                            "nullable": true,
                            "union": true,
                            "idlType": [
                                {
                                    "type": null,
                                    "sequence": false,
                                    "generic": null,
                                    "nullable": false,
                                    "union": false,
                                    "idlType": "float"
                                },
                                {
                                    "type": null,
                                    "sequence": false,
                                    "generic": null,
                                    "nullable": false,
                                    "union": false,
                                    "idlType": "DOMString"
                                }
                            ]
                        }
                    ]
                },
                "name": "bar",
                "arguments": [],
                "extAttrs": []
            },
            {
                "type": "operation",
                "getter": false,
                "setter": false,
                "deleter": false,
                "static": false,
                "stringifier": false,
                "idlType": {
                    "type": "return-type",
                    "sequence": false,
                    "generic": null,
                    "nullable": false,
                    "union": false,
                    "idlType": "record"
                },
                "name": "baz",
                "arguments": [],
                "extAttrs": []
            }
        ],
        "inheritance": null,
        "extAttrs": [
            {
                "name": "Constructor",
                "arguments": [
                    {
                        "optional": false,
                        "variadic": false,
                        "extAttrs": [],
                        "idlType": {
                            "type": "argument-type",
                            "sequence": false,
                            "generic": "record",
                            "nullable": false,
                            "union": false,
                            "idlType": [
                                {
                                    "type": "argument-type",
                                    "sequence": false,
                                    "generic": null,
                                    "nullable": false,
                                    "union": false,
                                    "idlType": "USVString"
                                },
                                {
                                    "type": "argument-type",
                                    "sequence": false,
                                    "generic": null,
                                    "nullable": false,
                                    "union": false,
                                    "idlType": "USVString"
                                }
                            ]
                        },
                        "name": "init"
                    }
                ],
                "type": "extended-attribute",
                "rhs": null
            }
        ]
    },
    {
        "type": "interface",
        "name": "Bar",
        "partial": false,
        "members": [
            {
                "type": "operation",
                "getter": false,
                "setter": false,
                "deleter": false,
                "static": false,
                "stringifier": false,
                "idlType": {
                    "type": "return-type",
                    "sequence": false,
                    "generic": "record",
                    "nullable": false,
                    "union": false,
                    "idlType": [
                        {
                            "type": "return-type",
                            "sequence": false,
                            "generic": null,
                            "nullable": false,
                            "union": false,
                            "idlType": "DOMString"
                        },
                        {
                            "type": "return-type",
                            "sequence": false,
                            "generic": null,
                            "nullable": false,
                            "union": false,
                            "idlType": "float",
                            "extAttrs": [
                                {
                                    "name": "XAttr",
                                    "arguments": null,
                                    "type": "extended-attribute",
                                    "rhs": null
                                }
                            ]
                        }
                    ]
                },
                "name": "bar",
                "arguments": [],
                "extAttrs": []
            }
        ],
        "inheritance": null,
        "extAttrs": []
    }
]