|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 15-21
Link Here
|
| 15 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.Binding; |
15 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.Binding; |
| 16 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.FieldBinding; |
16 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.FieldBinding; |
| 17 |
|
17 |
|
|
|
18 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.FunctionTypeBinding; |
| 18 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.InvocationSite; |
19 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.InvocationSite; |
|
|
20 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.LocalVariableBinding; |
| 19 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding; |
21 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding; |
| 20 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding; |
22 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding; |
| 21 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.TypeBinding; |
23 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.TypeBinding; |
|
Lines 77-82
Link Here
|
| 77 |
{ |
79 |
{ |
| 78 |
MethodBinding constructorBinding=(MethodBinding)alternateBinding; |
80 |
MethodBinding constructorBinding=(MethodBinding)alternateBinding; |
| 79 |
alternateBinding=constructorBinding.returnType; |
81 |
alternateBinding=constructorBinding.returnType; |
|
|
82 |
} else if(alternateBinding instanceof LocalVariableBinding) { |
| 83 |
if(((LocalVariableBinding)alternateBinding).type instanceof FunctionTypeBinding) { |
| 84 |
FunctionTypeBinding functionBinding = (FunctionTypeBinding)((LocalVariableBinding)alternateBinding).type; |
| 85 |
if(functionBinding.functionBinding.isConstructor()) { |
| 86 |
alternateBinding = functionBinding.functionBinding.returnType; |
| 87 |
} |
| 88 |
} |
| 80 |
} |
89 |
} |
| 81 |
|
90 |
|
| 82 |
return alternateBinding; |
91 |
return alternateBinding; |