[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 279449] New: Support inline phpdoc for typehinting variables in
From:       Jurian Sluiman <subscribe () juriansluiman ! nl>
Date:       2011-08-05 13:12:51
Message-ID: bug-279449-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=279449

           Summary: Support inline phpdoc for typehinting variables in
                    loop
           Product: kdevelop
           Version: 4.2.2
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: code completion
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: subscribe@juriansluiman.nl


Version:           4.2.2 (using KDE 4.7.0) 
OS:                Linux

The best way to explain is this piece of php code:

foreach ($list as $item) {
  /** @var $item MyFooObj */
  $item->someMethod();
}

Some IDEs support inline phpdoc to specify a type of loop variable (this case
$item) to accomplish autocompletion for MyFooObj methods (like
$item->someMethod()).

Reproducible: Always

Steps to Reproduce:
Apply above code

Actual Results:  
No autocomplete on $item, KDevelop thinks $item is mixed

Expected Results:  
Autocompletion, KDevelop think $item is a MyFooObj

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic