Home
last modified time | relevance | path

Searched refs:getTokenRange (Results 1 – 25 of 43) sorted by relevance

12

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/
DCloneVisitor.java46 …CompilationUnit r = new CompilationUnit(n.getTokenRange().orElse(null), packageDeclaration, import… in visit()
57 … PackageDeclaration r = new PackageDeclaration(n.getTokenRange().orElse(null), annotations, name); in visit()
69 … TypeParameter r = new TypeParameter(n.getTokenRange().orElse(null), name, typeBound, annotations); in visit()
78 LineComment r = new LineComment(n.getTokenRange().orElse(null), n.getContent()); in visit()
87 BlockComment r = new BlockComment(n.getTokenRange().orElse(null), n.getContent()); in visit()
102 …ClassOrInterfaceDeclaration r = new ClassOrInterfaceDeclaration(n.getTokenRange().orElse(null), n.… in visit()
116 …EnumDeclaration r = new EnumDeclaration(n.getTokenRange().orElse(null), n.getModifiers(), annotati… in visit()
129 …EnumConstantDeclaration r = new EnumConstantDeclaration(n.getTokenRange().orElse(null), annotation… in visit()
141 …AnnotationDeclaration r = new AnnotationDeclaration(n.getTokenRange().orElse(null), n.getModifiers… in visit()
154 …AnnotationMemberDeclaration r = new AnnotationMemberDeclaration(n.getTokenRange().orElse(null), n.… in visit()
[all …]
/external/clang/include/clang/Edit/
DCommit.h92 return insertFromRange(loc, CharSourceRange::getTokenRange(TokenRange),
96 return insertWrap(before, CharSourceRange::getTokenRange(TokenRange), after); in insertWrap()
99 return remove(CharSourceRange::getTokenRange(TokenRange)); in remove()
102 return replace(CharSourceRange::getTokenRange(TokenRange), text); in replace()
105 return replaceWithInner(CharSourceRange::getTokenRange(TokenRange), in replaceWithInner()
106 CharSourceRange::getTokenRange(TokenInnerRange)); in replaceWithInner()
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/
DGeneratedJavaParserBase.java94 return new TokenRange(begin.getTokenRange().get().getBegin(), end); in range()
104 return new TokenRange(begin, end.getTokenRange().get().getEnd()); in range()
114 … return new TokenRange(begin.getTokenRange().get().getBegin(), end.getTokenRange().get().getEnd()); in range()
139 return orIfInvalid(firstChoice, secondChoice.getTokenRange().get().getBegin()); in orIfInvalid()
151 return l.get(0).getTokenRange().get().getBegin(); in nodeListBegin()
256 …olean isChildOnTheRightBorderOfParent = node.getTokenRange().get().getEnd().equals(nodeParent.getT… in propagateRangeGrowthOnRight()
272 …NodeList<Parameter> params = add(new NodeList<>(), new Parameter(ret.getTokenRange().orElse(null),… in generateLambda()
276 …NodeList<Parameter> params = add(new NodeList<>(), new Parameter(ret.getTokenRange().orElse(null),… in generateLambda()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/
DArrayType.java139 if (type.getTokenRange().isPresent() && pair.getTokenRange().isPresent()) { in wrapInArrayTypes()
140 …tokenRange = new TokenRange(type.getTokenRange().get().getBegin(), pair.getTokenRange().get().getE… in wrapInArrayTypes()
161 …arrayBracketPairs.add(new ArrayBracketPair(type.getTokenRange().orElse(null), arrayType.getOrigin(… in unwrapArrayTypes()
199 public Optional<TokenRange> getTokenRange() { in getTokenRange() method in ArrayType.ArrayBracketPair
/external/clang/unittests/Lex/
DLexerTest.cpp101 Lexer::getSourceText(CharSourceRange::getTokenRange(SourceRange( in getSourceText()
308 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F()
310 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(idLoc, rsqrLoc), in TEST_F()
313 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F()
321 CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F()
333 CharSourceRange::getTokenRange(macroLsqrLoc, macroIdLoc), in TEST_F()
338 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(macroIdLoc, macroRsqrLoc), in TEST_F()
345 CharSourceRange::getTokenRange(macroLsqrLoc, macroRsqrLoc), in TEST_F()
351 CharSourceRange::getTokenRange(SourceRange(macroLsqrLoc, macroIdLoc)), in TEST_F()
/external/clang/lib/Tooling/
DRefactoringCallbacks.cpp26 return tooling::Replacement(Sources, CharSourceRange::getTokenRange( in replaceStmtWithText()
33 CharSourceRange::getTokenRange(To.getSourceRange()), in replaceStmtWithStmt()
45 CharSourceRange::getTokenRange(FromMatch->getSourceRange()), in run()
DFixIt.cpp23 return Lexer::getSourceText(CharSourceRange::getTokenRange(Range), in getText()
/external/v8/tools/clang/base_bind_rewriters/
DBaseBindRewriters.cpp94 auto left = clang::CharSourceRange::getTokenRange( in run()
98 auto r_paren = clang::CharSourceRange::getTokenRange( in run()
113 auto left = clang::CharSourceRange::getTokenRange( in run()
123 auto left = clang::CharSourceRange::getTokenRange( in run()
171 auto range = clang::CharSourceRange::getTokenRange( in run()
215 auto const_keyword = clang::CharSourceRange::getTokenRange( in run()
218 auto lvalue_ref = clang::CharSourceRange::getTokenRange( in run()
622 auto left = clang::CharSourceRange::getTokenRange( in run()
629 auto r_paren = clang::CharSourceRange::getTokenRange( in run()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DParserConfigurationTest.java20 assertFalse(result.getResult().get().getTokenRange().isPresent()); in storeNoTokens()
21 …getResult().get().findAll(Node.class).stream().noneMatch(node -> node.getTokenRange().isPresent())… in storeNoTokens()
DTokenRangeTest.java12 …hello\n}", cu.getClassByName("X").get().getDefaultConstructor().get().getTokenRange().get().toStri… in toStringWorks()
DJavaParserTest.java177 …assertEquals(GeneratedJavaParserConstants.LPAREN, lambdaExpr.getTokenRange().get().getBegin().getK… in rangeOfLambda()
178 …assertEquals(GeneratedJavaParserConstants.RPAREN, lambdaExpr.getTokenRange().get().getEnd().getKin… in rangeOfLambda()
211 assertEquals("{}", blockStmt.getTokenRange().get().toString()); in trailingWhitespaceIsIgnored()
/external/clang/include/clang/Basic/
DSourceLocation.h233 static CharSourceRange getTokenRange(SourceRange R) { in getTokenRange() function
241 static CharSourceRange getTokenRange(SourceLocation B, SourceLocation E) { in getTokenRange() function
242 return getTokenRange(SourceRange(B, E)); in getTokenRange()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/modules/
DModuleDeclarationTest.java36 …JavaToken moduleToken = cu.getClassByName("module").get().getName().getTokenRange().get().getBegin… in moduleInfoKeywordsAreSeenAsIdentifiers()
45 … assertEquals(IDENTIFIER, requiresTransitive.getName().getTokenRange().get().getBegin().getKind()); in issue988RequireTransitiveShouldRequireAModuleCalledTransitive()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithTokenRange.java12 Optional<TokenRange> getTokenRange(); in getTokenRange() method
/external/v8/tools/clang/rewrite_scoped_refptr/
DRewriteScopedRefptr.cpp69 clang::CharSourceRange range = clang::CharSourceRange::getTokenRange( in RewriteImplicitToExplicitConversion()
84 clang::CharSourceRange::getTokenRange( in RewriteImplicitToExplicitConversion()
141 clang::CharSourceRange range = clang::CharSourceRange::getTokenRange( in RewriteRawPtrToScopedRefptr()
/external/clang/lib/ARCMigrate/
DTransformActions.cpp100 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP) in compare()
101 .compareWith(CharRange(CharSourceRange::getTokenRange(RHS), in compare()
446 addRemoval(CharSourceRange::getTokenRange(range)); in commitRemove()
474 addRemoval(CharSourceRange::getTokenRange( in commitReplace()
495 std::make_pair(CharRange(CharSourceRange::getTokenRange(range), in commitIncreaseIndentation()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/version/
DJava10PostProcessor.java16 n.replace(new VarType(n.getTokenRange().orElse(null)));
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp195 CharSourceRange::getTokenRange(RecRange)); in rewriteToSubscriptGetCommon()
244 CharSourceRange::getTokenRange(RecRange)); in rewriteToArraySubscriptSet()
247 CharSourceRange::getTokenRange(Arg0Range)); in rewriteToArraySubscriptSet()
283 CharSourceRange::getTokenRange(RecRange)); in rewriteToDictionarySubscriptSet()
515 CharSourceRange::getTokenRange(KeyRange), in rewriteToDictionaryLiteral()
691 CharSourceRange::getTokenRange(literalRange), in getLiteralInfo()
865 commit.replaceWithInner(CharSourceRange::getTokenRange(Msg->getSourceRange()), in rewriteToNumberLiteral()
/external/clang/lib/Sema/
DSemaFixItUtils.cpp110 CharSourceRange::getTokenRange(Begin, Begin))); in tryToFixConversion()
144 CharSourceRange::getTokenRange(Begin, Begin))); in tryToFixConversion()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DProblemReporter.java28 report(node.getTokenRange().orElse(null), message, args); in report()
/external/clang/tools/libclang/
DCXSourceLocation.h63 CharSourceRange::getTokenRange(R)); in translateSourceRange()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/expr/
DLambdaExprTest.java24 TokenRange tokenRange = node.getTokenRange().get(); in assertRange()
/external/v8/tools/clang/value_cleanup/
DValueRewriter.cpp24 clang::CharSourceRange::getTokenRange(callExpr->getExprLoc()); in run()
/external/antlr/runtime/C/include/
Dantlr3tokenstream.h267 …pANTLR3_LIST (*getTokenRange) (struct ANTLR3_COMMON_TOKEN_STREAM_struct * tokenStream, ANT… member
/external/antlr/runtime/C/src/
Dantlr3tokenstream.c46 static pANTLR3_LIST getTokenRange (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 start, AN…
292 stream->getTokenRange = getTokenRange; in antlr3CommonTokenStreamNew()
711 getTokenRange (pANTLR3_COMMON_TOKEN_STREAM tokenStream, ANTLR3_UINT32 start, ANTLR3_UINT32 stop) in getTokenRange() function

12