Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc20bb1

Browse filesBrowse files
committed
Baseline and harness changes
1 parent b73558d commit cc20bb1
Copy full SHA for cc20bb1

1,278 files changed

+10,930-40,149Lines changed: 10930 additions & 40149 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/harness/compilerRunner.ts‎

Copy file name to clipboardExpand all lines: src/harness/compilerRunner.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class CompilerBaselineRunner extends RunnerBase {
307307
allFiles.forEach(file => {
308308
var codeLines = file.content.split('\n');
309309
walker.getTypes(file.unitName).forEach(result => {
310-
var formattedLine = result.identifierName + " : " + result.type;
310+
var formattedLine = result.identifierName.replace(/\r?\n/g, "") + " : " + result.type;
311311
if (!typeMap[file.unitName]) {
312312
typeMap[file.unitName] = {};
313313
}
Collapse file

‎src/harness/typeWriter.ts‎

Copy file name to clipboardExpand all lines: src/harness/typeWriter.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TypeWriterWalker {
2828
// TODO: Ideally we should log all expressions, but to compare to the
2929
// old typeWriter baselines, suppress tokens
3030
case ts.SyntaxKind.ThisKeyword:
31-
case ts.SyntaxKind.RegularExpressionLiteral:
31+
// case ts.SyntaxKind.RegularExpressionLiteral:
3232
case ts.SyntaxKind.ArrayLiteral:
3333
case ts.SyntaxKind.ObjectLiteral:
3434
case ts.SyntaxKind.PropertyAccess:
@@ -87,7 +87,7 @@ class TypeWriterWalker {
8787
column: lineAndCharacter.character,
8888
syntaxKind: ts.SyntaxKind[node.kind],
8989
identifierName: sourceText,
90-
type: isUnknownType ? sourceText : this.checker.typeToString(type)
90+
type: isUnknownType ? sourceText : this.checker.typeToString(type, undefined, ts.TypeFormatFlags.UseTypeOfFunction)
9191
});
9292
}
9393

Collapse file

‎…erence/parserX_ArrowFunction1.errors.txt‎ ‎…ines/reference/ArrowFunction1.errors.txt‎tests/baselines/reference/parserX_ArrowFunction1.errors.txt renamed to tests/baselines/reference/ArrowFunction1.errors.txt tests/baselines/reference/parserX_ArrowFunction1.errors.txt renamed to tests/baselines/reference/ArrowFunction1.errors.txt

Copy file name to clipboardExpand all lines: tests/baselines/reference/ArrowFunction1.errors.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction1.ts (1 errors) ====
1+
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction1.ts (1 errors) ====
22
var v = (a: ) => {
33
~
44
!!! Type expected.
Collapse file

‎…erence/parserX_ArrowFunction2.errors.txt‎ ‎…ines/reference/ArrowFunction2.errors.txt‎tests/baselines/reference/parserX_ArrowFunction2.errors.txt renamed to tests/baselines/reference/ArrowFunction2.errors.txt tests/baselines/reference/parserX_ArrowFunction2.errors.txt renamed to tests/baselines/reference/ArrowFunction2.errors.txt

Copy file name to clipboardExpand all lines: tests/baselines/reference/ArrowFunction2.errors.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction2.ts (2 errors) ====
1+
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction2.ts (2 errors) ====
22
var v = (a: b,) => {
33
~
44
!!! Trailing comma not allowed.
Collapse file

‎…erence/parserX_ArrowFunction3.errors.txt‎ ‎…ines/reference/ArrowFunction3.errors.txt‎tests/baselines/reference/parserX_ArrowFunction3.errors.txt renamed to tests/baselines/reference/ArrowFunction3.errors.txt tests/baselines/reference/parserX_ArrowFunction3.errors.txt renamed to tests/baselines/reference/ArrowFunction3.errors.txt

Copy file name to clipboardExpand all lines: tests/baselines/reference/ArrowFunction3.errors.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction3.ts (3 errors) ====
1+
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction3.ts (3 errors) ====
22
var v = (a): => {
33
~
44
!!! ',' expected.
Collapse file
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//// [ArrowFunction4.ts]
2+
var v = (a, b) => {
3+
4+
};
5+
6+
//// [ArrowFunction4.js]
7+
var v = function (a, b) {
8+
};
Collapse file

‎…s/reference/parserX_ArrowFunction4.types‎ ‎…baselines/reference/ArrowFunction4.types‎tests/baselines/reference/parserX_ArrowFunction4.types renamed to tests/baselines/reference/ArrowFunction4.types tests/baselines/reference/parserX_ArrowFunction4.types renamed to tests/baselines/reference/ArrowFunction4.types

Copy file name to clipboardExpand all lines: tests/baselines/reference/ArrowFunction4.types
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
=== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts ===
1+
=== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts ===
22
var v = (a, b) => {
33
>v : (a: any, b: any) => void
4-
>(a, b) => {
5-
6-
} : (a: any, b: any) => void
4+
>(a, b) => { } : (a: any, b: any) => void
75
>a : any
86
>b : any
97

Collapse file

‎tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.types‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.types
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Point {
77
>y : number
88

99
static Origin(): Point { return { x: 0, y: 0 }; }
10-
>Origin : () => Point
10+
>Origin : typeof Origin
1111
>Point : Point
1212
>{ x: 0, y: 0 } : { x: number; y: number; }
1313
>x : number
@@ -18,7 +18,7 @@ module Point {
1818
>Point : typeof Point
1919

2020
function Origin() { return ""; }// not an error, since not exported
21-
>Origin : () => string
21+
>Origin : typeof Origin
2222
}
2323

2424

@@ -33,7 +33,7 @@ module A {
3333
>y : number
3434

3535
static Origin(): Point { return { x: 0, y: 0 }; }
36-
>Origin : () => Point
36+
>Origin : typeof Origin
3737
>Point : Point
3838
>{ x: 0, y: 0 } : { x: number; y: number; }
3939
>x : number
@@ -44,6 +44,6 @@ module A {
4444
>Point : typeof Point
4545

4646
function Origin() { return ""; }// not an error since not exported
47-
>Origin : () => string
47+
>Origin : typeof Origin
4848
}
4949
}
Collapse file

‎tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module A {
4747
>TPoint : TPoint
4848

4949
static fromorigin2d(p: Point): Line<Point>{
50-
>fromorigin2d : (p: Point) => Line<Point>
50+
>fromorigin2d : typeof fromorigin2d
5151
>p : Point
5252
>Point : Point
5353
>Line : Line<TPoint>
Collapse file

‎tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.types‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.types
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module A {
2323
}
2424

2525
export function fromOrigin(p: Point): Line {
26-
>fromOrigin : (p: Point) => Line
26+
>fromOrigin : typeof fromOrigin
2727
>p : Point
2828
>Point : Point
2929
>Line : Line

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.