Home
last modified time | relevance | path

Searched refs:isToken (Results 1 – 25 of 45) sorted by relevance

12

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinterTest.java736 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
738 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
740 … assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.LPAREN)); in nodeTextForMethod()
742 … assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.RPAREN)); in nodeTextForMethod()
743 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
749 … assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.LBRACE)); in nodeTextForMethod()
751 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
752 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
753 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
754 assertTrue(nodeText.getElements().get(index++).isToken(GeneratedJavaParserConstants.SPACE)); in nodeTextForMethod()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DKept.java43 if (isToken()) { in getTokenType()
60 public boolean isToken() { return element instanceof CsmToken; } in isToken() method in Kept
74 if(isToken()) { in isWhiteSpace()
83 if (isToken()) { in isWhiteSpaceOrComment()
92 if(isToken()) { in isNewLine()
DTextElement.java34 abstract boolean isToken(int tokenKind); in isToken() method in TextElement
37 return isToken(GeneratedJavaParserConstants.JAVADOC_COMMENT) in isCommentToken()
38 || isToken(GeneratedJavaParserConstants.SINGLE_LINE_COMMENT) in isCommentToken()
39 || isToken(GeneratedJavaParserConstants.MULTI_LINE_COMMENT); in isCommentToken()
DRemoved.java50 if (isToken()) { in getTokenType()
63 public boolean isToken() { return element instanceof CsmToken; } in isToken() method in Removed
77 if(isToken()) { in isWhiteSpace()
91 if(isToken()) { in isNewLine()
DDifference.java80 if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isToken(LBRACE)) { in isAfterLBrace()
379 } else if (removed.isToken() && originalElementIsToken && in applyRemovedDiffElement()
457 } else if (kept.isToken() && originalElementIsToken) { in applyKeptDiffElement()
496 if (nodeText.getTextElement(index).isToken(LBRACE)) { in openBraceWasOnSameLine()
505 return nodeText.getTextElement(originalIndex).isToken(RBRACE) in wasSpaceBetweenBraces()
512 return nodeText.getElements().get(index).isToken(LBRACE); in doWeHaveLeftBraceFollowedBySpace()
530 return element.isToken(RBRACE); in nextIsRightBrace()
562 … && originalElements.get(originalIndex).isToken(((TokenTextElement)e).getTokenKind())) { in applyAddedDiffElement()
753 …dex < nodeText.getElements().size() && nodeText.getElements().get(nodeTextIndex).isToken(RBRACE)) { in adjustIndentation()
DTextElementMatchers.java29 return textElement -> textElement.isToken(tokenType); in byTokenType()
DChildTextElement.java49 boolean isToken(int tokenKind) { in isToken() method in ChildTextElement
DTokenTextElement.java84 boolean isToken(int tokenKind) { in isToken() method in TokenTextElement
DLexicalPreservingPrinter.java224 .filter(e -> e.isToken(JAVADOC_COMMENT)) in findTokenTextElementForComment()
230 .filter(e -> e.isToken(MULTI_LINE_COMMENT)) in findTokenTextElementForComment()
236 .filter(e -> e.isToken(SINGLE_LINE_COMMENT)) in findTokenTextElementForComment()
DRemovedGroup.java142 } else if (startElement.isToken()) { in hasOnlyWhitespace()
/external/apache-xml/src/main/java/org/apache/xpath/compiler/
DXPathParser.java328 boolean isToken; in lookbehind()
339 isToken = (c0 == '|') ? false : (c0 == c); in lookbehind()
343 isToken = false; in lookbehind()
348 isToken = false; in lookbehind()
351 return isToken; in lookbehind()
400 boolean isToken; in lookahead()
406 isToken = (lookahead != null) ? lookahead.equals(s) : (s == null); in lookahead()
410 isToken = (null == s); in lookahead()
413 return isToken; in lookahead()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp165 assert(isToken() && "Invalid type access!"); in getToken()
206 bool isToken() const override { return Kind == TOKEN; } in isToken() function
221 bool isBrTarget() { return isBrImm() || isToken(); } in isBrTarget()
223 bool isCallTarget() { return isImm() || isToken(); } in isCallTarget()
879 if (Operands[0]->isToken()) in parseMemoryOperand()
1112 else if (Operands[0]->isToken() && Operands[1]->isReg() && in IsMemoryAssignmentError()
1115 else if (Operands[0]->isToken() && Operands[1]->isToken() && in IsMemoryAssignmentError()
/external/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp150 assert(isToken() && "Invalid type access!"); in getToken()
191 bool isToken() const override { return Kind == TOKEN; } in isToken() function
206 bool isBrTarget() { return isBrImm() || isToken(); } in isBrTarget()
208 bool isCallTarget() { return isImm() || isToken(); } in isCallTarget()
857 if (Operands[0]->isToken()) in parseMemoryOperand()
1090 else if (Operands[0]->isToken() && Operands[1]->isReg() && in IsMemoryAssignmentError()
1093 else if (Operands[0]->isToken() && Operands[1]->isToken() && in IsMemoryAssignmentError()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/AsmParser/
DBPFAsmParser.cpp123 bool isToken() const override { return Kind == Token; } in isToken() function
270 if (Op0.isReg() && Op1.isToken() && Op2.isToken() && Op3.isReg() in PreMatchCheck()
/external/llvm/include/llvm/MC/MCParser/
DMCParsedAsmOperand.h55 virtual bool isToken() const = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/MCParser/
DMCParsedAsmOperand.h56 virtual bool isToken() const = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp109 bool isToken() const override { return Kind == Token; } in isToken() function
124 assert(isToken()); in getToken()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp261 bool isToken() const override { return Kind == Token; } in isToken() function
618 if (FirstOperand.isToken() && FirstOperand.getToken() == "{") { in MatchAndEmitInstruction()
628 if (FirstOperand.isToken() && FirstOperand.getToken() == "}") { in MatchAndEmitInstruction()
834 if (!Operand.isToken()) in previousEqual()
/external/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp237 bool isToken() const { return Kind == Token; } in isToken() function
829 if (FirstOperand.isToken() && FirstOperand.getToken() == "{") { in MatchAndEmitInstruction()
838 if (FirstOperand.isToken() && FirstOperand.getToken() == "}") { in MatchAndEmitInstruction()
1077 if (!Operand.isToken()) in previousEqual()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp1180 bool isToken() const override { return Kind == k_Token; } in isToken() function in __anon95fcbb170111::AArch64Operand
4343 assert(Op.isToken() && "Leading operand should always be a mnemonic!"); in MatchAndEmitInstruction()
4560 if ((Op1.isToken() && Op2.isNeonVectorReg() && Op3.isImm()) || in MatchAndEmitInstruction()
4561 (Op1.isNeonVectorReg() && Op2.isToken() && Op3.isImm())) { in MatchAndEmitInstruction()
4562 StringRef Suffix = Op1.isToken() ? Op1.getToken() : Op2.getToken(); in MatchAndEmitInstruction()
4568 unsigned Idx = Op1.isToken() ? 1 : 2; in MatchAndEmitInstruction()
4645 Operands.size() > 1 && ((AArch64Operand &)*Operands[1]).isToken() && in MatchAndEmitInstruction()
4697 if (((AArch64Operand &)*Operands[ErrorInfo]).isToken() && in MatchAndEmitInstruction()
/external/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp160 bool isToken() const override { in isToken() function in __anonfb5739a90111::AMDGPUOperand
316 assert(isToken()); in getToken()
1697 if (Op.isToken() && Op.getToken() == "gds") { in cvtDS()
2149 if (Op.isToken()) { in cvtMubufImpl()
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp1060 bool isToken() const override { return Kind == k_Token; } in isToken() function in __anon92eb58ed0311::ARMOperand
5114 bool isVmovf = TyOp.isToken() && in parseFPImm()
5118 bool isFconst = Mnemonic.isToken() && (Mnemonic.getToken() == "fconstd" || in parseFPImm()
5749 if (static_cast<ARMOperand &>(*Operands[3]).isToken() && in shouldOmitPredicateOperand()
6141 bool HasWritebackToken = Op.isToken() && Op.getToken() == "!"; in validatetLDMRegList()
6164 bool HasWritebackToken = Op.isToken() && Op.getToken() == "!"; in validatetSTMRegList()
6356 (static_cast<ARMOperand &>(*Operands[3]).isToken() && in validateInstruction()
6904 !(static_cast<ARMOperand &>(*Operands[2]).isToken() && in processInstruction()
8079 !(static_cast<ARMOperand &>(*Operands[3]).isToken() && in processInstruction()
8363 (static_cast<ARMOperand &>(*Operands[3]).isToken() && in processInstruction()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86Operand.h132 bool isToken() const override {return Kind == Token; } in isToken() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/AsmParser/
DX86Operand.h203 bool isToken() const override {return Kind == Token; } in isToken() function
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DActionTranslator.g129 public void checkElementRefUniqueness(String ref, boolean isToken) {
131 if ( isToken ) {

12