File: tsxExternalModuleEmit1.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (51 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download | duplicates (2)
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
=== tests/cases/conformance/jsx/react.d.ts ===

declare module 'react' {
	class Component<T, U> { }
>Component : Symbol(Component, Decl(react.d.ts, 1, 24))
>T : Symbol(T, Decl(react.d.ts, 2, 17))
>U : Symbol(U, Decl(react.d.ts, 2, 19))
}

=== tests/cases/conformance/jsx/app.tsx ===
import * as React from 'react';
>React : Symbol(React, Decl(app.tsx, 0, 6))

// Should see var button_1 = require('./button') here
import { Button } from './button';
>Button : Symbol(Button, Decl(app.tsx, 3, 8))

export class App extends React.Component<any, any> {
>App : Symbol(App, Decl(app.tsx, 3, 34))
>React.Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))
>React : Symbol(React, Decl(app.tsx, 0, 6))
>Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))

    render() {
>render : Symbol(App.render, Decl(app.tsx, 5, 52))

        return <Button />;
>Button : Symbol(Button, Decl(app.tsx, 3, 8))
    }

}

=== tests/cases/conformance/jsx/button.tsx ===
import * as React from 'react';
>React : Symbol(React, Decl(button.tsx, 0, 6))

export class Button extends React.Component<any, any> {
>Button : Symbol(Button, Decl(button.tsx, 0, 31))
>React.Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))
>React : Symbol(React, Decl(button.tsx, 0, 6))
>Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))

    render() {
>render : Symbol(Button.render, Decl(button.tsx, 2, 55))

        return <button>Some button</button>;
>button : Symbol(unknown)
>button : Symbol(unknown)
    }

}