/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ |
D | LambdaExpr.java | 61 public class LambdaExpr extends Expression implements NodeWithParameters<LambdaExpr> { class 69 public LambdaExpr() { in LambdaExpr() method in LambdaExpr 76 public LambdaExpr(Parameter parameter, BlockStmt body) { in LambdaExpr() method in LambdaExpr 83 public LambdaExpr(NodeList<Parameter> parameters, BlockStmt body) { in LambdaExpr() method in LambdaExpr 90 public LambdaExpr(Parameter parameter, Expression body) { in LambdaExpr() method in LambdaExpr 97 public LambdaExpr(NodeList<Parameter> parameters, Expression body) { in LambdaExpr() method in LambdaExpr 102 … public LambdaExpr(NodeList<Parameter> parameters, Statement body, boolean isEnclosingParameters) { in LambdaExpr() method in LambdaExpr 110 …public LambdaExpr(TokenRange tokenRange, NodeList<Parameter> parameters, Statement body, boolean i… in LambdaExpr() method in LambdaExpr 124 public LambdaExpr setParameters(final NodeList<Parameter> parameters) { in setParameters() 127 return (LambdaExpr) this; in setParameters() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | LambdaExprTest.java | 36 LambdaExpr lambdaExpr = parseExpression("x -> y").asLambdaExpr(); in getExpressionBody() 42 LambdaExpr lambdaExpr = parseExpression("x -> {y;}").asLambdaExpr(); in getNoExpressionBody() 48 … LambdaExpr expr = new LambdaExpr(new Parameter(new UnknownType(), "a"), parseExpression("5")); in oneParameterAndExpressionUtilityConstructor() 54 …LambdaExpr expr = new LambdaExpr(new Parameter(new UnknownType(), "a"), parseBlock("{return 5;}")); in oneParameterAndStatementUtilityConstructor() 60 …LambdaExpr expr = new LambdaExpr(new NodeList<>(new Parameter(new UnknownType(), "a"), new Paramet… in multipleParametersAndExpressionUtilityConstructor() 66 …LambdaExpr expr = new LambdaExpr(new NodeList<>(new Parameter(new UnknownType(), "a"), new Paramet… in multipleParametersAndStatementUtilityConstructor() 72 LambdaExpr expr = new LambdaExpr(new NodeList<>(), parseBlock("{return 5;}")); in zeroParametersAndStatementUtilityConstructor()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | TypeInferenceCache.java | 3 import com.github.javaparser.ast.expr.LambdaExpr; 14 …private static Map<TypeSolver, IdentityHashMap<LambdaExpr, Map<String, ResolvedType>>> typeForLamb… 15 …private static Map<TypeSolver, IdentityHashMap<LambdaExpr, List<InferenceVariable>>> inferenceVari… 17 …public static void record(TypeSolver typeSolver, LambdaExpr lambdaExpr, String paramName, Resolved… in record() 27 …public static Optional<ResolvedType> retrieve(TypeSolver typeSolver, LambdaExpr lambdaExpr, String… in retrieve() 40 …public static void recordInferenceVariables(TypeSolver typeSolver, LambdaExpr lambdaExpr, List<Inf… in recordInferenceVariables() 47 …List<InferenceVariable>> retrieveInferenceVariables(TypeSolver typeSolver, LambdaExpr lambdaExpr) { in retrieveInferenceVariables()
|
D | TypeInference.java | 331 public void functionalInterfaceParameterizationInference(LambdaExpr lambdaExpr, in functionalInterfaceParameterizationInference() 568 private boolean isImplicitlyTyped(LambdaExpr lambdaExpr) { in isImplicitlyTyped() 582 if (argument instanceof LambdaExpr) { in isPertinentToApplicability() 583 LambdaExpr lambdaExpr = (LambdaExpr)argument; in isPertinentToApplicability() 602 if (argument instanceof LambdaExpr) { in isPertinentToApplicability() 612 if (argument instanceof LambdaExpr) { in isPertinentToApplicability() 619 if (argument instanceof LambdaExpr) { in isPertinentToApplicability()
|
D | ExpressionHelper.java | 80 if (expression instanceof LambdaExpr) { in isPolyExpression() 126 public static boolean isExplicitlyTyped(LambdaExpr lambdaExpr) { in isExplicitlyTyped()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/ |
D | LambdaExpr.java | 39 public class LambdaExpr extends Expression { class 47 public LambdaExpr() { in LambdaExpr() method in LambdaExpr 50 public LambdaExpr(Range range, List<Parameter> parameters, Statement body, in LambdaExpr() method in LambdaExpr 64 public LambdaExpr setParameters(List<Parameter> parameters) { in setParameters() 74 public LambdaExpr setBody(Statement body) { in setBody() 94 public LambdaExpr setParametersEnclosed(boolean parametersEnclosed) { in setParametersEnclosed()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/ |
D | com_github_javaparser_ast_expr_LambdaExpr.txt | 1 …Line 54) setParameters(parameters) ==> com.github.javaparser.ast.expr.LambdaExpr.setParameters(jav… 2 …Line 55) setBody(body) ==> com.github.javaparser.ast.expr.LambdaExpr.setBody(com.github.javaparser… 3 …Line 56) setParametersEnclosed(parametersEnclosed) ==> com.github.javaparser.ast.expr.LambdaExpr.s… 7 …om.github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.expr.LambdaExpr, A) 8 …> com.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.expr.LambdaExpr, A)
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ |
D | LambdaExprContextResolutionTest.java | 22 import com.github.javaparser.ast.expr.LambdaExpr; 65 LambdaExpr lambdaExpr = (LambdaExpr) methodCallExpr.getArguments().get(0); in solveParameterOfLambdaInMethodCallExpr() 80 LambdaExpr lambdaExpr = (LambdaExpr) field.getInitializer().get(); in solveParameterOfLambdaInFieldDecl() 101 LambdaExpr lambdaExpr = (LambdaExpr) varDecl.getInitializer().get(); in solveParameterOfLambdaInVarDecl()
|
/external/llvm-project/clang/lib/AST/ |
D | ExprCXX.cpp | 1122 LambdaExpr::LambdaExpr(QualType T, SourceRange IntroducerRange, in LambdaExpr() function in LambdaExpr 1152 LambdaExpr::LambdaExpr(EmptyShell Empty, unsigned NumCaptures) in LambdaExpr() function in LambdaExpr 1161 LambdaExpr *LambdaExpr::Create(const ASTContext &Context, CXXRecordDecl *Class, in Create() 1176 LambdaExpr(T, IntroducerRange, CaptureDefault, CaptureDefaultLoc, in Create() 1181 LambdaExpr *LambdaExpr::CreateDeserialized(const ASTContext &C, in CreateDeserialized() 1185 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures); in CreateDeserialized() 1188 void LambdaExpr::initBodyIfNeeded() const { in initBodyIfNeeded() 1190 auto *This = const_cast<LambdaExpr *>(this); in initBodyIfNeeded() 1195 Stmt *LambdaExpr::getBody() const { in getBody() 1200 const CompoundStmt *LambdaExpr::getCompoundStmtBody() const { in getCompoundStmtBody() [all …]
|
/external/clang/lib/AST/ |
D | ExprCXX.cpp | 851 LambdaExpr::LambdaExpr(QualType T, SourceRange IntroducerRange, in LambdaExpr() function in LambdaExpr 907 LambdaExpr *LambdaExpr::Create( in Create() 922 return new (Mem) LambdaExpr(T, IntroducerRange, in Create() 929 LambdaExpr *LambdaExpr::CreateDeserialized(const ASTContext &C, in CreateDeserialized() 936 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures, NumArrayIndexVars > 0); in CreateDeserialized() 939 bool LambdaExpr::isInitCapture(const LambdaCapture *C) const { in isInitCapture() 944 LambdaExpr::capture_iterator LambdaExpr::capture_begin() const { in capture_begin() 948 LambdaExpr::capture_iterator LambdaExpr::capture_end() const { in capture_end() 952 LambdaExpr::capture_range LambdaExpr::captures() const { in captures() 956 LambdaExpr::capture_iterator LambdaExpr::explicit_capture_begin() const { in explicit_capture_begin() [all …]
|
/external/clang/unittests/Tooling/ |
D | RecursiveASTVisitorTest.cpp | 19 bool VisitLambdaExpr(LambdaExpr *Lambda) { in VisitLambdaExpr() 26 bool TraverseLambdaBody(LambdaExpr *Lambda) { in TraverseLambdaBody() 38 std::stack<LambdaExpr *> PendingBodies; 59 bool VisitLambdaExpr(LambdaExpr *Lambda) { in VisitLambdaExpr()
|
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ |
D | ParsingSteps.java | 149 …LambdaExpr lambdaExpr = getLambdaExprInStatementInMethodInClass(statementPosition, methodPosition,… in thenLambdaInStatementInMethodInClassBody() 161 LambdaExpr lambdaExpr = castExpr.getExpression().asLambdaExpr(); in thenLambdaInMethodCallInStatementInMethodInClassBody() 167 …LambdaExpr lambdaExpr = getLambdaExprInStatementInMethodInClass(statementPosition, methodPosition,… in thenLambdaInStatementInMethodInClassBlockStatementIsNull() 174 …LambdaExpr lambdaExpr = getLambdaExprInStatementInMethodInClass(statementPosition, methodPosition,… in thenLambdaInStatementInMethodInClassHasParametersWithNonNullType() 183 …LambdaExpr lambdaExpr = getLambdaExprInStatementInMethodInClass(statementPosition, methodPosition,… in thenLambdaInStatementInMethodInClassBlockStatement() 191 …LambdaExpr lambdaExpr = getLambdaExprInStatementInMethodInClass(statementPosition, methodPosition,… in thenLambdaInStatementInMethodInClassIsParentOfContainedBody() 198 …LambdaExpr lambdaExpr = getLambdaExprInStatementInMethodInClass(statementPosition, methodPosition,… in thenLambdaInStatementInMethodInClassIsParentOfContainedParameter() 243 …private LambdaExpr getLambdaExprInStatementInMethodInClass(int statementPosition, int methodPositi… in getLambdaExprInStatementInMethodInClass() 247 return (LambdaExpr) variableDeclarator.getInitializer().orElse(null); in getLambdaExprInStatementInMethodInClass() 270 … assertThat(conditionalExpr.getElseExpr().getClass().getName(), is(LambdaExpr.class.getName())); in thenLambdaInConditionalExpressionInMethodInClassIsParentOfContainedParameter()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/expr/ |
D | LambdaExpr.java | 37 public class LambdaExpr extends Expression { class 45 public LambdaExpr() { in LambdaExpr() method in LambdaExpr 48 public LambdaExpr(int beginLine, int beginColumn, int endLine, in LambdaExpr() method in LambdaExpr
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/ |
D | Issue186Test.java | 6 import com.github.javaparser.ast.expr.LambdaExpr; 38 List<LambdaExpr> lambdas = methodDeclaration.findAll(LambdaExpr.class); in lambdaPrimitivesIssue()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ |
D | LambdaThrowsCompatibleWithType.java | 3 import com.github.javaparser.ast.expr.LambdaExpr; 15 private LambdaExpr lambdaExpression;
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
D | UncountedLambdaCapturesChecker.cpp | 47 bool VisitLambdaExpr(LambdaExpr *L) { in checkASTDecl() 57 void visitLambdaExpr(LambdaExpr *L) const { in visitLambdaExpr()
|
/external/llvm-project/clang/include/clang/AST/ |
D | EvaluatedExprVisitor.h | 89 void VisitLambdaExpr(PTR(LambdaExpr) LE) { in VisitLambdaExpr() 91 for (LambdaExpr::const_capture_init_iterator I = LE->capture_init_begin(), in VisitLambdaExpr()
|
/external/clang/include/clang/AST/ |
D | EvaluatedExprVisitor.h | 89 void VisitLambdaExpr(PTR(LambdaExpr) LE) { in VisitLambdaExpr() 91 for (LambdaExpr::const_capture_init_iterator I = LE->capture_init_begin(), in VisitLambdaExpr()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/ |
D | JavaParserFacade.java | 231 … if (parameterValue instanceof LambdaExpr || parameterValue instanceof MethodReferenceExpr) { in solveArguments() 324 if (node instanceof LambdaExpr) { in find() 325 return find(map, (LambdaExpr) node); in find() 337 private Optional<Type> find(Map<Node, Type> map, LambdaExpr lambdaExpr) { in find() 339 if (key instanceof LambdaExpr) { in find() 340 LambdaExpr keyLambdaExpr = (LambdaExpr) key; in find()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/ |
D | VarValidator.java | 7 import com.github.javaparser.ast.expr.LambdaExpr; 36 .map((Node p) -> p instanceof LambdaExpr).orElse(false); in accept()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | StatementContext.java | 19 import com.github.javaparser.ast.expr.LambdaExpr; 114 if (requireParentNode(wrappedNode) instanceof LambdaExpr) { in solveSymbolAsValue() 163 if (requireParentNode(wrappedNode) instanceof LambdaExpr) { in solveSymbol()
|
D | LambdaExprContext.java | 23 import com.github.javaparser.ast.expr.LambdaExpr; 50 public class LambdaExprContext extends AbstractJavaParserContext<LambdaExpr> { 52 public LambdaExprContext(LambdaExpr wrappedNode, TypeSolver typeSolver) { in LambdaExprContext()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | LambdaExprContext.java | 22 import com.github.javaparser.ast.expr.LambdaExpr; 50 public class LambdaExprContext extends AbstractJavaParserContext<LambdaExpr> { 52 public LambdaExprContext(LambdaExpr wrappedNode, TypeSolver typeSolver) { in LambdaExprContext()
|
D | StatementContext.java | 19 import com.github.javaparser.ast.expr.LambdaExpr; 114 if (getParentNode(wrappedNode) instanceof LambdaExpr) { in solveSymbolAsValue() 163 if (getParentNode(wrappedNode) instanceof LambdaExpr) { in solveSymbol()
|
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/ |
D | GeneratedJavaParserBase.java | 262 ret = new LambdaExpr(range(ret, lambdaBody), params, lambdaBody, true); in generateLambda() 266 ret = new LambdaExpr(range(ret, lambdaBody), params, lambdaBody, false); in generateLambda() 267 } else if (ret instanceof LambdaExpr) { in generateLambda() 268 ((LambdaExpr) ret).setBody(lambdaBody); in generateLambda()
|