Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix miss-reported node reuse in types. #58221

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion src/harness/typeWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function* forEachASTNode(node: ts.Node) {
}

function nodeIsFullySynthetic(node: ts.Node) {
return ts.nodeIsSynthesized(node) && !node.original;
return ts.nodeIsSynthesized(node) && !ts.getParseTreeNode(node);
}

const createSyntheticNodeUnderliningPrinter = memoize((): { printer: ts.Printer; writer: ts.EmitTextWriter; underliner: ts.EmitTextWriter; reset(): void; } => {
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/ArrowFunction1.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = (a: ) => {
>v : (a: any) => void
> : ^ ^^^^^^^^^^^^^^
>(a: ) => { } : (a: any) => void
> :
> : ^ ^^^^^^^^^^^^^^
>a : any
> : ^^^

Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/ArrowFunction4.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = (a, b) => {
>v : (a: any, b: any) => void
> : ^ ^^^^^^^ ^^^^^^^^^^^^^^
>(a, b) => { } : (a: any, b: any) => void
> :
> : ^ ^^^^^^^ ^^^^^^^^^^^^^^
>a : any
>b : any

Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/ArrowFunctionExpression1.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = (public x: string) => { };
>v : (x: string) => void
> : ^ ^^ ^^^^^^^^^
>(public x: string) => { } : (x: string) => void
> :
> : ^ ^^ ^^^^^^^^^
>x : string
> : ^^^^^^

2 changes: 1 addition & 1 deletion tests/baselines/reference/FunctionDeclaration12_es6.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = function * yield() { }
>v : () => Generator<never, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>function * yield() { } : () => Generator<never, void, unknown>
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>yield : () => Generator<never, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

4 changes: 2 additions & 2 deletions tests/baselines/reference/FunctionDeclaration9_es6.types
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function * foo() {
>v : { [x: number]: () => Generator<any, void, unknown>; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>{ [yield]: foo } : { [x: number]: () => Generator<any, void, unknown>; }
> : ^^^^^^^^^^^^^^^ ^^^
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>[yield] : () => Generator<any, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>yield : any
>foo : () => Generator<any, void, unknown>
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}
2 changes: 1 addition & 1 deletion tests/baselines/reference/FunctionExpression1_es6.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ var v = function * () { }
>v : () => Generator<never, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>function * () { } : () => Generator<never, void, unknown>
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2 changes: 1 addition & 1 deletion tests/baselines/reference/FunctionExpression2_es6.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = function * foo() { }
>v : () => Generator<never, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>function * foo() { } : () => Generator<never, void, unknown>
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>foo : () => Generator<never, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = { *[foo()]() { } }
>v : { [x: number]: () => Generator<never, void, unknown>; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>{ *[foo()]() { } } : { [x: number]: () => Generator<never, void, unknown>; }
> : ^^^^^^^^^^^^^^^ ^^^
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>[foo()] : () => Generator<never, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>foo() : any
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/YieldExpression15_es6.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = () => {
>v : () => void
> : ^^^^^^^^^^
>() => { yield foo } : () => void
> :
> : ^^^^^^^^^^

yield foo
>yield foo : any
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/YieldExpression9_es6.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = function*() {
>v : () => Generator<any, void, unknown>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>function*() { yield(foo);} : () => Generator<any, void, unknown>
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

yield(foo);
>yield(foo) : any
Expand Down
8 changes: 4 additions & 4 deletions tests/baselines/reference/abstractPropertyInConstructor.types
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ abstract class AbstractClass {
>innerFunction : () => string
> : ^^^^^^^^^^^^
>() => { return this.prop; } : () => string
> :
> : ^^^^^^^^^^^^

return this.prop;
>this.prop : string
Expand Down Expand Up @@ -137,7 +137,7 @@ abstract class AbstractClass {
>fn : () => string
> : ^^^^^^^^^^^^
>() => this.prop : () => string
> :
> : ^^^^^^^^^^^^
>this.prop : string
> : ^^^^^^
>this : this
Expand Down Expand Up @@ -181,7 +181,7 @@ abstract class DerivedAbstractClass extends AbstractClass {
>cb : (s: string) => void
> : ^ ^^ ^^^^^^^^^
>(s: string) => {} : (s: string) => void
> :
> : ^ ^^ ^^^^^^^^^
>s : string
> : ^^^^^^

Expand Down Expand Up @@ -289,7 +289,7 @@ class Implementation extends DerivedAbstractClass {
>cb : (s: string) => void
> : ^ ^^ ^^^^^^^^^
>(s: string) => {} : (s: string) => void
> :
> : ^ ^^ ^^^^^^^^^
>s : string
> : ^^^^^^

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export var basePrototype = {
>_this : { readonly primaryPath: any; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>this : { readonly primaryPath: any; }
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

return _this.collection.schema.primaryPath;
>_this.collection.schema.primaryPath : any
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/accessorsOverrideProperty8.types
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ declare function classWithProperties<T extends { [key: string]: Types }, P exten

const Base = classWithProperties({
>Base : { new (): Base & Properties<{ readonly x: "boolean"; y: "string"; }>; prototype: Base & Properties<{ readonly x: "boolean"; y: "string"; }>; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>classWithProperties({ get x() { return 'boolean' as const }, y: 'string',}, class Base {}) : { new (): Base & Properties<{ readonly x: "boolean"; y: "string"; }>; prototype: Base & Properties<{ readonly x: "boolean"; y: "string"; }>; }
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>classWithProperties : <T extends { [key: string]: Types; }, P extends object>(properties: T, klass: AnyCtor<P>) => { new (): P & Properties<T>; prototype: P & Properties<T>; }
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>{ get x() { return 'boolean' as const }, y: 'string',} : { readonly x: "boolean"; y: "string"; }
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/accessorsOverrideProperty9.types
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function ApiItemContainerMixin<TBaseClass extends IApiItemConstructor>(

return MixedClass;
>MixedClass : ((abstract new (...args: any[]) => MixedClass) & { prototype: ApiItemContainerMixin<any>.MixedClass; }) & TBaseClass
> : ^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}

// Subclass inheriting from mixin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var f = (x: IHasVisualizationModel) => x;
>f : (x: IHasVisualizationModel) => IHasVisualizationModel
> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>(x: IHasVisualizationModel) => x : (x: IHasVisualizationModel) => IHasVisualizationModel
> :
> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>x : IHasVisualizationModel
> : ^^^^^^^^^^^^^^^^^^^^^^
>x : IHasVisualizationModel
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/aliasUsageInGenericFunction.types
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var r = foo({ a: moduleA });
>r : { a: typeof moduleA; }
> : ^^^^^^^^^^^^^^^^^^^^^^
>foo({ a: moduleA }) : { a: typeof moduleA; }
> :
> : ^^^^^^^^^^^^^^^^^^^^^^
>foo : <T extends { a: IHasVisualizationModel; }>(x: T) => T
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^
>{ a: moduleA } : { a: typeof moduleA; }
Expand All @@ -50,7 +50,7 @@ var r2 = foo({ a: <IHasVisualizationModel>null });
>r2 : { a: IHasVisualizationModel; }
> : ^^^^^ ^^^
>foo({ a: <IHasVisualizationModel>null }) : { a: IHasVisualizationModel; }
> :
> : ^^^^^ ^^^
>foo : <T extends { a: IHasVisualizationModel; }>(x: T) => T
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^
>{ a: <IHasVisualizationModel>null } : { a: IHasVisualizationModel; }
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/aliasUsedAsNameValue.types
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export var a = function () {
>a : () => void
> : ^^^^^^^^^^
>function () { //var x = mod.id; // TODO needed hack that mod is loaded b.b(mod);} : () => void
> :
> : ^^^^^^^^^^

//var x = mod.id; // TODO needed hack that mod is loaded
b.b(mod);
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/allowJsClassThisTypeCrash.types
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const f = function() {};
>f : () => void
> : ^^^^^^^^^^
>function() {} : () => void
> :
> : ^^^^^^^^^^

var g = f;
>g : () => void
> : ^^^^^^^^^^
>f : () => void
> :
> : ^^^^^^^^^^

g.prototype.m = function () {
>g.prototype.m = function () { this;} : () => void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export var vextend = extend;
>vextend : (options: ComponentOptions<{}>) => void
> : ^ ^^ ^^^^^^^^^
>extend : (options: ComponentOptions<{}>) => void
> :
> : ^ ^^ ^^^^^^^^^

=== app.js ===
import {vextend} from './func';
Expand Down Expand Up @@ -60,7 +60,7 @@ export var a = vextend({
>this : Record<string, (val: any) => void>
> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
>data2 : (val: any) => void
> :
> : ^ ^^^^^^^^^^^^^^
>1 : 1
> : ^

Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/ambientStatement1.types
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>v1 : () => boolean
> : ^^^^^^^^^^^^^
>() => false : () => boolean
> :
> : ^^^^^^^^^^^^^
>false : false
> : ^^^^^
}
4 changes: 2 additions & 2 deletions tests/baselines/reference/ambiguousGenericAssertion1.types
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var r = <T>(x: T) => x;
>r : <T>(x: T) => T
> : ^ ^^ ^^ ^^^^^^
><T>(x: T) => x : <T>(x: T) => T
> :
> : ^ ^^ ^^ ^^^^^^
>x : T
> : ^
>x : T
Expand All @@ -21,7 +21,7 @@ var r2 = < <T>(x: T) => T>f; // valid
>r2 : <T>(x: T) => T
> : ^ ^^ ^^ ^^^^^
>< <T>(x: T) => T>f : <T>(x: T) => T
> :
> : ^ ^^ ^^ ^^^^^
>x : T
> : ^
>f : <T>(x: T) => T
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function Configurable<T extends Constructor<{}>>(base: T): T {

return class extends base {
>class extends base { constructor(...args: any[]) { super(...args); } } : { new (...args: any[]): (Anonymous class); prototype: Configurable<any>.(Anonymous class); } & T
> : ^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>base : {}
> : ^^

Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/amdLikeInputDeclarationEmit.types
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ define("lib/ExtendedClass", ["deps/BaseClass"],
>ExtendedClass : new () => { f: () => "something"; } & import("deps/BaseClass")
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>BaseClass.extends({ f: function() { return "something"; } }) : new () => { f: () => "something"; } & import("deps/BaseClass")
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>BaseClass.extends : <A>(a: A) => new () => A & import("deps/BaseClass")
> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>BaseClass : typeof import("deps/BaseClass")
Expand All @@ -73,7 +73,7 @@ define("lib/ExtendedClass", ["deps/BaseClass"],
>f : () => "something"
> : ^^^^^^^^^^^^^^^^^
>function() { return "something"; } : () => "something"
> :
> : ^^^^^^^^^^^^^^^^^

return "something";
>"something" : "something"
Expand Down
12 changes: 6 additions & 6 deletions tests/baselines/reference/anonClassDeclarationEmitIsAnon.types
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export type Constructor<T = {}> = new (...args: any[]) => T;

export function Timestamped<TBase extends Constructor>(Base: TBase) {
>Timestamped : <TBase extends Constructor<{}>>(Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped<any>.(Anonymous class); } & TBase
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Base : TBase
> : ^^^^^

return class extends Base {
>class extends Base { timestamp = Date.now(); } : { new (...args: any[]): (Anonymous class); prototype: Timestamped<any>.(Anonymous class); } & TBase
> : ^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Base : {}
> : ^^

Expand All @@ -60,7 +60,7 @@ import { wrapClass, Timestamped } from "./wrapClass";
>wrapClass : (param: any) => typeof Wrapped
> : ^ ^^ ^^^^^^^^^^^^^^^^^^^
>Timestamped : <TBase extends import("wrapClass").Constructor<{}>>(Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped<any>.(Anonymous class); } & TBase
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

export default wrapClass(0);
>wrapClass(0) : typeof Wrapped
Expand All @@ -87,9 +87,9 @@ export class TimestampedUser extends Timestamped(User) {
>TimestampedUser : TimestampedUser
> : ^^^^^^^^^^^^^^^
>Timestamped(User) : Timestamped<typeof User>.(Anonymous class) & User
> : ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Timestamped : <TBase extends import("wrapClass").Constructor<{}>>(Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped<any>.(Anonymous class); } & TBase
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>User : typeof User
> : ^^^^^^^^^^^

Expand All @@ -98,6 +98,6 @@ export class TimestampedUser extends Timestamped(User) {
>super() : void
> : ^^^^
>super : { new (...args: any[]): Timestamped<typeof User>.(Anonymous class); prototype: Timestamped<any>.(Anonymous class); } & typeof User
> : ^^^^^^^^^^ ^^ ^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> : ^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
>blah : () => IterableIterator<any>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>arguments[Symbol.iterator] : () => IterableIterator<any>
> :
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>arguments : IArguments
> : ^^^^^^^^^^
>Symbol.iterator : unique symbol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const foo = {
>foo : { f1: (params: any) => void; }
> : ^^^^^^^ ^^^^^^^^^^^^^^^^^
>{ f1: (params) => { }} : { f1: (params: any) => void; }
> : ^^^^^^ ^^^
> : ^^^^^^^ ^^^^^^^^^^^^^^^^^

f1: (params) => { }
>f1 : (params: any) => void
> : ^ ^^^^^^^^^^^^^^
>(params) => { } : (params: any) => void
> :
> : ^ ^^^^^^^^^^^^^^
>params : any
> : ^^^
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const format = function(f) {
>format : (f: any, ...args: any[]) => string
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>function(f) { var str = ''; var i = 1; var args = arguments; var len = args.length; for (var x = args[i]; i < len; x = args[++i]) { str += ' ' + x; } return str;} : (f: any, ...args: any[]) => string
> : ^^^
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>f : any
> : ^^^

Expand Down Expand Up @@ -87,7 +87,7 @@ const debuglog = function() {
>debuglog : (...args: any[]) => string
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
>function() { return format.apply(null, arguments);} : (...args: any[]) => string
> : ^^^
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^

return format.apply(null, arguments);
>format.apply(null, arguments) : string
Expand Down
Loading