Searched refs:getPreviousToken (Results 1 – 13 of 13) sorted by relevance
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ |
D | JavaTokenTest.java | 56 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/ |
D | JavaToken.java | 153 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/ |
D | RemovedGroup.java | 127 …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/ |
D | FixItHintUtils.cpp | 21 auto Token = utils::lexer::getPreviousToken( in changeVarDeclToReference() 51 T = lexer::getPreviousToken(Start, Context.getSourceManager(), in skipLParensBackwards()
|
D | LexerUtils.h | 22 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
|
D | LexerUtils.cpp | 17 Token getPreviousToken(SourceLocation Location, const SourceManager &SM, in getPreviousToken() function
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | DeleteNullPointerCheck.cpp | 67 utils::lexer::getPreviousToken(IfWithDelete->getThen()->getBeginLoc(), in check()
|
D | IsolateDeclarationCheck.cpp | 161 Token T = getPreviousToken(Start, SM, LangOpts); in declRanges()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SuspiciousSemicolonCheck.cpp | 43 auto Token = utils::lexer::getPreviousToken(LocStart, Ctxt.getSourceManager(), in check()
|
D | ArgumentCommentCheck.cpp | 126 clang::Token Tok = utils::lexer::getPreviousToken( in getCommentsBeforeLoc()
|
/external/clang/lib/Format/ |
D | UnwrappedLineParser.h | 114 const FormatToken *getPreviousToken();
|
D | UnwrappedLineParser.cpp | 318 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/ |
D | ProTypeMemberInitCheck.cpp | 121 Location = utils::lexer::getPreviousToken( in getLocation() 127 Location = utils::lexer::getPreviousToken( in getLocation()
|