Lines Matching refs:Code
49 // Code from method that is defined in class body should be extracted to a
70 CodeRangeASTSelection Code,
75 if (!Code.isInFunctionLikeBodyOfCode())
79 if (Code.size() == 1) {
81 if (isSimpleExpression(dyn_cast<Expr>(Code[0])))
86 if (const auto *PRE = dyn_cast<ObjCPropertyRefExpr>(Code[0])) {
93 return ExtractFunction(std::move(Code), DeclName);
100 const Decl *ParentDecl = Code.getFunctionLikeNearestParent();
104 SourceRange ExtractedRange(Code[0]->getBeginLoc(),
105 Code[Code.size() - 1]->getEndLoc());
119 bool IsExpr = Code.size() == 1 && isa<Expr>(Code[0]);
122 ReturnType = cast<Expr>(Code[0])->getType();
149 Code[Code.size() - 1], ExtractedRange, SM, LangOpts);