@coze-editor/code-language-typescript 0.1.0-alpha.1bed7f → 0.1.0-alpha.241d91

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/worker.js CHANGED
@@ -39643,6 +39643,9 @@ var TypeScriptWorker = class _TypeScriptWorker {
39643
39643
  if (!node) {
39644
39644
  return null;
39645
39645
  }
39646
+ if (node === sourceFile) {
39647
+ return null;
39648
+ }
39646
39649
  const type = checker.getTypeAtLocation(node);
39647
39650
  if (!type.isClassOrInterface()) {
39648
39651
  return null;