From 2613e191a8b6d97c45041bfc5ddd036905f5dd67 Mon Sep 17 00:00:00 2001 From: charburgx Date: Mon, 17 Oct 2022 17:45:46 -0500 Subject: [PATCH] feat(api): add primitive kind to localized tree --- packages/api/src/localizedTree.ts | 2 + .../baselines/reference/array.localized.tree | 1 + .../reference/arrayObjectAlias.localized.tree | 8 ++ .../baselines/reference/class.localized.tree | 15 +++ .../reference/classGeneric.localized.tree | 25 +++++ .../reference/conditional.localized.tree | 1 + .../reference/consoleLog.localized.tree | 101 +++++++++++++++++- tests/baselines/reference/consoleLog.tree | 8 +- .../reference/function.localized.tree | 8 ++ .../reference/functionGeneric.localized.tree | 12 +++ .../reference/indexedAccess.localized.tree | 9 ++ .../baselines/reference/lambda.localized.tree | 14 +++ .../baselines/reference/mapped.localized.tree | 3 + .../reference/partial.localized.tree | 8 ++ tests/baselines/reference/pick.localized.tree | 3 + .../baselines/reference/tuple.localized.tree | 2 + .../reference/tupleNamed.localized.tree | 2 + .../reference/tupleObjectAlias.localized.tree | 10 ++ .../reference/uppercase.localized.tree | 4 + 19 files changed, 228 insertions(+), 8 deletions(-) diff --git a/packages/api/src/localizedTree.ts b/packages/api/src/localizedTree.ts index f5512e1..af1f726 100644 --- a/packages/api/src/localizedTree.ts +++ b/packages/api/src/localizedTree.ts @@ -70,6 +70,7 @@ type TypeInfoChildren = ({ info?: TypeInfo, localizedInfo?: LocalizedTypeInfo, o export type LocalizedTypeInfo = { kindText?: string, kind?: ResolvedTypeInfo['kind'], + primitiveKind?: TypeInfoKind<'primitive'>['primitive'], alias?: string, symbol?: LocalizedSymbolInfo, name?: string, @@ -113,6 +114,7 @@ function _localizeTypeInfo(info: TypeInfo, data: LocalizeData, opts: LocalizeOpt const res: LocalizedTypeInfo = { kindText: getKind(info), kind: info.kind, + ...info.kind === "primitive" && { primitiveKind: info.primitive }, alias: getAlias(info), symbol, purpose, diff --git a/tests/baselines/reference/array.localized.tree b/tests/baselines/reference/array.localized.tree index 2e758bf..5f321a2 100644 --- a/tests/baselines/reference/array.localized.tree +++ b/tests/baselines/reference/array.localized.tree @@ -4,6 +4,7 @@ type arrayOfStrings = string[] > arrayOfStrings --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "arrayOfStrings", "locations": [ diff --git a/tests/baselines/reference/arrayObjectAlias.localized.tree b/tests/baselines/reference/arrayObjectAlias.localized.tree index 02019d1..2634d36 100644 --- a/tests/baselines/reference/arrayObjectAlias.localized.tree +++ b/tests/baselines/reference/arrayObjectAlias.localized.tree @@ -41,6 +41,7 @@ type Obj = { a: string, b: number } { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -80,6 +81,7 @@ type Obj = { a: string, b: number } { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -125,6 +127,7 @@ type Obj = { a: string, b: number } > a --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -165,6 +168,7 @@ type Obj = { a: string, b: number } > b --- { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -245,6 +249,7 @@ type arrObj = Obj[] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -284,6 +289,7 @@ type arrObj = Obj[] { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -365,6 +371,7 @@ type arrObj = Obj[] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -404,6 +411,7 @@ type arrObj = Obj[] { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ diff --git a/tests/baselines/reference/class.localized.tree b/tests/baselines/reference/class.localized.tree index 44d1af3..c0816f7 100644 --- a/tests/baselines/reference/class.localized.tree +++ b/tests/baselines/reference/class.localized.tree @@ -80,6 +80,7 @@ interface TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -132,6 +133,7 @@ interface TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "1" @@ -265,6 +267,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -300,6 +303,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -503,6 +507,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -538,6 +543,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -704,6 +710,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -838,6 +845,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -873,6 +881,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -963,6 +972,7 @@ class TestClass implements TestInterface { > param --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -1042,6 +1052,7 @@ class TestClass implements TestInterface { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "1" @@ -1210,6 +1221,7 @@ const _a = new TestClass("param") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -1245,6 +1257,7 @@ const _a = new TestClass("param") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -1377,6 +1390,7 @@ const _a = new TestClass("param") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -1532,6 +1546,7 @@ const _a = new TestClass("param") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "4" diff --git a/tests/baselines/reference/classGeneric.localized.tree b/tests/baselines/reference/classGeneric.localized.tree index ee4f3a8..a748dd0 100644 --- a/tests/baselines/reference/classGeneric.localized.tree +++ b/tests/baselines/reference/classGeneric.localized.tree @@ -273,6 +273,7 @@ class TestClass extends TestBaseClass { { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "thing", "locations": [ @@ -349,12 +350,14 @@ class TestClass extends TestBaseClass { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "2" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "7" } @@ -619,6 +622,7 @@ class TestClass extends TestBaseClass { { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "thing", "locations": [ @@ -695,12 +699,14 @@ class TestClass extends TestBaseClass { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "2" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "7" } @@ -1072,6 +1078,7 @@ class TestClass extends TestBaseClass { { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "thing", "locations": [ @@ -1148,12 +1155,14 @@ class TestClass extends TestBaseClass { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "2" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "7" } @@ -1260,6 +1269,7 @@ class TestClass extends TestBaseClass { > thing --- { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "thing", "locations": [ @@ -1337,12 +1347,14 @@ class TestClass extends TestBaseClass { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "1" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "2" } @@ -1407,6 +1419,7 @@ class TestClass extends TestBaseClass { > param --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -1447,6 +1460,7 @@ class TestClass extends TestBaseClass { > param2 --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param2", "locations": [ @@ -1566,6 +1580,7 @@ class TestClass extends TestBaseClass { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "2" @@ -1781,6 +1796,7 @@ const _a = new TestClass(false, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_value", "children": [], "_id": "1" @@ -1870,6 +1886,7 @@ const _a = new TestClass(false, 4) { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "thing", "locations": [ @@ -1949,6 +1966,7 @@ const _a = new TestClass(false, 4) { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "11" } @@ -2053,6 +2071,7 @@ const _a = new TestClass(false, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -2092,6 +2111,7 @@ const _a = new TestClass(false, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param2", "locations": [ @@ -2259,6 +2279,7 @@ const _a = new TestClass(false, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_value", "children": [], "_id": "2" @@ -2271,6 +2292,7 @@ const _a = new TestClass(false, 4) { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "thing", "locations": [ @@ -2350,6 +2372,7 @@ const _a = new TestClass(false, 4) { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "5" } @@ -2630,6 +2653,7 @@ const _a = new TestClass(false, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param", "locations": [ @@ -2669,6 +2693,7 @@ const _a = new TestClass(false, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "param2", "locations": [ diff --git a/tests/baselines/reference/conditional.localized.tree b/tests/baselines/reference/conditional.localized.tree index 58b7a4e..0c958f4 100644 --- a/tests/baselines/reference/conditional.localized.tree +++ b/tests/baselines/reference/conditional.localized.tree @@ -89,6 +89,7 @@ type Conditional = T extends string ? "a" : "b" { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "conditional_extends", "children": [], "_id": "2" diff --git a/tests/baselines/reference/consoleLog.localized.tree b/tests/baselines/reference/consoleLog.localized.tree index 0c34073..da73e20 100644 --- a/tests/baselines/reference/consoleLog.localized.tree +++ b/tests/baselines/reference/consoleLog.localized.tree @@ -68,6 +68,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -108,6 +109,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -149,6 +151,7 @@ console.log("hello world") { "kindText": "void", "kind": "primitive", + "primitiveKind": "void", "purpose": "return", "children": [], "_id": "4" @@ -373,6 +376,7 @@ console.log("hello world") { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "condition", "locations": [ @@ -413,6 +417,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -454,6 +459,7 @@ console.log("hello world") { "kindText": "void", "kind": "primitive", + "primitiveKind": "void", "purpose": "return", "children": [], "_id": "5" @@ -499,6 +505,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "value", "locations": [ @@ -538,6 +545,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "message", "locations": [ @@ -578,6 +586,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -874,6 +883,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -955,6 +965,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -1102,6 +1113,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -1183,6 +1195,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -1330,6 +1343,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -1412,6 +1426,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -1452,6 +1467,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -1600,6 +1616,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "item", "locations": [ @@ -1640,6 +1657,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "options", "locations": [ @@ -1721,6 +1739,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "obj", "locations": [ @@ -1863,6 +1882,7 @@ console.log("hello world") { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "showHidden", "locations": [ @@ -1903,6 +1923,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "depth", "locations": [ @@ -1943,6 +1964,7 @@ console.log("hello world") { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "colors", "locations": [ @@ -1983,6 +2005,7 @@ console.log("hello world") { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "customInspect", "locations": [ @@ -2023,6 +2046,7 @@ console.log("hello world") { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "showProxy", "locations": [ @@ -2063,6 +2087,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "maxArrayLength", "locations": [ @@ -2103,6 +2128,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "maxStringLength", "locations": [ @@ -2143,6 +2169,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "breakLength", "locations": [ @@ -2221,6 +2248,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "39" }, @@ -2318,6 +2346,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -2357,6 +2386,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "b", "locations": [ @@ -2515,6 +2545,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -2597,6 +2628,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -2745,6 +2777,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -2827,6 +2860,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -2867,6 +2901,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -3015,6 +3050,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -3097,6 +3133,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "label", "locations": [ @@ -3245,6 +3282,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -3327,6 +3365,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "label", "locations": [ @@ -3623,6 +3662,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -3705,6 +3745,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -3745,6 +3786,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -3893,6 +3935,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -3975,6 +4018,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -4015,6 +4059,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -4163,6 +4208,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "tabularData", "locations": [ @@ -4203,6 +4249,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "properties", "locations": [ @@ -4285,6 +4332,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "tabularData", "locations": [ @@ -4365,6 +4413,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "69" } @@ -4701,6 +4750,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "Array", "locations": [ @@ -5448,6 +5498,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -5567,6 +5618,7 @@ console.log("hello world") { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "purpose": "return", "children": [], "_id": "98" @@ -5577,6 +5629,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "thisArg", "locations": [ @@ -5724,6 +5777,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -5766,6 +5820,7 @@ console.log("hello world") { "kindText": "unknown", "kind": "primitive", + "primitiveKind": "unknown", "purpose": "return", "children": [], "_id": "103" @@ -5864,6 +5919,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -5998,6 +6054,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -6177,6 +6234,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -6669,6 +6727,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -7052,6 +7111,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -7331,6 +7391,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "currentIndex", "locations": [ @@ -7515,6 +7576,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "currentIndex", "locations": [ @@ -7784,6 +7846,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "currentIndex", "locations": [ @@ -8063,6 +8126,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "currentIndex", "locations": [ @@ -8247,6 +8311,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "currentIndex", "locations": [ @@ -8516,6 +8581,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "currentIndex", "locations": [ @@ -8789,6 +8855,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -8947,6 +9014,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -9083,6 +9151,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -9273,7 +9342,7 @@ console.log("hello world") "kindText": "method", "kind": "function", "symbol": { - "name": "__@iterator@1574", + "name": "__@iterator@1585", "locations": [ { "fileName": "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", @@ -9545,7 +9614,7 @@ console.log("hello world") "kindText": "method", "kind": "function", "symbol": { - "name": "__@iterator@1574", + "name": "__@iterator@1585", "locations": [ { "fileName": "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", @@ -9817,7 +9886,7 @@ console.log("hello world") "kindText": "method", "kind": "function", "symbol": { - "name": "__@iterator@1574", + "name": "__@iterator@1585", "locations": [ { "fileName": "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", @@ -10172,6 +10241,7 @@ console.log("hello world") { "kindText": "undefined", "kind": "primitive", + "primitiveKind": "undefined", "purpose": "parameter_default", "children": [], "_id": "211" @@ -10224,6 +10294,7 @@ console.log("hello world") { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "index", "locations": [ @@ -10877,7 +10948,7 @@ console.log("hello world") "kindText": "method", "kind": "function", "symbol": { - "name": "__@iterator@1574", + "name": "__@iterator@1585", "locations": [ { "fileName": "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", @@ -11029,6 +11100,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11110,6 +11182,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11257,6 +11330,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11338,6 +11412,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11485,6 +11560,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11525,6 +11601,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -11607,6 +11684,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11647,6 +11725,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -11795,6 +11874,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -11876,6 +11956,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -12023,6 +12104,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -12105,6 +12187,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -12145,6 +12228,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -12293,6 +12377,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -12375,6 +12460,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -12415,6 +12501,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ @@ -15537,6 +15624,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -15620,6 +15708,7 @@ console.log("hello world") { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "label", "locations": [ @@ -15780,6 +15869,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "data", "locations": [ @@ -15821,6 +15911,7 @@ console.log("hello world") { "kindText": "void", "kind": "primitive", + "primitiveKind": "void", "purpose": "return", "children": [], "_id": "3" @@ -15866,6 +15957,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "message", "locations": [ @@ -15906,6 +15998,7 @@ console.log("hello world") { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "optionalParams", "locations": [ diff --git a/tests/baselines/reference/consoleLog.tree b/tests/baselines/reference/consoleLog.tree index c2033c4..ac6b1c8 100644 --- a/tests/baselines/reference/consoleLog.tree +++ b/tests/baselines/reference/consoleLog.tree @@ -9033,7 +9033,7 @@ console.log("hello world") } ], "symbolMeta": { - "name": "__@iterator@1195", + "name": "__@iterator@1206", "flags": 33562624, "insideClassOrInterface": true, "declarations": [ @@ -9419,7 +9419,7 @@ console.log("hello world") } ], "symbolMeta": { - "name": "__@iterator@1195", + "name": "__@iterator@1206", "flags": 33562624, "insideClassOrInterface": true, "declarations": [ @@ -9777,7 +9777,7 @@ console.log("hello world") } ], "symbolMeta": { - "name": "__@iterator@1195", + "name": "__@iterator@1206", "flags": 33562624, "insideClassOrInterface": true, "declarations": [ @@ -11341,7 +11341,7 @@ console.log("hello world") } ], "symbolMeta": { - "name": "__@iterator@1195", + "name": "__@iterator@1206", "flags": 33562624, "insideClassOrInterface": true, "declarations": [ diff --git a/tests/baselines/reference/function.localized.tree b/tests/baselines/reference/function.localized.tree index b2198c1..0667e36 100644 --- a/tests/baselines/reference/function.localized.tree +++ b/tests/baselines/reference/function.localized.tree @@ -43,6 +43,7 @@ function func(a: string, b?: number) { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -82,6 +83,7 @@ function func(a: string, b?: number) { { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -122,6 +124,7 @@ function func(a: string, b?: number) { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "3" @@ -169,6 +172,7 @@ function func(a: string, b?: number) { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -208,6 +212,7 @@ function func(a: string, b?: number) { { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -248,6 +253,7 @@ function func(a: string, b?: number) { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "return", "children": [], "_id": "3" @@ -260,6 +266,7 @@ function func(a: string, b?: number) { > a --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -300,6 +307,7 @@ function func(a: string, b?: number) { > b --- { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ diff --git a/tests/baselines/reference/functionGeneric.localized.tree b/tests/baselines/reference/functionGeneric.localized.tree index aafd806..0cd6cbe 100644 --- a/tests/baselines/reference/functionGeneric.localized.tree +++ b/tests/baselines/reference/functionGeneric.localized.tree @@ -84,6 +84,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "3" @@ -140,6 +141,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "arg2", "locations": [ @@ -265,6 +267,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "3" @@ -321,6 +324,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "arg2", "locations": [ @@ -408,6 +412,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "1" @@ -458,6 +463,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "1" @@ -507,6 +513,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "1" @@ -518,6 +525,7 @@ function sig1(arg: T, ...arg2: any[]): string { > arg2 --- { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "arg2", "locations": [ @@ -603,6 +611,7 @@ function sig1(arg: T, ...arg2: any[]): string { { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "1" @@ -613,6 +622,7 @@ function sig1(arg: T, ...arg2: any[]): string { > arg2 --- { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "arg2", "locations": [ @@ -742,6 +752,7 @@ sig1("asd", 3, 4) { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "5" @@ -757,6 +768,7 @@ sig1("asd", 3, 4) { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "arg2", "locations": [ diff --git a/tests/baselines/reference/indexedAccess.localized.tree b/tests/baselines/reference/indexedAccess.localized.tree index 7d7ffd5..8a414c6 100644 --- a/tests/baselines/reference/indexedAccess.localized.tree +++ b/tests/baselines/reference/indexedAccess.localized.tree @@ -127,18 +127,21 @@ type IndexedAccess = P[T] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "4" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "5" }, { "kindText": "symbol", "kind": "primitive", + "primitiveKind": "essymbol", "children": [], "_id": "6" } @@ -248,18 +251,21 @@ type IndexedAccess = P[T] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "2" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "3" }, { "kindText": "symbol", "kind": "primitive", + "primitiveKind": "essymbol", "children": [], "_id": "4" } @@ -400,18 +406,21 @@ type IndexedAccess = P[T] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "2" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "3" }, { "kindText": "symbol", "kind": "primitive", + "primitiveKind": "essymbol", "children": [], "_id": "4" } diff --git a/tests/baselines/reference/lambda.localized.tree b/tests/baselines/reference/lambda.localized.tree index 5f0c4ce..44eaeb0 100644 --- a/tests/baselines/reference/lambda.localized.tree +++ b/tests/baselines/reference/lambda.localized.tree @@ -41,6 +41,7 @@ type f = (arg1: string, arg2: boolean) => void { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "arg1", "locations": [ @@ -80,6 +81,7 @@ type f = (arg1: string, arg2: boolean) => void { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "arg2", "locations": [ @@ -119,6 +121,7 @@ type f = (arg1: string, arg2: boolean) => void { "kindText": "void", "kind": "primitive", + "primitiveKind": "void", "purpose": "return", "children": [], "_id": "3" @@ -132,6 +135,7 @@ type f = (arg1: string, arg2: boolean) => void > arg1 --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "arg1", "locations": [ @@ -172,6 +176,7 @@ type f = (arg1: string, arg2: boolean) => void > arg2 --- { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "arg2", "locations": [ @@ -211,6 +216,7 @@ type f = (arg1: string, arg2: boolean) => void > => --- { "kindText": "any", "kind": "primitive", + "primitiveKind": "any", "symbol": { "name": "__type", "locations": [ @@ -328,6 +334,7 @@ type t = { a: string } | f { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "arg1", "locations": [ @@ -367,6 +374,7 @@ type t = { a: string } | f { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "arg2", "locations": [ @@ -406,6 +414,7 @@ type t = { a: string } | f { "kindText": "void", "kind": "primitive", + "primitiveKind": "void", "purpose": "return", "children": [], "_id": "4" @@ -454,6 +463,7 @@ type t = { a: string } | f { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -504,6 +514,7 @@ type t = { a: string } | f > a --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -581,6 +592,7 @@ type t = { a: string } | f { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "arg1", "locations": [ @@ -620,6 +632,7 @@ type t = { a: string } | f { "kindText": "boolean", "kind": "primitive", + "primitiveKind": "boolean", "symbol": { "name": "arg2", "locations": [ @@ -659,6 +672,7 @@ type t = { a: string } | f { "kindText": "void", "kind": "primitive", + "primitiveKind": "void", "purpose": "return", "children": [], "_id": "3" diff --git a/tests/baselines/reference/mapped.localized.tree b/tests/baselines/reference/mapped.localized.tree index 0cd2dc1..72ff3e0 100644 --- a/tests/baselines/reference/mapped.localized.tree +++ b/tests/baselines/reference/mapped.localized.tree @@ -62,6 +62,7 @@ type mapped = { [index: string]: number } { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "index_type", "children": [], "_id": "2" @@ -69,6 +70,7 @@ type mapped = { [index: string]: number } { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "purpose": "index_value_type", "children": [], "_id": "1" @@ -86,6 +88,7 @@ type mapped = { [index: string]: number } > index --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "index", "locations": [ diff --git a/tests/baselines/reference/partial.localized.tree b/tests/baselines/reference/partial.localized.tree index 234c2e1..9b4cc33 100644 --- a/tests/baselines/reference/partial.localized.tree +++ b/tests/baselines/reference/partial.localized.tree @@ -80,6 +80,7 @@ type partialUnion = Partial<{a: string}|{b: string}> { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -293,6 +294,7 @@ type partialUnion = Partial<{a: string}|{b: string}> { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -373,6 +375,7 @@ type partialUnion = Partial<{a: string}|{b: string}> { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "b", "locations": [ @@ -507,18 +510,21 @@ type partialUnion = Partial<{a: string}|{b: string}> { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "10" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "11" }, { "kindText": "symbol", "kind": "primitive", + "primitiveKind": "essymbol", "children": [], "_id": "12" } @@ -545,6 +551,7 @@ type partialUnion = Partial<{a: string}|{b: string}> > a --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -587,6 +594,7 @@ type partialUnion = Partial<{a: string}|{b: string}> > b --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "b", "locations": [ diff --git a/tests/baselines/reference/pick.localized.tree b/tests/baselines/reference/pick.localized.tree index 421fbe1..ac11431 100644 --- a/tests/baselines/reference/pick.localized.tree +++ b/tests/baselines/reference/pick.localized.tree @@ -1016,18 +1016,21 @@ type p = Pick & {b: "asd", d: { b: "c" }} { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "14" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "15" }, { "kindText": "symbol", "kind": "primitive", + "primitiveKind": "essymbol", "children": [], "_id": "16" } diff --git a/tests/baselines/reference/tuple.localized.tree b/tests/baselines/reference/tuple.localized.tree index 07a4d48..6c9a7c0 100644 --- a/tests/baselines/reference/tuple.localized.tree +++ b/tests/baselines/reference/tuple.localized.tree @@ -47,12 +47,14 @@ type tupleOfStuff = ["a", string, number] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "children": [], "_id": "2" }, { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "children": [], "_id": "3" } diff --git a/tests/baselines/reference/tupleNamed.localized.tree b/tests/baselines/reference/tupleNamed.localized.tree index 97374f4..d008d88 100644 --- a/tests/baselines/reference/tupleNamed.localized.tree +++ b/tests/baselines/reference/tupleNamed.localized.tree @@ -48,6 +48,7 @@ type namedTuple = [param: "a", param2: string, param3: number] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "name": "param2", "children": [], "_id": "2" @@ -55,6 +56,7 @@ type namedTuple = [param: "a", param2: string, param3: number] { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "name": "param3", "children": [], "_id": "3" diff --git a/tests/baselines/reference/tupleObjectAlias.localized.tree b/tests/baselines/reference/tupleObjectAlias.localized.tree index c971e6f..235623e 100644 --- a/tests/baselines/reference/tupleObjectAlias.localized.tree +++ b/tests/baselines/reference/tupleObjectAlias.localized.tree @@ -41,6 +41,7 @@ type Obj2 = { a: string, b: number } { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -80,6 +81,7 @@ type Obj2 = { a: string, b: number } { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -125,6 +127,7 @@ type Obj2 = { a: string, b: number } > a --- { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -165,6 +168,7 @@ type Obj2 = { a: string, b: number } > b --- { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -282,6 +286,7 @@ type tupleObj = [Obj2, Obj2] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -321,6 +326,7 @@ type tupleObj = [Obj2, Obj2] { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -409,6 +415,7 @@ type tupleObj = [Obj2, Obj2] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -448,6 +455,7 @@ type tupleObj = [Obj2, Obj2] { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ @@ -528,6 +536,7 @@ type tupleObj = [Obj2, Obj2] { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "symbol": { "name": "a", "locations": [ @@ -567,6 +576,7 @@ type tupleObj = [Obj2, Obj2] { "kindText": "number", "kind": "primitive", + "primitiveKind": "number", "symbol": { "name": "b", "locations": [ diff --git a/tests/baselines/reference/uppercase.localized.tree b/tests/baselines/reference/uppercase.localized.tree index d1fd9ac..8d46562 100644 --- a/tests/baselines/reference/uppercase.localized.tree +++ b/tests/baselines/reference/uppercase.localized.tree @@ -82,6 +82,7 @@ type U = Uppercase { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "2" @@ -140,6 +141,7 @@ type U = Uppercase { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "1" @@ -268,6 +270,7 @@ type U = Uppercase { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "2" @@ -329,6 +332,7 @@ type U = Uppercase { "kindText": "string", "kind": "primitive", + "primitiveKind": "string", "purpose": "parameter_base_constraint", "children": [], "_id": "1"