@spyglassmc/mcdoc 0.3.21 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/binder/index.js +8 -2
- package/package.json +2 -2
package/lib/binder/index.js
CHANGED
|
@@ -561,7 +561,10 @@ function convertEnum(node, ctx) {
|
|
|
561
561
|
const { block, enumKind, identifier } = EnumNode.destruct(node);
|
|
562
562
|
// Return reference if the enum has been hoisted
|
|
563
563
|
if (identifier && !ctx.isHoisting) {
|
|
564
|
-
return
|
|
564
|
+
return wrapType(node, {
|
|
565
|
+
kind: 'reference',
|
|
566
|
+
path: `${ctx.moduleIdentifier}::${identifier.value}`,
|
|
567
|
+
}, ctx);
|
|
565
568
|
}
|
|
566
569
|
// Shortcut if the typeDef has been added to the enum symbol.
|
|
567
570
|
const symbol = identifier?.symbol ?? node.symbol;
|
|
@@ -594,7 +597,10 @@ function convertStruct(node, ctx) {
|
|
|
594
597
|
const { block, identifier } = StructNode.destruct(node);
|
|
595
598
|
// Return reference if the struct has been hoisted
|
|
596
599
|
if (identifier && !ctx.isHoisting) {
|
|
597
|
-
return
|
|
600
|
+
return wrapType(node, {
|
|
601
|
+
kind: 'reference',
|
|
602
|
+
path: `${ctx.moduleIdentifier}::${identifier.value}`,
|
|
603
|
+
}, ctx);
|
|
598
604
|
}
|
|
599
605
|
// Shortcut if the typeDef has been added to the struct symbol.
|
|
600
606
|
const symbol = identifier?.symbol ?? node.symbol;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/mcdoc",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/SpyglassMC/Spyglass/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@spyglassmc/core": "0.4.
|
|
28
|
+
"@spyglassmc/core": "0.4.19",
|
|
29
29
|
"@spyglassmc/locales": "0.3.10"
|
|
30
30
|
}
|
|
31
31
|
}
|