Bug 245926 - PHPDoc code completion enhancements
Summary: PHPDoc code completion enhancements
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Michael Spector CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-02 01:13 EDT by Tom Walter CLA
Modified: 2020-05-14 10:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Walter CLA 2008-09-02 01:13:07 EDT
Build ID: M20080221-1800

Steps To Reproduce:
PHPDoc code completion works very well in the case that you create the doc comment after creating the function. 

However it's not so easy when modifying a function that already has docs, or when trying to write the docs before writing the function.

See more info for a few suggestions for possible improvements to PHPDoc code completion for those other situations.

More information:
/**
 * @param | <- suggest 'Type1 $v1' or 'Type2 $v2'
 */
function myFunc(Type1 $v1, Type2 $v2) {...}

/**
 * @param | <- suggest all known types
 */
function myFunc() {...}

/**
 * @param Blah| <- suggest types starting with Blah
 */
function myFunc() {...}

/**
 * @return | <- suggest known types
 */
function myFunc() {...}

/**
 * @return Blah| <- suggest types starting with Blah
 */
function myFunc() {...}

/**
 * @var | <- suggest known types
 */
var $someVar;

/**
 * @var Blah| <- suggest types starting with Blah
 */
var $someVar;


foreach ($array as $someVar) 
{
    /* @var $| <- suggest in scope variables
}

foreach ($array as $someVar) 
{
    /* @var $someVar | <- suggest known types
}

foreach ($array as $someVar) 
{
    /* @var $someVar Blah| <- suggest types starting with Blah
}