Home
last modified time | relevance | path

Searched refs:getBegin (Results 1 – 25 of 183) sorted by relevance

12345678

/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_utils_PositionUtils.txt12 Line 71) signum(a.getBegin().line - b.getBegin().line) ==> java.lang.Integer.signum(int)
13 Line 71) a.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
14 Line 71) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
15 Line 73) signum(a.getBegin().column - b.getBegin().column) ==> java.lang.Integer.signum(int)
16 Line 73) a.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
17 Line 73) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
24 …94) beginNodeWithoutConsideringAnnotations(node).getBegin() ==> com.github.javaparser.ast.Node.get…
26 …99) beginNodeWithoutConsideringAnnotations(node).getBegin() ==> com.github.javaparser.ast.Node.get…
35 Line 126) contained.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
36 Line 127) contained.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
[all …]
Dcom_github_javaparser_ast_comments_CommentsCollection.txt19 Line 73) c.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
20 Line 73) comment.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
21 Line 74) c.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
22 Line 74) comment.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
Dcom_github_javaparser_CommentsInserter.txt22 Line 116) comment.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
37 Line 166) node.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
38 Line 166) lineComment.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
49 Line 195) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
Dcom_github_javaparser_ast_Node.txt1 …Line 46) a.getBegin().compareTo(b.getBegin()) ==> com.github.javaparser.Position.compareTo(com.git…
2 Line 46) a.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
3 Line 46) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/utils/
DPositionUtils.java71 int signLine = signum( a.getBegin().line - b.getBegin().line ); in compare()
73 return signum(a.getBegin().column - b.getBegin().column); in compare()
94 return beginNodeWithoutConsideringAnnotations(node).getBegin().line; in beginLineWithoutConsideringAnnotation()
99 return beginNodeWithoutConsideringAnnotations(node).getBegin().column; in beginColumnWithoutConsideringAnnotation()
126 if (bl>contained.getBegin().line) return false; in nodeContains()
127 if (bl==contained.getBegin().line && bc>contained.getBegin().column) return false; in nodeContains()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_SourceFileInfoExtractor.txt31 …Line 140) out.println(" Line " + node.getBegin().get().line + ") " + node + " ==> " + toString((M…
32 Line 140) node.getBegin().get() ==> java.util.Optional.get()
33 Line 140) node.getBegin() ==> com.github.javaparser.ast.nodeTypes.NodeWithRange.getBegin()
40 …Line 152) System.err.println("Error resolving call at L" + node.getBegin().get().line + ": " + nod…
41 Line 152) node.getBegin().get() ==> java.util.Optional.get()
42 Line 152) node.getBegin() ==> com.github.javaparser.ast.nodeTypes.NodeWithRange.getBegin()
48 …Line 170) nodes.sort((n1, n2) -> n1.getBegin().get().compareTo(n2.getBegin().get())) ==> java.util…
49 …Line 170) n1.getBegin().get().compareTo(n2.getBegin().get()) ==> com.github.javaparser.Position.co…
50 Line 170) n1.getBegin().get() ==> java.util.Optional.get()
51 Line 170) n1.getBegin() ==> com.github.javaparser.ast.nodeTypes.NodeWithRange.getBegin()
[all …]
/external/clang/lib/Sema/
DSemaCast.cpp331 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast()
373 S.Diag(range.getBegin(), msg) in tryDiagnoseOverloadedCast()
391 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast()
596 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast()
606 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast()
613 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
629 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast()
636 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast()
651 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast()
658 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
[all …]
DSemaStmtAttr.cpp31 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) in handleFallThroughAttr()
42 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); in handleFallThroughAttr()
204 SourceLocation OptionLoc = LH->getRange().getBegin(); in CheckForIncompatibleAttributes()
261 S.Diag(A.getRange().getBegin(), in handleOpenCLUnrollHint()
289 S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt) in ProcessStmtAttribute()
308 return ActOnAttributedStmt(Range.getBegin(), Attrs, S); in ProcessStmtAttributes()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp193 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToSubscriptGetCommon()
194 ArgRange.getBegin()), in rewriteToSubscriptGetCommon()
196 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon()
242 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToArraySubscriptSet()
243 Arg0Range.getBegin()), in rewriteToArraySubscriptSet()
245 commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet()
246 Arg1Range.getBegin()), in rewriteToArraySubscriptSet()
248 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet()
250 commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet()
251 Arg1Range.getBegin()), in rewriteToArraySubscriptSet()
[all …]
DCommit.cpp77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
94 addRemove(range.getBegin(), Offs, Len); in remove()
100 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap()
117 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
122 addRemove(range.getBegin(), Offs, Len); in replace()
123 addInsert(range.getBegin(), Offs, text, false); in replace()
153 addRemove(range.getBegin(), in replaceWithInner()
302 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange()
304 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange()
311 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp73 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID()
129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
135 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow()
161 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
163 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange()
240 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
247 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity()
253 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity()
262 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity()
290 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity()
[all …]
/external/clang/lib/Format/
DAffectedRangeManager.cpp65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange()
66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
75 SourceLocation Start = First.WhitespaceRange.getBegin(); in affectsTokenRange()
86 Tok.WhitespaceRange.getBegin(), in affectsLeadingEmptyLines()
87 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
DWhitespaceManager.cpp24 C1.OriginalWhitespaceRange.getBegin(), in operator ()()
25 C2.OriginalWhitespaceRange.getBegin()); in operator ()()
113 SourceMgr.getFileOffset(Changes[i].OriginalWhitespaceRange.getBegin()); in calculateLineBreakInformation()
478 assert(Changes[i - 1].OriginalWhitespaceRange.getBegin() != in generateChanges()
479 C.OriginalWhitespaceRange.getBegin() && in generateChanges()
500 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
502 if (StringRef(SourceMgr.getCharacterData(Range.getBegin()), in storeReplacement()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/comments/
DCommentsCollection.java73 if (c.getBegin().line == comment.getBegin().line && in contains()
74 c.getBegin().column == comment.getBegin().column && in contains()
/external/clang/lib/Rewrite/
DRewriter.cpp126 if (!isRewritable(Range.getBegin()) || in getRangeSize()
132 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize()
169 if (!isRewritable(Range.getBegin()) || in getRewrittenText()
175 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText()
187 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText()
314 if (!isRewritable(range.getBegin())) return true; in ReplaceText()
317 SourceLocation start = range.getBegin(); in ReplaceText()
321 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText()
330 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation()
337 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DTokenRangeTest.java26 tokenRange.getBegin().insertAfter(new JavaToken(1, "feif")); in renumberRangesWorks()
27 …tokenRange.getBegin().getNextToken().get().getNextToken().get().insert(new JavaToken(JavaToken.Kin… in renumberRangesWorks()
37 Optional<JavaToken> token = node.getTokenRange().map(TokenRange::getBegin); in makeRangesString()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/
DCommentsInserter.java116 if (child.getEnd().line == comment.getBegin().line in insertComments()
166 if (node.getBegin().line == lineComment.getBegin().line in attributeLineCommentToNodeOrChild()
195 return b.getBegin().line > (endOfA + 1); in thereAreLinesBetween()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DProblem.java72 …return getLocation().map(l -> l.getBegin().getRange().map(r -> r.begin.toString()).orElse("(line ?… in getVerboseMessage()
93 …final Optional<Position> aBegin= a.getLocation().flatMap(l -> l.getBegin().getRange().map(r -> r.b…
94 …final Optional<Position> bBegin = b.getLocation().flatMap(l -> l.getBegin().getRange().map(r -> r.…
/external/clang/lib/Frontend/Rewrite/
DFixItRewriter.cpp68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
155 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
162 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
165 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
/external/clang/unittests/Tooling/
DFixItTest.cpp128 LocationToString(Hint0.RemoveRange.getBegin(), Context)); in TEST()
137 LocationToString(Hint1.RemoveRange.getBegin(), Context)); in TEST()
149 LocationToString(Hint.RemoveRange.getBegin(), Context)); in TEST()
197 LocationToString(Hint.RemoveRange.getBegin(), Context)); in TEST()
212 LocationToString(Hint.RemoveRange.getBegin(), Context)); in TEST()
/external/clang/lib/AST/
DRawCommentList.cpp115 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
128 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
158 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
188 Range.getBegin(), in extractBriefText()
210 getSourceRange().getBegin(), in parse()
/external/clang/include/clang/Rewrite/Core/
DRewriter.h126 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
131 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
144 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/
DSourceFileInfoExtractor.java140 …out.println(" Line " + node.getBegin().get().line + ") " + node + " ==> " + toString((MethodCallE… in solveMethodCalls()
152 … System.err.println("Error resolving call at L" + node.getBegin().get().line + ": " + node); in toString()
170 nodes.sort((n1, n2) -> n1.getBegin().get().compareTo(n2.getBegin().get())); in collectAllNodes()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DASTParser.java112 … ret = new LambdaExpr(range(ret.getBegin(), lambdaBody.getEnd()), params, lambdaBody, true); in generateLambda()
114 … ret = new LambdaExpr(range(ret.getBegin(), lambdaBody.getEnd()), null, lambdaBody, true); in generateLambda()
208 begin = begin.orIfInvalid(pakage.getBegin()); in CompilationUnit()
227 begin = begin.orIfInvalid(in.getBegin()); imports = add(imports, in); in CompilationUnit()
232 begin = begin.orIfInvalid(in.getBegin()); imports = add(imports, in); in CompilationUnit()
268 begin = begin.orIfInvalid(tn.getBegin()); types = add(types, tn); in CompilationUnit()
411 annotations = add(annotations, ann); begin = begin.orIfInvalid(ann.getBegin()); in Modifiers()
716 annotations = add(annotations, ann); begin = begin.orIfInvalid(ann.getBegin()); in EnumConstantDeclaration()
1016 Position begin = modifier.begin.orIfInvalid(type.getBegin()); in FieldDeclaration()
1034 return new VariableDeclarator(range(id.getBegin(), tokenEnd()), id, init); in VariableDeclarator()
[all …]
/external/clang/lib/ARCMigrate/
DTransformActions.cpp69 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange()
325 insert(range.getBegin(), text); in replace()
409 return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd()); in canRemoveRange()
456 commitInsert(E->getSourceRange().getBegin(), getARCMTMacroName()); in commitRemoveStmt()
470 if (range.getBegin() != replacementRange.getBegin()) in commitReplace()
471 addRemoval(CharSourceRange::getCharRange(range.getBegin(), in commitReplace()
472 replacementRange.getBegin())); in commitReplace()

12345678