@coze-editor/code-language-typescript 0.1.0-alpha.9459ef → 0.1.0-alpha.a96b6d
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/dist/esm/worker.js +3 -0
- package/dist/esm/worker.js.map +1 -1
- package/dist/worker.js +3 -0
- package/dist/worker.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/worker.js
CHANGED
|
@@ -39624,6 +39624,9 @@ var TypeScriptWorker = class _TypeScriptWorker {
|
|
|
39624
39624
|
if (!node) {
|
|
39625
39625
|
return null;
|
|
39626
39626
|
}
|
|
39627
|
+
if (node === sourceFile) {
|
|
39628
|
+
return null;
|
|
39629
|
+
}
|
|
39627
39630
|
const type = checker.getTypeAtLocation(node);
|
|
39628
39631
|
if (!type.isClassOrInterface()) {
|
|
39629
39632
|
return null;
|