Skip to content

Commit b5b9f51

Browse files
Include symbol information in the typewriter baselines.
1 parent 592e231 commit b5b9f51

File tree

2,423 files changed

+86567
-86558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,423 files changed

+86567
-86558
lines changed

src/harness/typeWriter.ts

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
interface TypeWriterResult {
22
line: number;
3-
column: number;
43
syntaxKind: number;
54
sourceText: string;
65
type: string;
@@ -30,34 +29,42 @@ class TypeWriterWalker {
3029

3130
private visitNode(node: ts.Node): void {
3231
if (ts.isExpression(node) || node.kind === ts.SyntaxKind.Identifier) {
33-
this.log(node, this.getTypeOfNode(node));
32+
this.logTypeAndSymbol(node);
3433
}
3534

3635
ts.forEachChild(node, child => this.visitNode(child));
3736
}
3837

39-
private log(node: ts.Node, type: ts.Type): void {
38+
private logTypeAndSymbol(node: ts.Node): void {
4039
var actualPos = ts.skipTrivia(this.currentSourceFile.text, node.pos);
4140
var lineAndCharacter = this.currentSourceFile.getLineAndCharacterOfPosition(actualPos);
4241
var sourceText = ts.getTextOfNodeFromSourceText(this.currentSourceFile.text, node);
43-
44-
// If we got an unknown type, we temporarily want to fall back to just pretending the name
45-
// (source text) of the node is the type. This is to align with the old typeWriter to make
46-
// baseline comparisons easier. In the long term, we will want to just call typeToString
42+
43+
var type = this.checker.getTypeAtLocation(node);
44+
ts.Debug.assert(type !== undefined, "type doesn't exist");
45+
var symbol = this.checker.getSymbolAtLocation(node);
46+
47+
var typeString = this.checker.typeToString(type, node.parent, ts.TypeFormatFlags.NoTruncation);
48+
if (symbol) {
49+
var symbolString = "Symbol(" + this.checker.symbolToString(symbol, node.parent);
50+
if (symbol.declarations) {
51+
for (let declaration of symbol.declarations) {
52+
symbolString += ",";
53+
let declSourceFile = declaration.getSourceFile();
54+
let declLineAndCharacter = declSourceFile.getLineAndCharacterOfPosition(declaration.pos);
55+
symbolString += `Decl(${ ts.getBaseFileName(declSourceFile.fileName) },${ declLineAndCharacter.line },${ declLineAndCharacter.character })`
56+
}
57+
}
58+
symbolString += ")";
59+
60+
typeString += ", " + symbolString;
61+
}
62+
4763
this.results.push({
4864
line: lineAndCharacter.line,
49-
// todo(cyrusn): Not sure why column is one-based for type-writer. But I'm preserving
50-
// that behavior to prevent having a lot of baselines to fix up.
51-
column: lineAndCharacter.character + 1,
5265
syntaxKind: node.kind,
5366
sourceText: sourceText,
54-
type: this.checker.typeToString(type, node.parent, ts.TypeFormatFlags.NoTruncation | ts.TypeFormatFlags.WriteOwnNameForAnyLike)
67+
type: typeString
5568
});
5669
}
57-
58-
private getTypeOfNode(node: ts.Node): ts.Type {
59-
var type = this.checker.getTypeAtLocation(node);
60-
ts.Debug.assert(type !== undefined, "type doesn't exist");
61-
return type;
62-
}
6370
}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
=== tests/cases/compiler/2dArrays.ts ===
22
class Cell {
3-
>Cell : Cell
3+
>Cell : Cell, Symbol(Cell,Decl(2dArrays.ts,0,0))
44
}
55

66
class Ship {
7-
>Ship : Ship
7+
>Ship : Ship, Symbol(Ship,Decl(2dArrays.ts,1,1))
88

99
isSunk: boolean;
10-
>isSunk : boolean
10+
>isSunk : boolean, Symbol(isSunk,Decl(2dArrays.ts,3,12))
1111
}
1212

1313
class Board {
14-
>Board : Board
14+
>Board : Board, Symbol(Board,Decl(2dArrays.ts,5,1))
1515

1616
ships: Ship[];
17-
>ships : Ship[]
18-
>Ship : Ship
17+
>ships : Ship[], Symbol(ships,Decl(2dArrays.ts,7,13))
18+
>Ship : Ship, Symbol(Ship,Decl(2dArrays.ts,1,1))
1919

2020
cells: Cell[];
21-
>cells : Cell[]
22-
>Cell : Cell
21+
>cells : Cell[], Symbol(cells,Decl(2dArrays.ts,8,18))
22+
>Cell : Cell, Symbol(Cell,Decl(2dArrays.ts,0,0))
2323

2424
private allShipsSunk() {
25-
>allShipsSunk : () => boolean
25+
>allShipsSunk : () => boolean, Symbol(allShipsSunk,Decl(2dArrays.ts,9,18))
2626

2727
return this.ships.every(function (val) { return val.isSunk; });
2828
>this.ships.every(function (val) { return val.isSunk; }) : boolean
29-
>this.ships.every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean
30-
>this.ships : Ship[]
31-
>this : Board
32-
>ships : Ship[]
33-
>every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean
29+
>this.ships.every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean, Symbol(Array.every,Decl(lib.d.ts,1094,62))
30+
>this.ships : Ship[], Symbol(ships,Decl(2dArrays.ts,7,13))
31+
>this : Board, Symbol(Board,Decl(2dArrays.ts,5,1))
32+
>ships : Ship[], Symbol(ships,Decl(2dArrays.ts,7,13))
33+
>every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean, Symbol(Array.every,Decl(lib.d.ts,1094,62))
3434
>function (val) { return val.isSunk; } : (val: Ship) => boolean
35-
>val : Ship
36-
>val.isSunk : boolean
37-
>val : Ship
38-
>isSunk : boolean
35+
>val : Ship, Symbol(val,Decl(2dArrays.ts,12,42))
36+
>val.isSunk : boolean, Symbol(Ship.isSunk,Decl(2dArrays.ts,3,12))
37+
>val : Ship, Symbol(val,Decl(2dArrays.ts,12,42))
38+
>isSunk : boolean, Symbol(Ship.isSunk,Decl(2dArrays.ts,3,12))
3939
}
4040
}

tests/baselines/reference/APISample_compile.types

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -7,162 +7,162 @@
77
*/
88

99
declare var process: any;
10-
>process : any
10+
>process : any, Symbol(process,Decl(APISample_compile.ts,7,11))
1111

1212
declare var console: any;
13-
>console : any
13+
>console : any, Symbol(console,Decl(APISample_compile.ts,8,11))
1414

1515
declare var os: any;
16-
>os : any
16+
>os : any, Symbol(os,Decl(APISample_compile.ts,9,11))
1717

1818
import ts = require("typescript");
19-
>ts : typeof ts
19+
>ts : typeof ts, Symbol(ts,Decl(APISample_compile.ts,9,20))
2020

2121
export function compile(fileNames: string[], options: ts.CompilerOptions): void {
22-
>compile : (fileNames: string[], options: ts.CompilerOptions) => void
23-
>fileNames : string[]
24-
>options : ts.CompilerOptions
25-
>ts : unknown
26-
>CompilerOptions : ts.CompilerOptions
22+
>compile : (fileNames: string[], options: ts.CompilerOptions) => void, Symbol(compile,Decl(APISample_compile.ts,11,34))
23+
>fileNames : string[], Symbol(fileNames,Decl(APISample_compile.ts,13,24))
24+
>options : ts.CompilerOptions, Symbol(options,Decl(APISample_compile.ts,13,44))
25+
>ts : any, Symbol(ts,Decl(APISample_compile.ts,9,20))
26+
>CompilerOptions : ts.CompilerOptions, Symbol(ts.CompilerOptions,Decl(typescript.d.ts,1074,5))
2727

2828
var program = ts.createProgram(fileNames, options);
29-
>program : ts.Program
29+
>program : ts.Program, Symbol(program,Decl(APISample_compile.ts,14,7))
3030
>ts.createProgram(fileNames, options) : ts.Program
31-
>ts.createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program
32-
>ts : typeof ts
33-
>createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program
34-
>fileNames : string[]
35-
>options : ts.CompilerOptions
31+
>ts.createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram,Decl(typescript.d.ts,1201,113))
32+
>ts : typeof ts, Symbol(ts,Decl(APISample_compile.ts,9,20))
33+
>createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram,Decl(typescript.d.ts,1201,113))
34+
>fileNames : string[], Symbol(fileNames,Decl(APISample_compile.ts,13,24))
35+
>options : ts.CompilerOptions, Symbol(options,Decl(APISample_compile.ts,13,44))
3636

3737
var emitResult = program.emit();
38-
>emitResult : ts.EmitResult
38+
>emitResult : ts.EmitResult, Symbol(emitResult,Decl(APISample_compile.ts,15,7))
3939
>program.emit() : ts.EmitResult
40-
>program.emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult
41-
>program : ts.Program
42-
>emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult
40+
>program.emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult, Symbol(ts.Program.emit,Decl(typescript.d.ts,767,39))
41+
>program : ts.Program, Symbol(program,Decl(APISample_compile.ts,14,7))
42+
>emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult, Symbol(ts.Program.emit,Decl(typescript.d.ts,767,39))
4343

4444
var allDiagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
45-
>allDiagnostics : ts.Diagnostic[]
45+
>allDiagnostics : ts.Diagnostic[], Symbol(allDiagnostics,Decl(APISample_compile.ts,17,7))
4646
>ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics) : ts.Diagnostic[]
47-
>ts.getPreEmitDiagnostics(program).concat : { <U extends ts.Diagnostic[]>(...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }
47+
>ts.getPreEmitDiagnostics(program).concat : { <U extends ts.Diagnostic[]>(...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat,Decl(lib.d.ts,1025,13),Decl(lib.d.ts,1030,46))
4848
>ts.getPreEmitDiagnostics(program) : ts.Diagnostic[]
49-
>ts.getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[]
50-
>ts : typeof ts
51-
>getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[]
52-
>program : ts.Program
53-
>concat : { <U extends ts.Diagnostic[]>(...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }
54-
>emitResult.diagnostics : ts.Diagnostic[]
55-
>emitResult : ts.EmitResult
56-
>diagnostics : ts.Diagnostic[]
49+
>ts.getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics,Decl(typescript.d.ts,1199,98))
50+
>ts : typeof ts, Symbol(ts,Decl(APISample_compile.ts,9,20))
51+
>getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics,Decl(typescript.d.ts,1199,98))
52+
>program : ts.Program, Symbol(program,Decl(APISample_compile.ts,14,7))
53+
>concat : { <U extends ts.Diagnostic[]>(...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat,Decl(lib.d.ts,1025,13),Decl(lib.d.ts,1030,46))
54+
>emitResult.diagnostics : ts.Diagnostic[], Symbol(ts.EmitResult.diagnostics,Decl(typescript.d.ts,820,29))
55+
>emitResult : ts.EmitResult, Symbol(emitResult,Decl(APISample_compile.ts,15,7))
56+
>diagnostics : ts.Diagnostic[], Symbol(ts.EmitResult.diagnostics,Decl(typescript.d.ts,820,29))
5757

5858
allDiagnostics.forEach(diagnostic => {
5959
>allDiagnostics.forEach(diagnostic => { var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); }) : void
60-
>allDiagnostics.forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void
61-
>allDiagnostics : ts.Diagnostic[]
62-
>forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void
60+
>allDiagnostics.forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void, Symbol(Array.forEach,Decl(lib.d.ts,1108,95))
61+
>allDiagnostics : ts.Diagnostic[], Symbol(allDiagnostics,Decl(APISample_compile.ts,17,7))
62+
>forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void, Symbol(Array.forEach,Decl(lib.d.ts,1108,95))
6363
>diagnostic => { var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); } : (diagnostic: ts.Diagnostic) => void
64-
>diagnostic : ts.Diagnostic
64+
>diagnostic : ts.Diagnostic, Symbol(diagnostic,Decl(APISample_compile.ts,19,27))
6565

6666
var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
67-
>line : number
68-
>character : number
67+
>line : number, Symbol(line,Decl(APISample_compile.ts,20,13))
68+
>character : number, Symbol(character,Decl(APISample_compile.ts,20,19))
6969
>diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start) : ts.LineAndCharacter
70-
>diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter
71-
>diagnostic.file : ts.SourceFile
72-
>diagnostic : ts.Diagnostic
73-
>file : ts.SourceFile
74-
>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter
75-
>diagnostic.start : number
76-
>diagnostic : ts.Diagnostic
77-
>start : number
70+
>diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition,Decl(typescript.d.ts,1263,46))
71+
>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file,Decl(typescript.d.ts,1062,26))
72+
>diagnostic : ts.Diagnostic, Symbol(diagnostic,Decl(APISample_compile.ts,19,27))
73+
>file : ts.SourceFile, Symbol(ts.Diagnostic.file,Decl(typescript.d.ts,1062,26))
74+
>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition,Decl(typescript.d.ts,1263,46))
75+
>diagnostic.start : number, Symbol(ts.Diagnostic.start,Decl(typescript.d.ts,1063,25))
76+
>diagnostic : ts.Diagnostic, Symbol(diagnostic,Decl(APISample_compile.ts,19,27))
77+
>start : number, Symbol(ts.Diagnostic.start,Decl(typescript.d.ts,1063,25))
7878

