/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | TokenRange.java | 11 public class TokenRange implements Iterable<JavaToken> { class 12 public static final TokenRange INVALID = new TokenRange(JavaToken.INVALID, JavaToken.INVALID); 17 public TokenRange(JavaToken begin, JavaToken end) { in TokenRange() method in TokenRange 37 public TokenRange withBegin(JavaToken begin) { in withBegin() 38 return new TokenRange(assertNotNull(begin), end); in withBegin() 41 public TokenRange withEnd(JavaToken end) { in withEnd() 42 return new TokenRange(begin, assertNotNull(end)); in withEnd()
|
D | Problem.java | 35 private final TokenRange location; 38 public Problem(String message, TokenRange location, Throwable cause) { in Problem() 78 public Optional<TokenRange> getLocation() { in getLocation()
|
/external/llvm-project/clang/include/clang/Edit/ |
D | Commit.h | 95 bool insertFromRange(SourceLocation loc, SourceRange TokenRange, 98 return insertFromRange(loc, CharSourceRange::getTokenRange(TokenRange), 102 bool insertWrap(StringRef before, SourceRange TokenRange, StringRef after) { in insertWrap() argument 103 return insertWrap(before, CharSourceRange::getTokenRange(TokenRange), after); in insertWrap() 106 bool remove(SourceRange TokenRange) { in remove() argument 107 return remove(CharSourceRange::getTokenRange(TokenRange)); in remove() 110 bool replace(SourceRange TokenRange, StringRef text) { in replace() argument 111 return replace(CharSourceRange::getTokenRange(TokenRange), text); in replace() 114 bool replaceWithInner(SourceRange TokenRange, SourceRange TokenInnerRange) { in replaceWithInner() argument 115 return replaceWithInner(CharSourceRange::getTokenRange(TokenRange), in replaceWithInner()
|
/external/clang/include/clang/Edit/ |
D | Commit.h | 89 bool insertFromRange(SourceLocation loc, SourceRange TokenRange, 92 return insertFromRange(loc, CharSourceRange::getTokenRange(TokenRange), 95 bool insertWrap(StringRef before, SourceRange TokenRange, StringRef after) { in insertWrap() argument 96 return insertWrap(before, CharSourceRange::getTokenRange(TokenRange), after); in insertWrap() 98 bool remove(SourceRange TokenRange) { in remove() argument 99 return remove(CharSourceRange::getTokenRange(TokenRange)); in remove() 101 bool replace(SourceRange TokenRange, StringRef text) { in replace() argument 102 return replace(CharSourceRange::getTokenRange(TokenRange), text); in replace() 104 bool replaceWithInner(SourceRange TokenRange, SourceRange TokenInnerRange) { in replaceWithInner() argument 105 return replaceWithInner(CharSourceRange::getTokenRange(TokenRange), in replaceWithInner()
|
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/ |
D | GeneratedJavaParserBase.java | 71 TokenRange tokenRange() { in tokenRange() 73 return new TokenRange(token(), token()); in tokenRange() 81 TokenRange range(JavaToken begin, JavaToken end) { in range() 83 return new TokenRange(begin, end); in range() 91 TokenRange range(Node begin, JavaToken end) { in range() 93 return new TokenRange(begin.getTokenRange().get().getBegin(), end); in range() 101 TokenRange range(JavaToken begin, Node end) { in range() 103 return new TokenRange(begin, end.getTokenRange().get().getEnd()); in range() 111 TokenRange range(Node begin, Node end) { in range() 113 … return new TokenRange(begin.getTokenRange().get().getBegin(), end.getTokenRange().get().getEnd()); in range() [all …]
|
D | RangedList.java | 12 TokenRange range = new TokenRange(JavaToken.INVALID, JavaToken.INVALID);
|
D | GeneratedJavaParserTokenManagerBase.java | 17 private static TokenRange tokenRange(Token token) { in tokenRange() 19 return new TokenRange(javaToken, javaToken); in tokenRange()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithTokenRange.java | 3 import com.github.javaparser.TokenRange; 12 Optional<TokenRange> getTokenRange(); in getTokenRange() 14 N setTokenRange(TokenRange range); in setTokenRange()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/ |
D | ArrayType.java | 23 import com.github.javaparser.TokenRange; 88 …public ArrayType(TokenRange tokenRange, Type componentType, Origin origin, NodeList<AnnotationExpr… in ArrayType() 138 TokenRange tokenRange = null; in wrapInArrayTypes() 140 …tokenRange = new TokenRange(type.getTokenRange().get().getBegin(), pair.getTokenRange().get().getE… in wrapInArrayTypes() 173 private TokenRange tokenRange; 179 …public ArrayBracketPair(TokenRange tokenRange, Origin origin, NodeList<AnnotationExpr> annotations… in ArrayBracketPair() 194 public ArrayBracketPair setTokenRange(TokenRange range) { in setTokenRange() 199 public Optional<TokenRange> getTokenRange() { in getTokenRange()
|
D | ReferenceType.java | 23 import com.github.javaparser.TokenRange; 55 public ReferenceType(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) { in ReferenceType()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | RemovedGroup.java | 4 import com.github.javaparser.TokenRange; 129 …private final Function<TokenRange, Boolean> hasOnlyWhitespaceInFrontFunction = tokenRange -> hasOn… 130 …private final Function<TokenRange, Boolean> hasOnlyWhitespaceBehindFunction = tokenRange -> hasOnl… 132 …private boolean hasOnlyWhitespace(Removed startElement, Function<TokenRange, Boolean> hasOnlyWhite… in hasOnlyWhitespace() argument 138 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/ |
D | ProblemTest.java | 11 Problem problem = new Problem("Parse error", TokenRange.INVALID, new Exception()); in testSimpleGetters() 13 assertEquals(TokenRange.INVALID, problem.getLocation().get()); in testSimpleGetters() 20 Problem problem = new Problem("Parse error", TokenRange.INVALID, null); in testVerboseMessage()
|
D | TokenRangeTest.java | 25 TokenRange tokenRange = cu.getTokenRange().get(); in renumberRangesWorks() 37 Optional<JavaToken> token = node.getTokenRange().map(TokenRange::getBegin); in makeRangesString()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | StaticDefinitionInAnonymousNamespaceCheck.cpp | 51 SourceRange TokenRange(Tok.getLocation(), Tok.getEndLoc()); in check() local 53 Lexer::getSourceText(CharSourceRange::getTokenRange(TokenRange), in check() 56 Diag << FixItHint::CreateRemoval(TokenRange); in check()
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ |
D | MainConstructorGenerator.java | 3 import com.github.javaparser.TokenRange; 31 .addParameter(TokenRange.class, "tokenRange") in generateNode() 52 nodeCu.addImport(TokenRange.class); in generateNode()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ |
D | ProblemReporter.java | 4 import com.github.javaparser.TokenRange; 31 public void report(TokenRange range, String message, Object... args) { in report()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ |
D | LiteralExpr.java | 28 import com.github.javaparser.TokenRange; 49 public LiteralExpr(TokenRange tokenRange) { in LiteralExpr()
|
D | LiteralStringValueExpr.java | 30 import com.github.javaparser.TokenRange; 51 public LiteralStringValueExpr(TokenRange tokenRange, String value) { in LiteralStringValueExpr()
|
D | NullLiteralExpr.java | 30 import com.github.javaparser.TokenRange; 52 public NullLiteralExpr(TokenRange tokenRange) { in NullLiteralExpr()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ |
D | UnparsableStmt.java | 3 import com.github.javaparser.TokenRange; 31 public UnparsableStmt(TokenRange tokenRange) { in UnparsableStmt()
|
D | EmptyStmt.java | 23 import com.github.javaparser.TokenRange; 50 public EmptyStmt(TokenRange tokenRange) { in EmptyStmt()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/comments/ |
D | LineComment.java | 30 import com.github.javaparser.TokenRange; 58 public LineComment(TokenRange tokenRange, String content) { in LineComment()
|
D | BlockComment.java | 30 import com.github.javaparser.TokenRange; 59 public BlockComment(TokenRange tokenRange, String content) { in BlockComment()
|
D | JavadocComment.java | 31 import com.github.javaparser.TokenRange; 57 public JavadocComment(TokenRange tokenRange, String content) { in JavadocComment()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | LambdaExprTest.java | 3 import com.github.javaparser.TokenRange; 29 TokenRange tokenRange = node.getTokenRange().get(); in assertRange()
|