File: es6ImportDefaultBindingAmd.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (18 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
=== tests/cases/compiler/es6ImportDefaultBindingAmd_0.ts ===
var a = 10;
>a : Symbol(a, Decl(es6ImportDefaultBindingAmd_0.ts, 0, 3))

export default a;
>a : Symbol(a, Decl(es6ImportDefaultBindingAmd_0.ts, 0, 3))

=== tests/cases/compiler/es6ImportDefaultBindingAmd_1.ts ===
import defaultBinding from "es6ImportDefaultBindingAmd_0";
>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingAmd_1.ts, 0, 6))

var x = defaultBinding;
>x : Symbol(x, Decl(es6ImportDefaultBindingAmd_1.ts, 1, 3))
>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingAmd_1.ts, 0, 6))

import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used
>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingAmd_1.ts, 2, 6))