| Summary: | Document orion.core.astprovider | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> | ||||
| Component: | Doc | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | mamacdon, Michael_Rennie | ||||
| Version: | 4.0 | Flags: | mamacdon:
review+
|
||||
| Target Milestone: | 4.0 RC3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
John Arthorne
I added doc to the wiki: http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.core.astprovider. I will attach a patch for the JSDoc. Created attachment 236656 [details]
jsdoc updates
Here are some JSDoc updates to ast.js
Thanks for the doc work!
The one problem here is that @memberof tags need to refer to "fully-qualified" names (like orion.edit.ASTManager or orion.edit.ASTManager.prototype). With just "ASTManager" JSDoc can't figure out that you're talking about the same symbol.
E.g. this is what I get when running the the file through jsdoc2 (which is, sadly, what Orion currently uses for building our docs)
>> WARNING: Trying to document start as a member of undocumented symbol ASTManager.
>> WARNING: Trying to document stop as a member of undocumented symbol ASTManager.
>> WARNING: Trying to document updated as a member of undocumented symbol ASTManager.
>> WARNING: Trying to document getAST as a member of undocumented symbol ASTManager.
These get silently ignored when building the HTML, as they can't be connected to anything defined with an @name tag.
(In reply to Mark Macdonald from comment #3) > Thanks for the doc work! > > The one problem here is that @memberof tags need to refer to > "fully-qualified" names (like orion.edit.ASTManager or > orion.edit.ASTManager.prototype). With just "ASTManager" JSDoc can't figure > out that you're talking about the same symbol. Thanks for the pointer about the qualified names. I updated the fix and pushed it to github. The pull request is here: https://github.com/eclipse/orion.client/pull/27 |