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.java48 …CompilationUnit r = new CompilationUnit(n.getTokenRange().orElse(null), packageDeclaration, import… in visit()
62 … PackageDeclaration r = new PackageDeclaration(n.getTokenRange().orElse(null), annotations, name); in visit()
75 … TypeParameter r = new TypeParameter(n.getTokenRange().orElse(null), name, typeBound, annotations); in visit()
85 LineComment r = new LineComment(n.getTokenRange().orElse(null), n.getContent()); in visit()
95 BlockComment r = new BlockComment(n.getTokenRange().orElse(null), n.getContent()); in visit()
112 …ClassOrInterfaceDeclaration r = new ClassOrInterfaceDeclaration(n.getTokenRange().orElse(null), mo… in visit()
128 …EnumDeclaration r = new EnumDeclaration(n.getTokenRange().orElse(null), modifiers, annotations, na… in visit()
142 …EnumConstantDeclaration r = new EnumConstantDeclaration(n.getTokenRange().orElse(null), annotation… in visit()
156 …AnnotationDeclaration r = new AnnotationDeclaration(n.getTokenRange().orElse(null), modifiers, ann… in visit()
171 …AnnotationMemberDeclaration r = new AnnotationMemberDeclaration(n.getTokenRange().orElse(null), mo… in visit()
[all …]
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/
DGeneratedJavaParserBase.java93 return new TokenRange(begin.getTokenRange().get().getBegin(), end); in range()
103 return new TokenRange(begin, end.getTokenRange().get().getEnd()); in range()
113 … return new TokenRange(begin.getTokenRange().get().getBegin(), end.getTokenRange().get().getEnd()); in range()
138 return orIfInvalid(firstChoice, secondChoice.getTokenRange().get().getBegin()); in orIfInvalid()
150 return l.get(0).getTokenRange().get().getBegin(); in nodeListBegin()
245 …olean isChildOnTheRightBorderOfParent = node.getTokenRange().get().getEnd().equals(nodeParent.getT… in propagateRangeGrowthOnRight()
261 …NodeList<Parameter> params = add(new NodeList<>(), new Parameter(ret.getTokenRange().orElse(null),… in generateLambda()
265 …NodeList<Parameter> params = add(new NodeList<>(), new Parameter(ret.getTokenRange().orElse(null),… in generateLambda()
363 return new Name(simpleName.getTokenRange().get(), null, simpleName.getIdentifier()); in scopeToName()
367 …return new Name(fieldAccessExpr.getTokenRange().get(), scopeToName(fieldAccessExpr.getScope()), fi… in scopeToName()
/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/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/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DTokenRangeTest.java16 …hello\n}", cu.getClassByName("X").get().getDefaultConstructor().get().getTokenRange().get().toStri… in toStringWorks()
25 TokenRange tokenRange = cu.getTokenRange().get(); in renumberRangesWorks()
37 Optional<JavaToken> token = node.getTokenRange().map(TokenRange::getBegin); in makeRangesString()
DParserConfigurationTest.java20 assertFalse(result.getResult().get().getTokenRange().isPresent()); in storeNoTokens()
21 …getResult().get().findAll(Node.class).stream().noneMatch(node -> node.getTokenRange().isPresent())… in storeNoTokens()
DJavaParserTest.java223 …assertEquals(GeneratedJavaParserConstants.LPAREN, lambdaExpr.getTokenRange().get().getBegin().getK… in rangeOfLambda()
224 …assertEquals(GeneratedJavaParserConstants.RPAREN, lambdaExpr.getTokenRange().get().getEnd().getKin… in rangeOfLambda()
246 assertFalse(result.getResult().get().getTokenRange().isPresent()); in testNotStoringTokens()
257 assertEquals("{}", blockStmt.getTokenRange().get().toString()); in trailingWhitespaceIsIgnored()
/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/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-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithTokenRange.java12 Optional<TokenRange> getTokenRange(); in getTokenRange() method
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DRemovedGroup.java138 Optional<TokenRange> tokenRange = child.getTokenRange(); in hasOnlyWhitespace()
181 Optional<TokenRange> tokenRange = child.getTokenRange(); in getIndentation()
/external/javaparser/javaparser-core-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-serialization/src/main/java/com/github/javaparser/serialization/
DJavaParserJsonSerializer.java125 if (node.getTokenRange().isPresent()) { in writeTokens()
126 TokenRange tokenRange = node.getTokenRange().get(); in writeTokens()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/version/
DJava10PostProcessor.java16 n.replace(new VarType(n.getTokenRange().orElse(null)));
/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/ast/validator/
DProblemReporter.java28 report(node.getTokenRange().orElse(null), message, args); in report()
/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/clang/tools/libclang/
DCXSourceLocation.h63 CharSourceRange::getTokenRange(R)); in translateSourceRange()
/external/javaparser/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/
DJavaParserJsonDeserializerTest.java176 assertTrue(deserialized.getTokenRange().isPresent()); in testNonMetaProperties()
177 TokenRange tokenRange = deserialized.getTokenRange().get(); in testNonMetaProperties()
/external/cronet/buildtools/third_party/libc++/trunk/test/tools/clang_tidy_checks/
Dproper_version_checks.cpp36 clang::CharSourceRange::getTokenRange(condition_range), in check_condition()
/external/antlr/runtime/C/include/
Dantlr3tokenstream.h267 …pANTLR3_LIST (*getTokenRange) (struct ANTLR3_COMMON_TOKEN_STREAM_struct * tokenStream, ANT… member
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DLambdaExprTest.java29 TokenRange tokenRange = node.getTokenRange().get(); in assertRange()

12