Home
last modified time | relevance | path

Searched refs:TokenRange (Results 1 – 25 of 134) sorted by relevance

123456

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DTokenRange.java11 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()
DProblem.java35 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/
DCommit.h95 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/
DCommit.h89 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/
DGeneratedJavaParserBase.java71 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 …]
DRangedList.java12 TokenRange range = new TokenRange(JavaToken.INVALID, JavaToken.INVALID);
DGeneratedJavaParserTokenManagerBase.java17 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/
DNodeWithTokenRange.java3 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/
DArrayType.java23 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()
DReferenceType.java23 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/
DRemovedGroup.java4 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/
DProblemTest.java11 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()
DTokenRangeTest.java25 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/
DStaticDefinitionInAnonymousNamespaceCheck.cpp51 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/
DMainConstructorGenerator.java3 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/
DProblemReporter.java4 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/
DLiteralExpr.java28 import com.github.javaparser.TokenRange;
49 public LiteralExpr(TokenRange tokenRange) { in LiteralExpr()
DLiteralStringValueExpr.java30 import com.github.javaparser.TokenRange;
51 public LiteralStringValueExpr(TokenRange tokenRange, String value) { in LiteralStringValueExpr()
DNullLiteralExpr.java30 import com.github.javaparser.TokenRange;
52 public NullLiteralExpr(TokenRange tokenRange) { in NullLiteralExpr()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DUnparsableStmt.java3 import com.github.javaparser.TokenRange;
31 public UnparsableStmt(TokenRange tokenRange) { in UnparsableStmt()
DEmptyStmt.java23 import com.github.javaparser.TokenRange;
50 public EmptyStmt(TokenRange tokenRange) { in EmptyStmt()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/comments/
DLineComment.java30 import com.github.javaparser.TokenRange;
58 public LineComment(TokenRange tokenRange, String content) { in LineComment()
DBlockComment.java30 import com.github.javaparser.TokenRange;
59 public BlockComment(TokenRange tokenRange, String content) { in BlockComment()
DJavadocComment.java31 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/
DLambdaExprTest.java3 import com.github.javaparser.TokenRange;
29 TokenRange tokenRange = node.getTokenRange().get(); in assertRange()

123456