Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] What'is FieldAccess?[ In PHPSelectionEngine.JAVA internalASTResolve() ]

hi,

try:
<?php

class a
{
    public $a;

}
$a  = new a();
$a->a;
?>

On Mon, Mar 19, 2012 at 8:41 PM, YuHong Yang <yangtclive@xxxxxxxxx> wrote:
In PHPSelectionEngine.JAVA  (org.eclipse.php.internal.core.codeassist)
the function :

private IModelElement[] internalASTResolve(ISourceModule sourceModule,
                       int offset, int end)


I have no idea what php code could invoke JAVA code  below :

line 370:
else if (node instanceof FieldAccess) {
       FieldAccess fieldAccess = (FieldAccess) node;
            ...
I mean I have tried many php code in PDT,
but I can't find the case that matches 'node instanceof FieldAccess'.
does anybody know this?


--
Best Regards

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



--

Thanks!

Best Regards!

Zhao

Back to the top