From 8d2d226aca56cc8c8c823024d76cfc10c5711cb7 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Fri, 21 Jul 2017 14:48:48 -0700 Subject: [PATCH] Update JSDocParsing unit test baselines --- ....parsesCorrectly.argSynonymForParamTag.json | 8 +++++++- ...esCorrectly.argumentSynonymForParamTag.json | 8 +++++++- ...ocComments.parsesCorrectly.oneParamTag.json | 8 +++++++- .../DocComments.parsesCorrectly.paramTag1.json | 8 +++++++- ...parsesCorrectly.paramTagBracketedName1.json | 8 +++++++- ...parsesCorrectly.paramTagBracketedName2.json | 8 +++++++- ....parsesCorrectly.paramTagNameThenType1.json | 18 ++++++++++++------ ....parsesCorrectly.paramTagNameThenType2.json | 18 ++++++++++++------ ...ments.parsesCorrectly.paramWithoutType.json | 3 ++- ...cComments.parsesCorrectly.twoParamTag2.json | 16 ++++++++++++++-- ....parsesCorrectly.twoParamTagOnSameLine.json | 16 ++++++++++++++-- ...esCorrectly.typedefTagWithChildrenTags.json | 18 +++++++++++++++--- 12 files changed, 111 insertions(+), 26 deletions(-) diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json index b47a07e8487..0a8bed8dd6d 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json @@ -28,7 +28,12 @@ "end": 20 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 14, + "end": 20 + }, + "fullName": { "kind": "Identifier", "pos": 22, "end": 27, @@ -40,6 +45,7 @@ "end": 27, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "Description" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json index cf86fda872e..f450e6d3cdb 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json @@ -28,7 +28,12 @@ "end": 25 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 19, + "end": 25 + }, + "fullName": { "kind": "Identifier", "pos": 27, "end": 32, @@ -40,6 +45,7 @@ "end": 32, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "Description" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.oneParamTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.oneParamTag.json index 506487232e0..01c2dfa9cc6 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.oneParamTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.oneParamTag.json @@ -28,7 +28,12 @@ "end": 22 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 16, + "end": 22 + }, + "fullName": { "kind": "Identifier", "pos": 24, "end": 29, @@ -40,6 +45,7 @@ "end": 29, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json index abc116d7452..e7469f73777 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json @@ -28,7 +28,12 @@ "end": 22 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 16, + "end": 22 + }, + "fullName": { "kind": "Identifier", "pos": 24, "end": 29, @@ -40,6 +45,7 @@ "end": 29, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "Description text follows" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json index 1df54fadcd7..b3230d6473d 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json @@ -28,7 +28,12 @@ "end": 22 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 16, + "end": 22 + }, + "fullName": { "kind": "Identifier", "pos": 25, "end": 30, @@ -40,6 +45,7 @@ "end": 30, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": true, "comment": "Description text follows" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json index 5347b99be7a..7f08a22a723 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json @@ -28,7 +28,12 @@ "end": 22 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 16, + "end": 22 + }, + "fullName": { "kind": "Identifier", "pos": 26, "end": 31, @@ -40,6 +45,7 @@ "end": 31, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": true, "comment": "Description text follows" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType1.json index 9d66ca3dd55..c5dbe539faa 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType1.json @@ -18,12 +18,6 @@ "end": 14, "text": "param" }, - "preParameterName": { - "kind": "Identifier", - "pos": 15, - "end": 20, - "text": "name1" - }, "typeExpression": { "kind": "JSDocTypeExpression", "pos": 21, @@ -34,12 +28,24 @@ "end": 28 } }, + "type": { + "kind": "NumberKeyword", + "pos": 22, + "end": 28 + }, + "fullName": { + "kind": "Identifier", + "pos": 15, + "end": 20, + "text": "name1" + }, "name": { "kind": "Identifier", "pos": 15, "end": 20, "text": "name1" }, + "isParameterNameFirst": true, "isBracketed": false, "comment": "" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json index 01d08a103c1..874aadf32c5 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json @@ -18,12 +18,6 @@ "end": 14, "text": "param" }, - "preParameterName": { - "kind": "Identifier", - "pos": 15, - "end": 20, - "text": "name1" - }, "typeExpression": { "kind": "JSDocTypeExpression", "pos": 21, @@ -34,12 +28,24 @@ "end": 28 } }, + "type": { + "kind": "NumberKeyword", + "pos": 22, + "end": 28 + }, + "fullName": { + "kind": "Identifier", + "pos": 15, + "end": 20, + "text": "name1" + }, "name": { "kind": "Identifier", "pos": 15, "end": 20, "text": "name1" }, + "isParameterNameFirst": true, "isBracketed": false, "comment": "Description" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramWithoutType.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramWithoutType.json index ab15d24f618..cd6a3ec63eb 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramWithoutType.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramWithoutType.json @@ -18,7 +18,7 @@ "end": 14, "text": "param" }, - "preParameterName": { + "fullName": { "kind": "Identifier", "pos": 15, "end": 18, @@ -30,6 +30,7 @@ "end": 18, "text": "foo" }, + "isParameterNameFirst": true, "isBracketed": false, "comment": "" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTag2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTag2.json index 5ba60030f1b..7bd46fac5b8 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTag2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTag2.json @@ -28,7 +28,12 @@ "end": 22 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 16, + "end": 22 + }, + "fullName": { "kind": "Identifier", "pos": 24, "end": 29, @@ -40,6 +45,7 @@ "end": 29, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "" }, @@ -68,7 +74,12 @@ "end": 48 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 42, + "end": 48 + }, + "fullName": { "kind": "Identifier", "pos": 50, "end": 55, @@ -80,6 +91,7 @@ "end": 55, "text": "name2" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTagOnSameLine.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTagOnSameLine.json index 7d26097bb34..d38146ec587 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTagOnSameLine.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.twoParamTagOnSameLine.json @@ -28,7 +28,12 @@ "end": 22 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 16, + "end": 22 + }, + "fullName": { "kind": "Identifier", "pos": 24, "end": 29, @@ -40,6 +45,7 @@ "end": 29, "text": "name1" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "" }, @@ -68,7 +74,12 @@ "end": 44 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 38, + "end": 44 + }, + "fullName": { "kind": "Identifier", "pos": 46, "end": 51, @@ -80,6 +91,7 @@ "end": 51, "text": "name2" }, + "isParameterNameFirst": false, "isBracketed": false, "comment": "" }, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typedefTagWithChildrenTags.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typedefTagWithChildrenTags.json index 370e139b512..c6f0d250923 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typedefTagWithChildrenTags.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typedefTagWithChildrenTags.json @@ -30,7 +30,7 @@ "end": 23, "text": "People" }, - "jsDocTypeLiteral": { + "typeExpression": { "kind": "JSDocTypeLiteral", "pos": 26, "end": 98, @@ -92,7 +92,12 @@ "end": 64 } }, - "postParameterName": { + "type": { + "kind": "NumberKeyword", + "pos": 58, + "end": 64 + }, + "fullName": { "kind": "Identifier", "pos": 66, "end": 69, @@ -104,6 +109,7 @@ "end": 69, "text": "age" }, + "isParameterNameFirst": false, "isBracketed": false }, { @@ -131,7 +137,12 @@ "end": 91 } }, - "postParameterName": { + "type": { + "kind": "StringKeyword", + "pos": 85, + "end": 91 + }, + "fullName": { "kind": "Identifier", "pos": 93, "end": 97, @@ -143,6 +154,7 @@ "end": 97, "text": "name" }, + "isParameterNameFirst": false, "isBracketed": false } ]