Lambda expressions support: second round

- typed parameters
- type parameter list
- resolve inside lambda
This commit is contained in:
Roman Shevchenko
2012-06-08 14:34:03 +04:00
parent 54e2d2c005
commit ee50d99da0
15 changed files with 444 additions and 58 deletions
@@ -22,6 +22,14 @@ import org.jetbrains.annotations.Nullable;
* Represents a Java lambda expression.
*/
public interface PsiLambdaExpression extends PsiExpression {
/**
* Returns this lambda expression's type parameter list (if any).
*
* @return type parameter list or null.
*/
@Nullable
PsiTypeParameterList getTypeParameterList();
/**
* Returns this lambda expression's parameter list.
*
@@ -31,7 +39,8 @@ public interface PsiLambdaExpression extends PsiExpression {
PsiParameterList getParameterList();
/**
* Returns PSI element representing lambda expression body: {@link PsiCodeBlock}, {@link PsiExpression}, or null if none.
* Returns PSI element representing lambda expression body: {@link PsiCodeBlock}, {@link PsiExpression},
* or null if the expression is incomplete.
*
* @return lambda expression body.
*/