Home
last modified time | relevance | path

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

12345

/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()
86 public Optional<TokenRange> getRange() { in getRange()
/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.java72 TokenRange tokenRange() { in tokenRange()
74 return new TokenRange(token(), token()); in tokenRange()
82 TokenRange range(JavaToken begin, JavaToken end) { in range()
84 return new TokenRange(begin, end); in range()
92 TokenRange range(Node begin, JavaToken end) { in range()
94 return new TokenRange(begin.getTokenRange().get().getBegin(), end); in range()
102 TokenRange range(JavaToken begin, Node end) { in range()
104 return new TokenRange(begin, end.getTokenRange().get().getEnd()); in range()
112 TokenRange range(Node begin, Node end) { in range()
114 … 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.java18 private static TokenRange tokenRange(Token token) { in tokenRange()
20 return new TokenRange(javaToken, javaToken); in tokenRange()
/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/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-testing/src/test/java/com/github/javaparser/
DProblemTest.java12 Problem problem = new Problem("Parse error", TokenRange.INVALID, new Exception()); in testSimpleGetters()
14 assertEquals(TokenRange.INVALID, problem.getLocation().get()); in testSimpleGetters()
21 Problem problem = new Problem("Parse error", TokenRange.INVALID, null); in testVerboseMessage()
/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-testing/src/test/java/com/github/javaparser/ast/expr/
DLambdaExprTest.java3 import com.github.javaparser.TokenRange;
24 TokenRange tokenRange = node.getTokenRange().get(); in assertRange()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DLiteralExpr.java29 import com.github.javaparser.TokenRange;
49 public LiteralExpr(TokenRange tokenRange) { in LiteralExpr()
DNullLiteralExpr.java31 import com.github.javaparser.TokenRange;
52 public NullLiteralExpr(TokenRange tokenRange) { in NullLiteralExpr()
DLiteralStringValueExpr.java31 import com.github.javaparser.TokenRange;
51 public LiteralStringValueExpr(TokenRange tokenRange, String value) { in LiteralStringValueExpr()
DAnnotationExpr.java32 import com.github.javaparser.TokenRange;
58 public AnnotationExpr(TokenRange tokenRange, Name name) { in AnnotationExpr()
DBooleanLiteralExpr.java32 import com.github.javaparser.TokenRange;
60 public BooleanLiteralExpr(TokenRange tokenRange, boolean value) { in BooleanLiteralExpr()
DDoubleLiteralExpr.java31 import com.github.javaparser.TokenRange;
58 public DoubleLiteralExpr(TokenRange tokenRange, String value) { in DoubleLiteralExpr()
DMarkerAnnotationExpr.java32 import com.github.javaparser.TokenRange;
61 public MarkerAnnotationExpr(TokenRange tokenRange, Name name) { in MarkerAnnotationExpr()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DEmptyStmt.java23 import com.github.javaparser.TokenRange;
50 public EmptyStmt(TokenRange tokenRange) { in EmptyStmt()
DUnparsableStmt.java3 import com.github.javaparser.TokenRange;
31 public UnparsableStmt(TokenRange tokenRange) { in UnparsableStmt()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/comments/
DLineComment.java31 import com.github.javaparser.TokenRange;
58 public LineComment(TokenRange tokenRange, String content) { in LineComment()
DBlockComment.java31 import com.github.javaparser.TokenRange;
59 public BlockComment(TokenRange tokenRange, String content) { in BlockComment()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DBodyDeclaration.java34 import com.github.javaparser.TokenRange;
61 public BodyDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) { in BodyDeclaration()
67 protected BodyDeclaration(TokenRange range) { in BodyDeclaration()

12345