Home
last modified time | relevance | path

Searched refs:TextElement (Results 1 – 15 of 15) sorted by relevance

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DNodeText.java34 private final List<TextElement> elements;
48 NodeText(List<TextElement> elements) { in NodeText()
66 void addElement(TextElement nodeTextElement) { in addElement()
73 void addElement(int index, TextElement nodeTextElement) { in addElement()
114 TextElement element = elements.get(i); in tryToFindElement()
148 for (TextElement e : elements) { in remove()
178 void replace(TextElementMatcher position, TextElement newElement) { in replace()
204 TextElement getTextElement(int index) { in getTextElement()
209 List<TextElement> getElements() { in getElements()
DDifference.java398 private TextElement toTextElement(CsmElement csmElement) { in toTextElement()
408 …private List<TextElement> processIndentation(List<TokenTextElement> indentation, List<TextElement>… in processIndentation()
409 List<TextElement> res = new LinkedList<>(); in processIndentation()
412 for (TextElement e : prevElements) { in processIndentation()
427 private List<TextElement> indentationBlock() { in indentationBlock()
428 List<TextElement> res = new LinkedList<>(); in indentationBlock()
516 TextElement nodeTextEl = nodeText.getElements().get(nodeTextIndex); in apply()
525 TextElement nodeTextEl = nodeText.getElements().get(nodeTextIndex); in apply()
544 TextElement textElement = toTextElement(addedElement); in apply()
547 …for (TextElement e : processIndentation(indentation, nodeText.getElements().subList(0, nodeTextInd… in apply()
[all …]
DTextElement.java27 public abstract class TextElement implements TextElementMatcher { class
40 public boolean match(TextElement textElement) { in match()
DTextElementMatcher.java26 boolean match(TextElement textElement); in match()
DTextElementMatchers.java35 public boolean match(TextElement textElement) { in byNode()
DChildTextElement.java30 class ChildTextElement extends TextElement {
DTokenTextElement.java28 class TokenTextElement extends TextElement {
DTextElementIteratorsFactory.java160 TextElement textElement = nodeText.getTextElement(index); in reverseIterator()
DLexicalPreservingPrinter.java262 List<Pair<Range, TextElement>> elements = new LinkedList<>();
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DAstNodes.java20 import org.eclipse.jdt.core.dom.TextElement;
31 TextElement textElement = createTextElement(ast, text); in createTextTagElement()
36 public static TextElement createTextElement(AST ast, String text) { in createTextElement()
37 TextElement textElement = ast.newTextElement(); in createTextElement()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinterTest.java68 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForField()
81 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForVariableDeclarator()
93 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForMethod()
106 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForMethodParameter()
120 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForPrimitiveType()
131 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedForSimpleImport()
144 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedGenericType()
155 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedAnnotationDeclaration()
167 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedAnnotationMemberDeclaration()
179 … nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList())); in checkNodeTextCreatedAnnotationMemberDeclarationWithArrayType()
[all …]
/external/v8/src/regexp/
Dregexp-ast.h158 class TextElement final BASE_EMBEDDED {
162 static TextElement Atom(RegExpAtom* atom);
163 static TextElement CharClass(RegExpCharacterClass* char_class);
184 TextElement(TextType text_type, RegExpTree* tree) in TextElement() function
360 void AddElement(TextElement elm, Zone* zone) { in AddElement()
364 ZoneList<TextElement>* elements() { return &elements_; } in elements()
367 ZoneList<TextElement> elements_;
Djsregexp.cc870 text->AddElement(TextElement::Atom(this), zone); in AppendToText()
875 text->AddElement(TextElement::CharClass(this), zone); in AppendToText()
885 TextElement TextElement::Atom(RegExpAtom* atom) { in Atom()
886 return TextElement(ATOM, atom); in Atom()
890 TextElement TextElement::CharClass(RegExpCharacterClass* char_class) { in CharClass()
891 return TextElement(CHAR_CLASS, char_class); in CharClass()
895 int TextElement::length() const { in length()
2553 TextElement elm = elements()->at(k); in GetQuickCheckDetails()
2554 if (elm.text_type() == TextElement::ATOM) { in GetQuickCheckDetails()
2810 TextElement elm = elements()->at(i); in FilterOneByte()
[all …]
Djsregexp.h666 TextNode(ZoneList<TextElement>* elms, bool read_backward, in TextNode()
672 elms_(new (zone()) ZoneList<TextElement>(1, zone())), in TextNode()
674 elms_->Add(TextElement::CharClass(that), zone()); in TextNode()
694 ZoneList<TextElement>* elements() { return elms_; } in elements()
723 ZoneList<TextElement>* elms_;
/external/ImageMagick/MagickCore/
Dxwindow-private.h95 TextElement, enumerator