Include resolution trace
This commit is contained in:
parent
8e679b7021
commit
919e31a264
|
@ -1,27 +1,42 @@
|
|||
//// [tests/cases/compiler/relativeModuleWithoutSlash.ts] ////
|
||||
|
||||
//// [index.ts]
|
||||
export default 0;
|
||||
|
||||
//// [index.ts]
|
||||
export default 1;
|
||||
|
||||
//// [a.ts]
|
||||
import parent from "..";
|
||||
import here from ".";
|
||||
parent + here;
|
||||
|
||||
export default { a: 0 };
|
||||
|
||||
//// [index.ts]
|
||||
export default { aIndex: 0 };
|
||||
|
||||
//// [test.ts]
|
||||
import a from ".";
|
||||
import aIndex from "./";
|
||||
a.a;
|
||||
aIndex.a; //aIndex.aIndex; See GH#9690
|
||||
|
||||
//// [test.ts]
|
||||
import a from "..";
|
||||
import aIndex from "../";
|
||||
a.a;
|
||||
aIndex.a; //aIndex.aIndex;
|
||||
|
||||
|
||||
//// [index.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports["default"] = 0;
|
||||
//// [index.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports["default"] = 1;
|
||||
//// [a.js]
|
||||
"use strict";
|
||||
var __1 = require("..");
|
||||
exports.__esModule = true;
|
||||
exports["default"] = { a: 0 };
|
||||
//// [index.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports["default"] = { aIndex: 0 };
|
||||
//// [test.js]
|
||||
"use strict";
|
||||
var _1 = require(".");
|
||||
__1["default"] + _1["default"];
|
||||
var _2 = require("./");
|
||||
_1["default"].a;
|
||||
_2["default"].a; //aIndex.aIndex; See GH#9690
|
||||
//// [test.js]
|
||||
"use strict";
|
||||
var __1 = require("..");
|
||||
var _1 = require("../");
|
||||
__1["default"].a;
|
||||
_1["default"].a; //aIndex.aIndex;
|
||||
|
|
|
@ -1,17 +1,43 @@
|
|||
=== tests/cases/compiler/index.ts ===
|
||||
export default 0;
|
||||
No type information for this code.
|
||||
No type information for this code.=== tests/cases/compiler/a/index.ts ===
|
||||
export default 1;
|
||||
No type information for this code.
|
||||
No type information for this code.=== tests/cases/compiler/a/a.ts ===
|
||||
import parent from "..";
|
||||
>parent : Symbol(parent, Decl(a.ts, 0, 6))
|
||||
=== tests/cases/compiler/a.ts ===
|
||||
|
||||
import here from ".";
|
||||
>here : Symbol(here, Decl(a.ts, 1, 6))
|
||||
export default { a: 0 };
|
||||
>a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
|
||||
parent + here;
|
||||
>parent : Symbol(parent, Decl(a.ts, 0, 6))
|
||||
>here : Symbol(here, Decl(a.ts, 1, 6))
|
||||
=== tests/cases/compiler/a/index.ts ===
|
||||
export default { aIndex: 0 };
|
||||
>aIndex : Symbol(aIndex, Decl(index.ts, 0, 16))
|
||||
|
||||
=== tests/cases/compiler/a/test.ts ===
|
||||
import a from ".";
|
||||
>a : Symbol(a, Decl(test.ts, 0, 6))
|
||||
|
||||
import aIndex from "./";
|
||||
>aIndex : Symbol(aIndex, Decl(test.ts, 1, 6))
|
||||
|
||||
a.a;
|
||||
>a.a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
>a : Symbol(a, Decl(test.ts, 0, 6))
|
||||
>a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
|
||||
aIndex.a; //aIndex.aIndex; See GH#9690
|
||||
>aIndex.a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
>aIndex : Symbol(aIndex, Decl(test.ts, 1, 6))
|
||||
>a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
|
||||
=== tests/cases/compiler/a/b/test.ts ===
|
||||
import a from "..";
|
||||
>a : Symbol(a, Decl(test.ts, 0, 6))
|
||||
|
||||
import aIndex from "../";
|
||||
>aIndex : Symbol(aIndex, Decl(test.ts, 1, 6))
|
||||
|
||||
a.a;
|
||||
>a.a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
>a : Symbol(a, Decl(test.ts, 0, 6))
|
||||
>a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
|
||||
aIndex.a; //aIndex.aIndex;
|
||||
>aIndex.a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
>aIndex : Symbol(aIndex, Decl(test.ts, 1, 6))
|
||||
>a : Symbol(a, Decl(a.ts, 1, 16))
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
[
|
||||
"======== Resolving module '.' from 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a'.",
|
||||
"File 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts' exist - use it as a name resolution result.",
|
||||
"Resolving real path for 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts', result 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'",
|
||||
"======== Module name '.' was successfully resolved to 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'. ========",
|
||||
"======== Resolving module './' from 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a'.",
|
||||
"File 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts' exist - use it as a name resolution result.",
|
||||
"Resolving real path for 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts', result 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'",
|
||||
"======== Module name './' was successfully resolved to 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'. ========",
|
||||
"======== Resolving module '..' from 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a/b/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a'.",
|
||||
"File 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts' exist - use it as a name resolution result.",
|
||||
"Resolving real path for 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts', result 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'",
|
||||
"======== Module name '..' was successfully resolved to 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'. ========",
|
||||
"======== Resolving module '../' from 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a/b/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a'.",
|
||||
"File 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts' exist - use it as a name resolution result.",
|
||||
"Resolving real path for 'C:/Users/anhans/work/TypeScript/tests/cases/compiler/a.ts', result 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'",
|
||||
"======== Module name '../' was successfully resolved to 'c:/users/anhans/work/typescript/tests/cases/compiler/a.ts'. ========"
|
||||
]
|
|
@ -1,18 +1,47 @@
|
|||
=== tests/cases/compiler/index.ts ===
|
||||
export default 0;
|
||||
No type information for this code.
|
||||
No type information for this code.=== tests/cases/compiler/a/index.ts ===
|
||||
export default 1;
|
||||
No type information for this code.
|
||||
No type information for this code.=== tests/cases/compiler/a/a.ts ===
|
||||
import parent from "..";
|
||||
>parent : number
|
||||
=== tests/cases/compiler/a.ts ===
|
||||
|
||||
import here from ".";
|
||||
>here : number
|
||||
export default { a: 0 };
|
||||
>{ a: 0 } : { a: number; }
|
||||
>a : number
|
||||
>0 : number
|
||||
|
||||
parent + here;
|
||||
>parent + here : number
|
||||
>parent : number
|
||||
>here : number
|
||||
=== tests/cases/compiler/a/index.ts ===
|
||||
export default { aIndex: 0 };
|
||||
>{ aIndex: 0 } : { aIndex: number; }
|
||||
>aIndex : number
|
||||
>0 : number
|
||||
|
||||
=== tests/cases/compiler/a/test.ts ===
|
||||
import a from ".";
|
||||
>a : { a: number; }
|
||||
|
||||
import aIndex from "./";
|
||||
>aIndex : { a: number; }
|
||||
|
||||
a.a;
|
||||
>a.a : number
|
||||
>a : { a: number; }
|
||||
>a : number
|
||||
|
||||
aIndex.a; //aIndex.aIndex; See GH#9690
|
||||
>aIndex.a : number
|
||||
>aIndex : { a: number; }
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/a/b/test.ts ===
|
||||
import a from "..";
|
||||
>a : { a: number; }
|
||||
|
||||
import aIndex from "../";
|
||||
>aIndex : { a: number; }
|
||||
|
||||
a.a;
|
||||
>a.a : number
|
||||
>a : { a: number; }
|
||||
>a : number
|
||||
|
||||
aIndex.a; //aIndex.aIndex;
|
||||
>aIndex.a : number
|
||||
>aIndex : { a: number; }
|
||||
>a : number
|
||||
|
||||
|
|
|
@ -1,10 +1,20 @@
|
|||
// @Filename: index.ts
|
||||
export default 0;
|
||||
// @traceResolution: true
|
||||
// @moduleResolution: node
|
||||
|
||||
// @Filename: a.ts
|
||||
export default { a: 0 };
|
||||
|
||||
// @Filename: a/index.ts
|
||||
export default 1;
|
||||
export default { aIndex: 0 };
|
||||
|
||||
// @Filename: a/a.ts
|
||||
import parent from "..";
|
||||
import here from ".";
|
||||
parent + here;
|
||||
// @Filename: a/test.ts
|
||||
import a from ".";
|
||||
import aIndex from "./";
|
||||
a.a;
|
||||
aIndex.a; //aIndex.aIndex; See GH#9690
|
||||
|
||||
// @Filename: a/b/test.ts
|
||||
import a from "..";
|
||||
import aIndex from "../";
|
||||
a.a;
|
||||
aIndex.a; //aIndex.aIndex;
|
||||
|
|
Loading…
Reference in a new issue