Lines Matching refs:Code
70 CodeRangeASTSelection Code, in initiate() argument
75 if (!Code.isInFunctionLikeBodyOfCode()) in initiate()
79 if (Code.size() == 1) { in initiate()
81 if (isSimpleExpression(dyn_cast<Expr>(Code[0]))) in initiate()
86 if (const auto *PRE = dyn_cast<ObjCPropertyRefExpr>(Code[0])) { in initiate()
93 return ExtractFunction(std::move(Code), DeclName); in initiate()
100 const Decl *ParentDecl = Code.getFunctionLikeNearestParent(); in createSourceReplacements()
104 SourceRange ExtractedRange(Code[0]->getBeginLoc(), in createSourceReplacements()
105 Code[Code.size() - 1]->getEndLoc()); in createSourceReplacements()
119 bool IsExpr = Code.size() == 1 && isa<Expr>(Code[0]); in createSourceReplacements()
122 ReturnType = cast<Expr>(Code[0])->getType(); in createSourceReplacements()
149 Code[Code.size() - 1], ExtractedRange, SM, LangOpts); in createSourceReplacements()