| Summary: | Initial commit of doctrine jsdoc support | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Andrew Eisenberg <andrew.eisenberg> |
| Component: | Editor | Assignee: | Project Inbox <orion.editor-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker, simon_kaegi |
| Version: | 1.0 | Flags: | simon_kaegi:
review+
ken_walker: review+ |
| Target Milestone: | 1.0 RC3 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Andrew Eisenberg
Adding Simon to review this code contribution.
To make sure this is working, add this to an empty js file:
/** @type {{val:string}} */
var kkk;
kkk.val.|
Invoke content assist at the | and you should be getting String proposals.
Also, try this:
/**
* @param {Number} foo
* @return {string}
*/
function myFun(foo) {
foo.
}
myFun().
Inside of the function, you should be getting number-like content assist for foo. And string-like content assist for myFun() outside of the function.
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?h=doctrine-support&id=c22f30a2790b316abff13b971377c49317f14d21 Looks good. Are you going to re-enable the tests? I'm assuming you are... For purposes of review I was more checking file layouts etc and looked at the diff but did not test it directly. I will try it out more rigorously in tomorrows build. The tests are set up so that if the doctrine library actually exists, then they run automatically. So, tests will be automatically enabled when merged with master. Have looked at this much the same as Simon. Works as advertised. Please commit for tonights build. Thanks for the reviews. Merged with master. The doctrine-support branch is now no longer needed. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=76dcc81ad1e80748a037f4ce8346d6bc96d615c5 Will be in the next nightly build. |