You can get it by invoking 

fethodInvocation.getFunction(); 

 

Also I suggest you to browse our unit tests (under org.eclipse.php.tests) and 
investigate sample AST structures.

 

- Roy

 

________________________________

From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
Behalf Of ???
Sent: Friday, April 17, 2009 10:20 AM
To: PDT Developers
Subject: Re: [pdt-dev] wiki about semantic highlighting

 

i have some questions,first:   

 

 public static function getResourceModel($modelClass, $arguments=array())
    {
        return Mage::getConfig()->getResourceModelInstance($modelClass, 
$arguments);
    }

 

how could i get getResourceModelInstance's FunctionDeclaration in the ast tree?

functionInvocation.resolveFunctionBinding() or 
fethodInvocation.resolveMethodBinding() returns null.

 

how to do this?

need i depend on SearchEngine or some other classes?



 

2009/4/17 赵忠伟 <zhaozhong...@eclipseworld.org>

Can you provide an example for each Semantic Highlighting you listed in the 
page?

 

 

ok, i will.

 

thank you for your reply!

2009/4/17 Roy Ganor <r...@zend.com>

Hi,

Thank you for posting this in here, maybe these semantic highlighting rules 
would be useful as well:

 

1.      Global Variables �C 

 

        a.      <?php 
        b.          $a = 5;
        c.      ?>

 

2.      DeprecatedMember / DeprecatedFunction �C strike deprecated elements. 
See 
http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_tags.deprecated.pkg.html

1.    /**

2.     * @deprecated deprecated since version 2.0

3.     */

4.    function uselessfunction() {  }

5.    uselessfunction()

3.      FunctionDeclaration - you listed method but in PHP globl functions can 
also be defined  (actually you can unite the functions / methods declarations 
rule). 

1.    function myFunc() {  }

2.    myFunc ();

3.    class A { function myMethod() {  } }

4.    $a = new A(); $a->myMethod ();

 

4.      Global “define” statements

1.    define( “ADMIN”, “administrator”);

2.    echo ADMIN;

And there are more :-)

Can you provide an example for each Semantic Highlighting you listed in the 
page?

 

Roy

 

 

________________________________

From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
Behalf Of ???
Sent: Thursday, April 16, 2009 3:02 PM
To: PDT Developers
Subject: [pdt-dev] wiki about semantic highlighting

 

http://wiki.eclipse.org/PDT/Dev2Dev/Semantic

i have just written a will on the above page.

i have finished two semantic highlighting,and listed some other semantic 
highlightings that will be done.

i hope someone to see it if i missed some semantic highlightings,and maybe 
there aresome semantic highlightings that listed do not belong to pdt.

thank you in advance!

 

_______________________________________________
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

 

 

_______________________________________________
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

Reply via email to