summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/xml/indexed-properties.widlprocxml
blob: fb83621b60d360d05285f0e9ffd4ed8f83c30199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
  <webidl>interface OrderedMap {
  readonly attribute unsigned long size;

  getter any getByIndex(unsigned long index);
  setter void setByIndex(unsigned long index, any value);
  deleter void removeByIndex(unsigned long index);

  getter any get(DOMString name);
  setter creator void set(DOMString name, any value);
  deleter void remove(DOMString name);
};</webidl>
  <Interface name="OrderedMap" id="::OrderedMap">
    <webidl>interface OrderedMap {
  readonly attribute unsigned long size;

  getter any getByIndex(unsigned long index);
  setter void setByIndex(unsigned long index, any value);
  deleter void removeByIndex(unsigned long index);

  getter any get(DOMString name);
  setter creator void set(DOMString name, any value);
  deleter void remove(DOMString name);
};</webidl>
    <Attribute readonly="readonly" name="size" id="::OrderedMap::size">
      <webidl>  readonly attribute unsigned long size;</webidl>
      <Type type="unsigned long"/>
    </Attribute>
    <Operation getter="getter" name="getByIndex" id="::OrderedMap::getByIndex">
      <webidl>  getter any getByIndex(unsigned long index);</webidl>
      <Type type="any"/>
      <ArgumentList>
        <Argument name="index">
          <Type type="unsigned long"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation setter="setter" name="setByIndex" id="::OrderedMap::setByIndex">
      <webidl>  setter void setByIndex(unsigned long index, any value);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="index">
          <Type type="unsigned long"/>
        </Argument>
        <Argument name="value">
          <Type type="any"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation deleter="deleter" name="removeByIndex" id="::OrderedMap::removeByIndex">
      <webidl>  deleter void removeByIndex(unsigned long index);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="index">
          <Type type="unsigned long"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation getter="getter" name="get" id="::OrderedMap::get">
      <webidl>  getter any get(DOMString name);</webidl>
      <Type type="any"/>
      <ArgumentList>
        <Argument name="name">
          <Type type="DOMString"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation setter="setter" creator="creator" name="set" id="::OrderedMap::set">
      <webidl>  setter creator void set(DOMString name, any value);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="name">
          <Type type="DOMString"/>
        </Argument>
        <Argument name="value">
          <Type type="any"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation deleter="deleter" name="remove" id="::OrderedMap::remove">
      <webidl>  deleter void remove(DOMString name);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="name">
          <Type type="DOMString"/>
        </Argument>
      </ArgumentList>
    </Operation>
  </Interface>
</Definitions>