File: tsxSpreadAttributesResolution1.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (32 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (5)
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
=== tests/cases/conformance/jsx/file.tsx ===
import React = require('react');
>React : Symbol(React, Decl(file.tsx, 0, 0))

class Poisoned extends React.Component<{}, {}> {
>Poisoned : Symbol(Poisoned, Decl(file.tsx, 0, 32))
>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))

    render() {
>render : Symbol(Poisoned.render, Decl(file.tsx, 2, 48))

        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))
    }
}

const obj = {};
>obj : Symbol(obj, Decl(file.tsx, 8, 5))

// OK
let p = <Poisoned {...obj} />;
>p : Symbol(p, Decl(file.tsx, 11, 3))
>Poisoned : Symbol(Poisoned, Decl(file.tsx, 0, 32))
>obj : Symbol(obj, Decl(file.tsx, 8, 5))

let y = <Poisoned />;
>y : Symbol(y, Decl(file.tsx, 12, 3))
>Poisoned : Symbol(Poisoned, Decl(file.tsx, 0, 32))