File: nodeModulesResolveJsonModule%28module%3Dnode16%29.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 (89 lines) | stat: -rw-r--r-- 3,119 bytes parent folder | download | duplicates (6)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
=== tests/cases/conformance/node/index.ts ===
import pkg from "./package.json"
>pkg : Symbol(pkg, Decl(index.ts, 0, 6))

export const name = pkg.name;
>name : Symbol(name, Decl(index.ts, 1, 12))
>pkg.name : Symbol("name", Decl(package.json, 0, 1))
>pkg : Symbol(pkg, Decl(index.ts, 0, 6))
>name : Symbol("name", Decl(package.json, 0, 1))

import * as ns from "./package.json";
>ns : Symbol(ns, Decl(index.ts, 2, 6))

export const thing = ns;
>thing : Symbol(thing, Decl(index.ts, 3, 12))
>ns : Symbol(ns, Decl(index.ts, 2, 6))

export const name2 = ns.default.name;
>name2 : Symbol(name2, Decl(index.ts, 4, 12))
>ns.default.name : Symbol("name", Decl(package.json, 0, 1))
>ns.default : Symbol("tests/cases/conformance/node/package")
>ns : Symbol(ns, Decl(index.ts, 2, 6))
>default : Symbol("tests/cases/conformance/node/package")
>name : Symbol("name", Decl(package.json, 0, 1))

=== tests/cases/conformance/node/index.cts ===
import pkg from "./package.json"
>pkg : Symbol(pkg, Decl(index.cts, 0, 6))

export const name = pkg.name;
>name : Symbol(name, Decl(index.cts, 1, 12))
>pkg.name : Symbol("name", Decl(package.json, 0, 1))
>pkg : Symbol(pkg, Decl(index.cts, 0, 6))
>name : Symbol("name", Decl(package.json, 0, 1))

import * as ns from "./package.json";
>ns : Symbol(ns, Decl(index.cts, 2, 6))

export const thing = ns;
>thing : Symbol(thing, Decl(index.cts, 3, 12))
>ns : Symbol(ns, Decl(index.cts, 2, 6))

export const name2 = ns.default.name;
>name2 : Symbol(name2, Decl(index.cts, 4, 12))
>ns.default.name : Symbol("name", Decl(package.json, 0, 1))
>ns.default : Symbol("tests/cases/conformance/node/package")
>ns : Symbol(ns, Decl(index.cts, 2, 6))
>default : Symbol("tests/cases/conformance/node/package")
>name : Symbol("name", Decl(package.json, 0, 1))

=== tests/cases/conformance/node/index.mts ===
import pkg from "./package.json"
>pkg : Symbol(pkg, Decl(index.mts, 0, 6))

export const name = pkg.name;
>name : Symbol(name, Decl(index.mts, 1, 12))
>pkg.name : Symbol("name", Decl(package.json, 0, 1))
>pkg : Symbol(pkg, Decl(index.mts, 0, 6))
>name : Symbol("name", Decl(package.json, 0, 1))

import * as ns from "./package.json";
>ns : Symbol(ns, Decl(index.mts, 2, 6))

export const thing = ns;
>thing : Symbol(thing, Decl(index.mts, 3, 12))
>ns : Symbol(ns, Decl(index.mts, 2, 6))

export const name2 = ns.default.name;
>name2 : Symbol(name2, Decl(index.mts, 4, 12))
>ns.default.name : Symbol("name", Decl(package.json, 0, 1))
>ns.default : Symbol("tests/cases/conformance/node/package")
>ns : Symbol(ns, Decl(index.mts, 2, 6))
>default : Symbol("tests/cases/conformance/node/package")
>name : Symbol("name", Decl(package.json, 0, 1))

=== tests/cases/conformance/node/package.json ===
{
    "name": "pkg",
>"name" : Symbol("name", Decl(package.json, 0, 1))

    "version": "0.0.1",
>"version" : Symbol("version", Decl(package.json, 1, 18))

    "type": "module",
>"type" : Symbol("type", Decl(package.json, 2, 23))

    "default": "misedirection"
>"default" : Symbol("default", Decl(package.json, 3, 21))
}