|How does the JSDT parser differentiates between a function and a constructor [message #1728612]
||Tue, 05 April 2016 20:58
| Laleh m
Registered: May 2013
How does the parser differentiates between a function and a constructor.
In other words, how does FunctionDeclaration.setConstructor (true) is being called?
I tried to find who calls this method and I reach to
org.eclipse.wst.jsdt.core.infer.InferEngine.visit(IFunctionDeclaration) but it gets a bit confusing from here.
For example, in the following examples MyFunc1 isConstructor is "true" but MyFunc2 isConstructor is "false".
Thank you very much
Powered by FUDForum
. Page generated in 0.02305 seconds