| Summary: | [php5.3]add click for goto label | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Zhongwei Zhao <zhaozhongwei> |
| Component: | PDT | Assignee: | PHP UI <php.ui-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | Laurent.Lyaudet, thierryblind, wywrzal, zulus |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| See Also: |
https://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=99415f05dc157cfd16063ca3acf7e128e77fda84 https://git.eclipse.org/r/112352 |
||
| Whiteboard: | |||
|
Description
Zhongwei Zhao
Unnecessary improvement in my opinion. On monster procedural code (more than 1k lines) might be very usable for navigation ;) Occurrence for matching labels also. Hello,
A sample file to test it works in and outside function scope ><
<?php
function foo($b){
$a = null;
if($b){
goto bar;
}
//do something
$a = 'a';
bar:
//do something
$c = 'c';
return [$a, $c];
}//fin fonction foo()
//do something
$b = true;
bar:
list($a, $c) = foo($b);
if($a === null){
$b = false;
goto bar;
}
var_dump($a);
?>
Best regards,
Laurent Lyaudet
Merged. Gerrit change https://git.eclipse.org/r/112352 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=99415f05dc157cfd16063ca3acf7e128e77fda84 New Gerrit change created: https://git.eclipse.org/r/112352 |