Home
last modified time | relevance | path

Searched refs:getPreviousToken (Results 1 – 13 of 13) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DJavaTokenTest.java56 token.getNextToken().ifPresent(nt -> assertEquals(token, nt.getPreviousToken().get())); in assertToken()
57 token.getPreviousToken().ifPresent(pt -> assertEquals(token, pt.getNextToken().get())); in assertToken()
58 assertTrue(token.getNextToken().isPresent() || token.getPreviousToken().isPresent()); in assertToken()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DJavaToken.java153 public Optional<JavaToken> getPreviousToken() { in getPreviousToken() method in JavaToken
708 getPreviousToken().ifPresent(p -> { in insert()
734 final Optional<JavaToken> previousToken = getPreviousToken(); in deleteToken()
744 getPreviousToken().ifPresent(p -> { in replaceToken()
770 while (current.getPreviousToken().isPresent()) { in findFirstToken()
771 current = current.getPreviousToken().get(); in findFirstToken()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DRemovedGroup.java127 …ontFunction = begin -> hasOnlyWhiteSpaceForTokenFunction(begin, token -> token.getPreviousToken());
186 Optional<JavaToken> previousToken = begin.getPreviousToken(); in getIndentation()
191 previousToken = previousToken.get().getPreviousToken(); in getIndentation()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DFixItHintUtils.cpp21 auto Token = utils::lexer::getPreviousToken( in changeVarDeclToReference()
51 T = lexer::getPreviousToken(Start, Context.getSourceManager(), in skipLParensBackwards()
DLexerUtils.h22 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
DLexerUtils.cpp17 Token getPreviousToken(SourceLocation Location, const SourceManager &SM, in getPreviousToken() function
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DDeleteNullPointerCheck.cpp67 utils::lexer::getPreviousToken(IfWithDelete->getThen()->getBeginLoc(), in check()
DIsolateDeclarationCheck.cpp161 Token T = getPreviousToken(Start, SM, LangOpts); in declRanges()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousSemicolonCheck.cpp43 auto Token = utils::lexer::getPreviousToken(LocStart, Ctxt.getSourceManager(), in check()
DArgumentCommentCheck.cpp126 clang::Token Tok = utils::lexer::getPreviousToken( in getCommentsBeforeLoc()
/external/clang/lib/Format/
DUnwrappedLineParser.h114 const FormatToken *getPreviousToken();
DUnwrappedLineParser.cpp318 const FormatToken *PrevTok = getPreviousToken(); in calculateBraceTypes()
918 const FormatToken *Previous = getPreviousToken(); in parseStructuralElement()
1122 const FormatToken* Previous = getPreviousToken(); in tryToParseLambda()
2047 const FormatToken *UnwrappedLineParser::getPreviousToken() { in getPreviousToken() function in clang::format::UnwrappedLineParser
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeMemberInitCheck.cpp121 Location = utils::lexer::getPreviousToken( in getLocation()
127 Location = utils::lexer::getPreviousToken( in getLocation()