javascript - Map function usage and declaration to quick navigation -


phpstorm has feature navigate function declaration.

in current work project faced situation usage function name generated depends of used component.

component 1

function selectonefile(id){     //complex logic } 

component 2

function selecttwofile(id){     //another complex logic } 

place function gets called

<?php $components = [0  => 'one', 1 => 'two'] ?>  var fileid = $(somecomponent).data('id'); select<?php echo $components[$_post['component_id']]  ?>file(fileid); 

i can't rewrite function be

selectfile(fileid,'<?php echo $components[$_post['component_id']]  ?>'); 

because inside logic of functions different.

also can't use 1 name function because 1 case components loaded on 1 page, , on case loaded 1 component on page.

i want navigate between function declaration , usage: when press ctrl+b on selectonefile(id) show me usage

select<?php echo $components[$_post['component_id']]  ?>file(fileid)  

and when press ctrl+b on

select<?php echo $components[$_post['component_id']]  ?>file(fileid) 

i see declarations selectonefile(id) , selecttwofile(id).

is there way make mapping between declaration , usage?


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -