public Tree visitLambdaExpression()

in javac-ref-scanner-8/src/org/jetbrains/jps/javac/ast/Javac8RefScanner.java [21:34]


  public Tree visitLambdaExpression(LambdaExpressionTree node, JavacReferenceCollectorListener.ReferenceCollector refCollector) {
    final TypeMirror type = refCollector.getType(node);
    Types types = refCollector.getTypeUtility();
    if (types != null && type != null) {
      final Element element = types.asElement(type);
      if (element != null) {
        final JavacRef.JavacElementRefBase ref = refCollector.asJavacRef(getCurrentEnclosingTypeElement(), element);
        if (ref != null) {
          refCollector.sinkDeclaration(new JavacDef.JavacFunExprDef(ref));
        }
      }
    }
    return super.visitLambdaExpression(node, refCollector);
  }