File: tsxDefaultAttributesResolution3.symbols

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (34 lines) | stat: -rw-r--r-- 1,122 bytes parent folder | download
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
//// [tests/cases/conformance/jsx/tsxDefaultAttributesResolution3.tsx] ////

=== file.tsx ===
import React = require('react');
>React : Symbol(React, Decl(file.tsx, 0, 0))

interface Prop {
>Prop : Symbol(Prop, Decl(file.tsx, 0, 32))

    x: false;
>x : Symbol(Prop.x, Decl(file.tsx, 2, 16))
}
class Poisoned extends React.Component<Prop, {}> {
>Poisoned : Symbol(Poisoned, Decl(file.tsx, 4, 1))
>React.Component : Symbol(React.Component, Decl(react.d.ts, 158, 55), Decl(react.d.ts, 161, 66))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>Component : Symbol(React.Component, Decl(react.d.ts, 158, 55), Decl(react.d.ts, 161, 66))
>Prop : Symbol(Prop, Decl(file.tsx, 0, 32))

    render() {
>render : Symbol(Poisoned.render, Decl(file.tsx, 5, 50))

        return <div>Hello</div>;
>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2400, 45))
>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2400, 45))
    }
}

// Error
let p = <Poisoned x/>;
>p : Symbol(p, Decl(file.tsx, 12, 3))
>Poisoned : Symbol(Poisoned, Decl(file.tsx, 4, 1))
>x : Symbol(x, Decl(file.tsx, 12, 17))