7979
var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
80-
>message : string
80+
>message : string, Symbol(message,Decl(APISample_compile.ts,21,11))
8181
>ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n') : string
82-
>ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string
83-
>ts : typeof ts
84-
>flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string
85-
>diagnostic.messageText : string | ts.DiagnosticMessageChain
86-
>diagnostic : ts.Diagnostic
87-
>messageText : string | ts.DiagnosticMessageChain
82+
>ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText,Decl(typescript.d.ts,1200,67))
83+
>ts : typeof ts, Symbol(ts,Decl(APISample_compile.ts,9,20))
84+
>flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText,Decl(typescript.d.ts,1200,67))
85+
>diagnostic.messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText,Decl(typescript.d.ts,1065,23))
86+
>diagnostic : ts.Diagnostic, Symbol(diagnostic,Decl(APISample_compile.ts,19,27))
87+
>messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText,Decl(typescript.d.ts,1065,23))
8888
>'\n' : string
8989

9090
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
9191
>console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`) : any
9292
>console.log : any
93-
>console : any
93+
>console : any, Symbol(console,Decl(APISample_compile.ts,8,11))
9494
>log : any
9595
>`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}` : string
96-
>diagnostic.file.fileName : string
97-
>diagnostic.file : ts.SourceFile
98-
>diagnostic : ts.Diagnostic
99-
>file : ts.SourceFile
100-
>fileName : string
96+
>diagnostic.file.fileName : string, Symbol(ts.SourceFile.fileName,Decl(typescript.d.ts,743,29))
97+
>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file,Decl(typescript.d.ts,1062,26))
98+
>diagnostic : ts.Diagnostic, Symbol(diagnostic,Decl(APISample_compile.ts,19,27))
99+
>file : ts.SourceFile, Symbol(ts.Diagnostic.file,Decl(typescript.d.ts,1062,26))
100+
>fileName : string, Symbol(ts.SourceFile.fileName,Decl(typescript.d.ts,743,29))
101101
>line + 1 : number
102-
>line : number
102+
>line : number, Symbol(line,Decl(APISample_compile.ts,20,13))
103103
>1 : number
104104
>character + 1 : number
105-
>character : number
105+
>character : number, Symbol(character,Decl(APISample_compile.ts,20,19))
106106
>1 : number
107-
>message : string
107+
>message : string, Symbol(message,Decl(APISample_compile.ts,21,11))
108108

109109
});
110110

111111
var exitCode = emitResult.emitSkipped ? 1 : 0;
112-
>exitCode : number
112+
>exitCode : number, Symbol(exitCode,Decl(APISample_compile.ts,25,7))
113113
>emitResult.emitSkipped ? 1 : 0 : number
114-
>emitResult.emitSkipped : boolean
115-
>emitResult : ts.EmitResult
116-
>emitSkipped : boolean
114+
>emitResult.emitSkipped : boolean, Symbol(ts.EmitResult.emitSkipped,Decl(typescript.d.ts,819,26))
115+
>emitResult : ts.EmitResult, Symbol(emitResult,Decl(APISample_compile.ts,15,7))
116+
>emitSkipped : boolean, Symbol(ts.EmitResult.emitSkipped,Decl(typescript.d.ts,819,26))
117117
>1 : number
118118
>0 : number
119119

120120
console.log(`Process exiting with code '${exitCode}'.`);
121121
>console.log(`Process exiting with code '${exitCode}'.`) : any
122122
>console.log : any
123-
>console : any
123+
>console : any, Symbol(console,Decl(APISample_compile.ts,8,11))
124124
>log : any
125125
>`Process exiting with code '${exitCode}'.` : string
126-
>exitCode : number
126+
>exitCode : number, Symbol(exitCode,Decl(APISample_compile.ts,25,7))
127127

128128
process.exit(exitCode);
129129
>process.exit(exitCode) : any
130130
>process.exit : any
131-
>process : any
131+
>process : any, Symbol(process,Decl(APISample_compile.ts,7,11))
132132
>exit : any
133-
>exitCode : number
133+
>exitCode : number, Symbol(exitCode,Decl(APISample_compile.ts,25,7))
134134
}
135135

136136
compile(process.argv.slice(2), {
137137
>compile(process.argv.slice(2), { noEmitOnError: true, noImplicitAny: true, target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS}) : void
138-
>compile : (fileNames: string[], options: ts.CompilerOptions) => void
138+
>compile : (fileNames: string[], options: ts.CompilerOptions) => void, Symbol(compile,Decl(APISample_compile.ts,11,34))
139139
>process.argv.slice(2) : any
140140
>process.argv.slice : any
141141
>process.argv : any
142-
>process : any
142+
>process : any, Symbol(process,Decl(APISample_compile.ts,7,11))
143143
>argv : any
144144
>slice : any
145145
>2 : number
146146
>{ noEmitOnError: true, noImplicitAny: true, target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS} : { [x: string]: boolean | ts.ScriptTarget | ts.ModuleKind; noEmitOnError: boolean; noImplicitAny: boolean; target: ts.ScriptTarget; module: ts.ModuleKind; }
147147

148148
noEmitOnError: true, noImplicitAny: true,
149-
>noEmitOnError : boolean
149+
>noEmitOnError : boolean, Symbol(noEmitOnError,Decl(APISample_compile.ts,30,32))
150150
>true : boolean
151-
>noImplicitAny : boolean
151+
>noImplicitAny : boolean, Symbol(noImplicitAny,Decl(APISample_compile.ts,31,24))
152152
>true : boolean
153153

154154
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
155-
>target : ts.ScriptTarget
156-
>ts.ScriptTarget.ES5 : ts.ScriptTarget
157-
>ts.ScriptTarget : typeof ts.ScriptTarget
158-
>ts : typeof ts
159-
>ScriptTarget : typeof ts.ScriptTarget
160-
>ES5 : ts.ScriptTarget
161-
>module : ts.ModuleKind
162-
>ts.ModuleKind.CommonJS : ts.ModuleKind
163-
>ts.ModuleKind : typeof ts.ModuleKind
164-
>ts : typeof ts
165-
>ModuleKind : typeof ts.ModuleKind
166-
>CommonJS : ts.ModuleKind
155+
>target : ts.ScriptTarget, Symbol(target,Decl(APISample_compile.ts,31,45))
156+
>ts.ScriptTarget.ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5,Decl(typescript.d.ts,1117,16))
157+
>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget,Decl(typescript.d.ts,1115,5))
158+
>ts : typeof ts, Symbol(ts,Decl(APISample_compile.ts,9,20))
159+
>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget,Decl(typescript.d.ts,1115,5))
160+
>ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5,Decl(typescript.d.ts,1117,16))
161+
>module : ts.ModuleKind, Symbol(module,Decl(APISample_compile.ts,32,32))
162+
>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS,Decl(typescript.d.ts,1108,17))
163+
>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind,Decl(typescript.d.ts,1106,5))
164+
>ts : typeof ts, Symbol(ts,Decl(APISample_compile.ts,9,20))
165+
>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind,Decl(typescript.d.ts,1106,5))
166+
>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS,Decl(typescript.d.ts,1108,17))
167167

168168
});

0 commit comments

Comments
 (0)