/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | DifferenceTest.java | 40 assertEquals(0, diff.getElements().size()); in calculateDifferenceEmpty() 55 assertEquals(4, diff.getElements().size()); in calculateDifferenceAIsEmpty() 56 … assertEquals(added(new CsmToken(GeneratedJavaParserConstants.LPAREN)), diff.getElements().get(0)); in calculateDifferenceAIsEmpty() 57 assertEquals(added(new CsmChild(n1)), diff.getElements().get(1)); in calculateDifferenceAIsEmpty() 58 … assertEquals(added(new CsmToken(GeneratedJavaParserConstants.RPAREN)), diff.getElements().get(2)); in calculateDifferenceAIsEmpty() 59 assertEquals(added(new CsmChild(n2)), diff.getElements().get(3)); in calculateDifferenceAIsEmpty() 74 assertEquals(4, diff.getElements().size()); in calculateDifferenceBIsEmpty() 75 …assertEquals(removed(new CsmToken(GeneratedJavaParserConstants.LPAREN)), diff.getElements().get(0)… in calculateDifferenceBIsEmpty() 76 assertEquals(removed(new CsmChild(n1)), diff.getElements().get(1)); in calculateDifferenceBIsEmpty() 77 …assertEquals(removed(new CsmToken(GeneratedJavaParserConstants.RPAREN)), diff.getElements().get(2)… in calculateDifferenceBIsEmpty() [all …]
|
D | LexicalPreservingPrinterTest.java | 68 … 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 …]
|
D | LexicalDifferenceCalculatorTest.java | 278 …ment.kept(CsmElement.token(GeneratedJavaParserConstants.LBRACE)), diff.getElements().get(index++)); in differenceAfterddingStatementToEmptyBlock() 279 …assertEquals(Difference.DifferenceElement.kept(CsmElement.newline()), diff.getElements().get(index… in differenceAfterddingStatementToEmptyBlock() 280 …assertEquals(Difference.DifferenceElement.added(CsmElement.indent()), diff.getElements().get(index… in differenceAfterddingStatementToEmptyBlock() 281 assertTrue(isAddedChild(diff.getElements().get(index++), ExpressionStmt.class)); in differenceAfterddingStatementToEmptyBlock() 282 …assertEquals(Difference.DifferenceElement.added(CsmElement.newline()), diff.getElements().get(inde… in differenceAfterddingStatementToEmptyBlock() 283 …assertEquals(Difference.DifferenceElement.added(CsmElement.unindent()), diff.getElements().get(ind… in differenceAfterddingStatementToEmptyBlock() 284 …ment.kept(CsmElement.token(GeneratedJavaParserConstants.RBRACE)), diff.getElements().get(index++)); in differenceAfterddingStatementToEmptyBlock() 285 assertEquals(index, diff.getElements().size()); in differenceAfterddingStatementToEmptyBlock()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | Difference.java | 359 … if (((CsmMix) nextAfter).getElements().equals(((CsmMix) nextOriginal).getElements())) { in calculateImpl() 361 … ((CsmMix) nextAfter).getElements().forEach(el -> elements.add(new Kept(el))); in calculateImpl() 437 …while (nodeTextIndex >=1 && nodeText.getElements().get(nodeTextIndex - 1).isWhiteSpace() && !nodeT… in considerCleaningTheLine() 445 if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isToken(LBRACE)) { in isAfterLBrace() 448 …if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isWhiteSpace() && !nodeText… in isAfterLBrace() 460 … for (int i=nodeTextIndex; i >= 0 && hasOnlyWsBefore && i < nodeText.getElements().size(); i--) { in considerEnforcingIndentation() 461 if (nodeText.getElements().get(i).isNewline()) { in considerEnforcingIndentation() 464 if (!nodeText.getElements().get(i).isSpaceOrTab()) { in considerEnforcingIndentation() 469 for (int i=nodeTextIndex; i >= 0 && i < nodeText.getElements().size(); i--) { in considerEnforcingIndentation() 470 if (nodeText.getElements().get(i).isNewline()) { in considerEnforcingIndentation() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/ |
D | BaseAnnotation.java | 45 return hashCode*31 + getElements().hashCode(); in hashCode() 54 getElements().equals(other.getElements()); in equals() 65 return CollectionUtils.compareAsSet(getElements(), o.getElements()); in compareTo()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/value/ |
D | BaseAnnotationEncodedValue.java | 47 return hashCode * 31 + getElements().hashCode(); in hashCode() 55 getElements().equals(other.getElements()); in equals() 67 return CollectionUtils.compareAsSet(getElements(), other.getElements()); in compareTo()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/javadoc/ |
D | JavadocTest.java | 127 assertEquals(0, description.getElements().size()); in descriptionModificationWorks() 132 assertEquals(1, description.getElements().size()); in descriptionModificationWorks() 133 assertEquals(inlineTag, description.getElements().get(0)); in descriptionModificationWorks() 135 assertEquals(inlineTag, description.getElements().remove(0)); in descriptionModificationWorks() 136 assertEquals(0, description.getElements().size()); in descriptionModificationWorks()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | AnnotationPool.java | 53 for (AnnotationElement element: annotation.getElements()) { in intern() 68 …@Nonnull @Override public Collection<? extends AnnotationElement> getElements(@Nonnull Annotation … in getElements() method in AnnotationPool 69 return annotation.getElements(); in getElements()
|
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/writer/ |
D | ClassNameTest.java | 79 Elements elements = compilationRule.getElements(); in classNameFromTypeElement() 86 Elements elements = compilationRule.getElements(); in peerNamed_topLevelClass() 95 Elements elements = compilationRule.getElements(); in peerNamed_nestedClass() 104 Elements elements = compilationRule.getElements(); in peerNamed_deeplyNestedClass()
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | TypesTest.java | 32 protected Elements getElements() { in getElements() method in TypesTest 33 return compilation.getElements(); in getElements()
|
D | TypesEclipseTest.java | 115 public Elements getElements() { in getElements() method 150 protected Elements getElements() { 151 return compilation.getElements();
|
D | AnnotationSpecTest.java | 120 TypeElement element = compilation.getElements().getTypeElement(name); in defaultAnnotation() 157 TypeElement element = compilation.getElements().getTypeElement(name); in defaultAnnotationWithImport() 245 TypeElement element = compilation.getElements().getTypeElement(name); in defaultAnnotationToBuilder()
|
D | AbstractTypesTest.java | 53 protected abstract Elements getElements(); in getElements() method in AbstractTypesTest 57 return getElements().getTypeElement(clazz.getCanonicalName()); in getElement() 239 Elements elements = getElements(); in wildcardMirrorExtendsType() 248 Elements elements = getElements(); in wildcardMirrorSuperType()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/ |
D | AnnotationRewriter.java | 67 @Override @Nonnull public Set<? extends AnnotationElement> getElements() { in getElements() method in AnnotationRewriter.RewrittenAnnotation 68 …eturn RewriterUtils.rewriteSet(rewriters.getAnnotationElementRewriter(), annotation.getElements()); in getElements()
|
D | EncodedValueRewriter.java | 142 @Nonnull @Override public Set<? extends AnnotationElement> getElements() { in getElements() method in EncodedValueRewriter.RewrittenAnnotationEncodedValue 144 annotationEncodedValue.getElements()); in getElements()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ |
D | JavaParserTest.java | 118 assertEquals(2, intersectionType.getElements().size()); in parseIntersectionType() 119 assertTrue(intersectionType.getElements().get(0) instanceof ClassOrInterfaceType); in parseIntersectionType() 120 …assertEquals("Runnable", intersectionType.getElements().get(0).asClassOrInterfaceType().getNameAsS… in parseIntersectionType() 121 assertTrue(intersectionType.getElements().get(1) instanceof ClassOrInterfaceType); in parseIntersectionType() 122 …assertEquals("Serializable", intersectionType.getElements().get(1).asClassOrInterfaceType().getNam… in parseIntersectionType()
|
/external/guice/core/src/com/google/inject/spi/ |
D | Elements.java | 85 public static List<Element> getElements(Module... modules) { in getElements() method in Elements 86 return getElements(Stage.DEVELOPMENT, Arrays.asList(modules)); in getElements() 90 public static List<Element> getElements(Stage stage, Module... modules) { in getElements() method in Elements 91 return getElements(stage, Arrays.asList(modules)); in getElements() 95 public static List<Element> getElements(Iterable<? extends Module> modules) { in getElements() method in Elements 96 return getElements(Stage.DEVELOPMENT, modules); in getElements() 100 public static List<Element> getElements(Stage stage, Iterable<? extends Module> modules) { in getElements() method in Elements
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/value/ |
D | ImmutableAnnotationEncodedValue.java | 67 annotationEncodedValue.getElements()); in of() 71 …@Nonnull @Override public ImmutableSet<? extends ImmutableAnnotationElement> getElements() { retur… in getElements() method in ImmutableAnnotationEncodedValue
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/ |
D | DexWriterTest.java | 85 List<AnnotationElement> dbElements = Lists.newArrayList(dbAnnotation.getElements()); in testAnnotationElementOrder() 126 AnnotationElement element = Iterables.getFirst(dbAnnotation.getElements(), null); in testEncodedAnnotationElementOrder() 129 … List<AnnotationElement> dbElements = Lists.newArrayList(dbAnnotationEncodedValue.getElements()); in testEncodedAnnotationElementOrder()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/ |
D | ImmutableAnnotation.java | 73 annotation.getElements()); in of() 78 …@Nonnull @Override public ImmutableSet<? extends ImmutableAnnotationElement> getElements() { retur… in getElements() method in ImmutableAnnotation
|
/external/guice/core/src/com/google/inject/util/ |
D | Modules.java | 173 List<Element> baseElements = Elements.getElements(currentStage(), baseModules); in configure() 188 baseElements = privateElements.getElements(); in configure() 196 Elements.getElements( in configure() 265 for (Element element : privateElements.getElements()) { in configure()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
D | BuilderAnnotationPool.java | 62 dexBuilder.internAnnotationElements(annotation.getElements())); in internAnnotation() 76 …public Collection<? extends BuilderAnnotationElement> getElements(@Nonnull BuilderAnnotation key) { in getElements() method in BuilderAnnotationPool
|
/external/guice/core/test/com/google/inject/spi/ |
D | ModuleRewriterTest.java | 48 List<Element> elements = Elements.getElements(module); in testRewriteBindings() 116 List<Element> elements = Elements.getElements(module); in testGetProviderAvailableAtInjectMembersTime()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/ |
D | Local.cpp | 378 return DI.getExpression()->getElements().equals( in doesDebugValueDescribeX() 381 return DI.getExpression()->getElements().empty(); in doesDebugValueDescribeX() 388 return DI.getExpression()->getElements().equals( in doesDebugValueDescribeY() 392 return DI.getExpression()->getElements().equals( in doesDebugValueDescribeY() 587 return DVI->getExpression()->getElements() == Ops; in TEST()
|
/external/guice/core/src/com/google/inject/internal/ |
D | PrivateElementsImpl.java | 71 public List<Element> getElements() { in getElements() method in PrivateElementsImpl 121 for (Element element : getElements()) { in applyTo()
|