/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalPreservingPrinter.java | 133 NodeText nodeText = getOrCreateNodeText(observedNode.getParentNode().get()); in concretePropertyChange() local 137 int index = nodeText.findChild(observedNode); in concretePropertyChange() 138 nodeText.addChild(index, (Comment) newValue); in concretePropertyChange() 139 nodeText.addToken(index + 1, eolTokenKind(), Utils.EOL); in concretePropertyChange() 143 nodeText = getOrCreateNodeText(observedNode); in concretePropertyChange() 145 int index = getIndexOfComment ((Comment) oldValue, nodeText); in concretePropertyChange() 146 nodeText.removeElement(index); in concretePropertyChange() 147 if (nodeText.getElements().get(index).isNewline()) { in concretePropertyChange() 148 nodeText.removeElement(index); in concretePropertyChange() 155 …nTextElement> matchingTokens = findTokenTextElementForComment((JavadocComment) oldValue, nodeText); in concretePropertyChange() [all …]
|
D | Difference.java | 28 private final NodeText nodeText; field in Difference 39 Difference(List<DifferenceElement> diffElements, NodeText nodeText, Node node) { in Difference() argument 40 if (nodeText == null) { in Difference() 44 this.nodeText = nodeText; in Difference() 47 this.originalElements = nodeText.getElements(); in Difference() 79 private boolean isAfterLBrace(NodeText nodeText, int nodeTextIndex) { in isAfterLBrace() argument 80 if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isToken(LBRACE)) { in isAfterLBrace() 83 if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isSpaceOrTab()) { in isAfterLBrace() 84 return isAfterLBrace(nodeText, nodeTextIndex - 1); in isAfterLBrace() 93 private int considerEnforcingIndentation(NodeText nodeText, int nodeTextIndex) { in considerEnforcingIndentation() argument [all …]
|
D | TextElementIteratorsFactory.java | 159 private static Iterator<TokenTextElement> reverseIterator(NodeText nodeText, int index) { in reverseIterator() argument 160 TextElement textElement = nodeText.getTextElement(index); in reverseIterator() 165 nodeText.removeElement(index); in reverseIterator() 177 public static Iterator<TokenTextElement> reverseIterator(NodeText nodeText) { 178 return partialReverseIterator(nodeText, nodeText.numberOfElements() - 1); 181 …public static Iterator<TokenTextElement> partialReverseIterator(NodeText nodeText, int fromIndex) { 184 elements.add(reverseIterator(nodeText, i));
|
D | LexicalDifferenceCalculator.java | 113 …void calculatePropertyChange(NodeText nodeText, Node observedNode, ObservableProperty property, Ob… in calculatePropertyChange() argument 114 if (nodeText == null) { in calculatePropertyChange() 121 Difference difference = new Difference(differenceElements, nodeText, observedNode); in calculatePropertyChange()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalPreservingPrinterTest.java | 74 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(fd); in checkNodeTextCreatedForField() local 76 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForField() 87 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(vd); in checkNodeTextCreatedForVariableDeclarator() local 89 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForVariableDeclarator() 99 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(md); in checkNodeTextCreatedForMethod() local 101 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForMethod() 112 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(p1); in checkNodeTextCreatedForMethodParameter() local 114 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForMethodParameter() 126 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(t); in checkNodeTextCreatedForPrimitiveType() local 128 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForPrimitiveType() [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | ParseTree.cs | 135 string nodeText = this.ToString(); in ToStringWithHiddenTokens() 136 if ( !nodeText.Equals( "<EOF>" ) ) in ToStringWithHiddenTokens() 137 buf.Append( nodeText ); in ToStringWithHiddenTokens()
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | ParseTree.cs | 113 string nodeText = this.ToString(); in ToStringWithHiddenTokens() 114 if (!nodeText.Equals("<EOF>")) in ToStringWithHiddenTokens() 115 buf.Append(nodeText); in ToStringWithHiddenTokens()
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
D | ParseTree.java | 103 String nodeText = this.toString(); in toStringWithHiddenTokens() local 104 if ( !nodeText.equals("<EOF>") ) buf.append(nodeText); in toStringWithHiddenTokens()
|
/external/antlr/runtime/ObjC/Framework/ |
D | ParseTree.m | 116 NSString *nodeText = [self toString]; 117 if ( ![nodeText isEqualTo:@"<EOF>"] ) 118 [buf appendString:nodeText];
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | BaseRecognizer.cs | 290 … string nodeText = (mtne.Node != null) ? mtne.Node.ToString() ?? string.Empty : string.Empty; in GetErrorMessage() 291 msg = "mismatched tree node: " + nodeText + " expecting " + tokenName; in GetErrorMessage()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | BaseRecognizer.cs | 335 … string nodeText = ( mtne.Node != null ) ? mtne.Node.ToString() ?? string.Empty : string.Empty; in GetErrorMessage() 336 msg = "mismatched tree node: " + nodeText + " expecting " + tokenName; in GetErrorMessage()
|