Lines Matching refs:Code
71 CodeRangeASTSelection Code, in initiate() argument
76 if (!Code.isInFunctionLikeBodyOfCode()) in initiate()
80 if (Code.size() == 1) { in initiate()
82 if (isSimpleExpression(dyn_cast<Expr>(Code[0]))) in initiate()
87 if (const auto *PRE = dyn_cast<ObjCPropertyRefExpr>(Code[0])) { in initiate()
94 return ExtractFunction(std::move(Code), DeclName); in initiate()
101 const Decl *ParentDecl = Code.getFunctionLikeNearestParent(); in createSourceReplacements()
105 SourceRange ExtractedRange(Code[0]->getBeginLoc(), in createSourceReplacements()
106 Code[Code.size() - 1]->getEndLoc()); in createSourceReplacements()
120 bool IsExpr = Code.size() == 1 && isa<Expr>(Code[0]); in createSourceReplacements()
123 ReturnType = cast<Expr>(Code[0])->getType(); in createSourceReplacements()
150 Code[Code.size() - 1], ExtractedRange, SM, LangOpts); in createSourceReplacements()