File: es3defaultAliasIsQuoted.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 (29 lines) | stat: -rw-r--r-- 1,333 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
=== tests/cases/compiler/es3defaultAliasQuoted_file0.ts ===
export class Foo {
>Foo : Symbol(Foo, Decl(es3defaultAliasQuoted_file0.ts, 0, 0))

    static CONSTANT = "Foo";
>CONSTANT : Symbol(Foo.CONSTANT, Decl(es3defaultAliasQuoted_file0.ts, 0, 18))
}

export default function assert(value: boolean) {
>assert : Symbol(assert, Decl(es3defaultAliasQuoted_file0.ts, 2, 1))
>value : Symbol(value, Decl(es3defaultAliasQuoted_file0.ts, 4, 31))

    if (!value) throw new Error("Assertion failed!");
>value : Symbol(value, Decl(es3defaultAliasQuoted_file0.ts, 4, 31))
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
}

=== tests/cases/compiler/es3defaultAliasQuoted_file1.ts ===
import {Foo, default as assert} from "./es3defaultAliasQuoted_file0";
>Foo : Symbol(Foo, Decl(es3defaultAliasQuoted_file1.ts, 0, 8))
>default : Symbol(assert, Decl(es3defaultAliasQuoted_file0.ts, 2, 1))
>assert : Symbol(assert, Decl(es3defaultAliasQuoted_file1.ts, 0, 12))

assert(Foo.CONSTANT === "Foo");
>assert : Symbol(assert, Decl(es3defaultAliasQuoted_file1.ts, 0, 12))
>Foo.CONSTANT : Symbol(Foo.CONSTANT, Decl(es3defaultAliasQuoted_file0.ts, 0, 18))
>Foo : Symbol(Foo, Decl(es3defaultAliasQuoted_file1.ts, 0, 8))
>CONSTANT : Symbol(Foo.CONSTANT, Decl(es3defaultAliasQuoted_file0.ts, 0, 18))