简体   繁体   English

是否有适用于Firefox XPCOM的JSDoc文件?

[英]Are there JSDoc files for Firefox XPCOM?

While I know much of XPCOM is implemented in C++, it would still be great to have JavaScript stubs with empty functions, constants, and JSDoc. 虽然我知道很多XPCOM是用C ++实现的,但是拥有空函数,常量和JSDoc的JavaScript存根仍然很棒。 These could be used to support code completion, inspection, quick doc, and other features of IDEs like WebStorm (IntelliJ). 这些可用于支持WebStorm(IntelliJ)等IDE的代码完成,检查,快速文档和其他功能。

It would be great if this just existed somewhere (but I haven't found it). 如果这只是存在于某个地方(但我还没有找到它)会很棒。 Another approach would be to try and generate them from the IDL, but I haven't found aa way to do that either. 另一种方法是尝试从IDL生成它们,但我还没有找到一种方法。 I have question on that at Are there JSDoc files for Firefox XPCOM? 对Firefox XPCOM的JSDoc文件有疑问吗? .

I wrote a PHP script once, which generates PHP stubs from PHPDoc available at http://www.php.net for providing code assist in Eclipse PDT . 我编写了一个PHP脚本 ,它从http://www.php.net上的 PHPDoc生成PHP存根,用于在Eclipse PDT中提供代码辅助。 You can use similar approach to generate JSDoc from XPCOM Doxygen . 您可以使用类似的方法从XPCOM Doxygen生成JSDoc。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM