FeatReq: Find symbol

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

FeatReq: Find symbol

Postby BladeMF » October 12th, 2012, 3:27 pm

I kinda think that if you have complete intellisense and the user has documented all un-inferrable instances, it would make a lot of sense.

Anyway this feature deserves some thinking. I believe you guys should be quite good in static PHP analysis - it may be even possible to know the return value of a function withouth the user actually declaring it in a PHP comment. I imagine it will be slow, but it would make A LOT of sense.
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: FeatReq: Find symbol

Postby Jakub Misek » October 12th, 2012, 4:06 pm

Yes, PHP Tools actually does that.
Code: Select all
$x = new X;
return $x;

Is simple case, where no PHPDoc is needed.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: FeatReq: Find symbol

Postby BladeMF » October 13th, 2012, 6:50 am

You'd think I'd notice that :) I mean something more like this:

Code: Select all
function A(){
  $x = new X();
  return $x;
}

$g = A();
// here you get the members for class X on $g.
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 38 guests

cron

User Control Panel

Login

Who is online

In total there are 38 users online :: 0 registered, 0 hidden and 38 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 38 guests