summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml
blob: 22d9fdd25d67c61cdab29f64c927334289d00454 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
  <webidl>interface A {
};
interface B {
};
interface C {
  void f(<ref>A</ref>? x);
  void f(<ref>B</ref>? x);

};</webidl>
  <Interface name="A" id="::A">
    <webidl>interface A {
};</webidl>
  </Interface>
  <Interface name="B" id="::B">
    <webidl>interface B {
};</webidl>
  </Interface>
  <Interface name="C" id="::C">
    <webidl>interface C {
  void f(<ref>A</ref>? x);
  void f(<ref>B</ref>? x);

};</webidl>
    <Operation name="f" id="::C::f">
      <webidl>  void f(<ref>A</ref>? x);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="x">
          <Type name="A" nullable="nullable"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation name="f" id="::C::f">
      <webidl>  void f(<ref>B</ref>? x);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="x">
          <Type name="B" nullable="nullable"/>
        </Argument>
      </ArgumentList>
    </Operation>
  </Interface>
</Definitions>