From b37c1dd6397edb27ff87e2ce49bfecaa22394536 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 22 Jan 2026 01:21:35 +0000 Subject: [PATCH] Accept baselines. --- .../jsDocFunctionSignatures5.baseline | 6 +-- .../reference/jsDocTypeTagQuickInfo1.baseline | 6 +-- .../reference/jsDocTypeTagQuickInfo2.baseline | 50 +++++++++---------- 3 files changed, 29 insertions(+), 33 deletions(-) diff --git a/tests/baselines/reference/jsDocFunctionSignatures5.baseline b/tests/baselines/reference/jsDocFunctionSignatures5.baseline index 0adafac9959..42dd6f6da3b 100644 --- a/tests/baselines/reference/jsDocFunctionSignatures5.baseline +++ b/tests/baselines/reference/jsDocFunctionSignatures5.baseline @@ -14,7 +14,7 @@ // pathFilter('foo', 'bar', 'baz', {}); // ^ // | ---------------------------------------------------------------------- -// | pathFilter(**basePath: string**, pattern: string, type: string, options: any): any[] +// | pathFilter(**basePath: string**, pattern: string, type: string, options: Object): any[] // | Filters a path based on a regexp or glob pattern. // | @param basePath The base path where the search will be performed. // | @param pattern A string defining a regexp of a glob pattern. @@ -190,8 +190,8 @@ "kind": "space" }, { - "text": "any", - "kind": "keyword" + "text": "Object", + "kind": "localName" } ], "isOptional": false, diff --git a/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline b/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline index eaa535157e1..1d8dcc4ccb3 100644 --- a/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline +++ b/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline @@ -60,7 +60,7 @@ // var Obj; // ^^^ // | ---------------------------------------------------------------------- -// | var Obj: any +// | var Obj: Object // | @type {Object} // | ---------------------------------------------------------------------- // /** @type {Function} */ @@ -572,8 +572,8 @@ "kind": "space" }, { - "text": "any", - "kind": "keyword" + "text": "Object", + "kind": "localName" } ], "documentation": [], diff --git a/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline b/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline index eef0206fc22..9b7926dba6d 100644 --- a/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline +++ b/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline @@ -46,21 +46,21 @@ // var a; // ^ // | ---------------------------------------------------------------------- -// | var a: any[] +// | var a: array // | @type {array} // | ---------------------------------------------------------------------- // /** @type {promise} */ // var p; // ^ // | ---------------------------------------------------------------------- -// | var p: Promise +// | var p: promise // | @type {promise} // | ---------------------------------------------------------------------- // /** @type {?number} */ // var nullable; // ^^^^^^^^ // | ---------------------------------------------------------------------- -// | var nullable: number +// | var nullable: number | null // | @type {?number} // | ---------------------------------------------------------------------- // /** @type {function} */ @@ -439,16 +439,8 @@ "kind": "space" }, { - "text": "any", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" + "text": "array", + "kind": "text" } ], "documentation": [], @@ -500,20 +492,8 @@ "kind": "space" }, { - "text": "Promise", - "kind": "interfaceName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" + "text": "promise", + "kind": "text" } ], "documentation": [], @@ -567,6 +547,22 @@ { "text": "number", "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "|", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "null", + "kind": "keyword" } ], "documentation": [],