Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 11 of 11) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt202 var curr: PsiElement? = tag.nextSibling in findTagEnd() variable
203 while (curr != null) { in findTagEnd()
204 if (curr is PsiDocToken && curr.tokenType == JavaDocTokenType.DOC_COMMENT_END) { in findTagEnd()
205 return curr.textRange.startOffset in findTagEnd()
206 } else if (curr is PsiDocTag) { in findTagEnd()
207 return curr.textRange.startOffset in findTagEnd()
210 curr = curr.nextSibling in findTagEnd()
708 var curr = element.firstChild in expand() variable
709 while (curr != null) { in expand()
710 expand(owner, curr, sb) in expand()
[all …]
DPsiClassItem.kt113 var curr: PsiClass? = psiClass in <lambda>() variable
114 while (curr != null) { in <lambda>()
115 if (curr.isInterface && !classes.contains(curr)) { in <lambda>()
116 classes.add(curr) in <lambda>()
118 addInterfaces(classes, curr.interfaces) in <lambda>()
119 curr = curr.superClass in <lambda>()
565 var curr: PsiClass? = cls in <lambda>() variable
566 while (curr != null) { in <lambda>()
567 val name = curr.name in <lambda>()
568 curr = if (name != null) { in <lambda>()
[all …]
DPsiConstructorItem.kt74 var curr: PsiElement? = psiMethod.body?.firstBodyElement in <lambda>() variable
75 while (curr != null && curr is PsiWhiteSpace) { in <lambda>()
76 curr = curr.nextSibling in <lambda>()
78 if (curr is PsiExpressionStatement && curr.expression is PsiMethodCallExpression && in <lambda>()
79 curr.expression.firstChild?.lastChild is PsiKeyword && in <lambda>()
80 curr.expression.firstChild?.lastChild?.text == "super" in <lambda>()
82 val resolved = (curr.expression as PsiMethodCallExpression).resolveMethod() in <lambda>()
DPsiCompilationUnit.kt70 var curr: PsiElement? = file.firstChild in getHeaderComments() variable
72 while (curr != null) { in getHeaderComments()
73 if (curr is PsiComment || curr is KDoc) { in getHeaderComments()
74 val text = curr.text in getHeaderComments()
80 } else if (curr !is PsiWhiteSpace) { in getHeaderComments()
83 curr = curr.nextSibling in getHeaderComments()
DPsiBasedCodebase.kt551 var curr = psiClass.containingClass in <lambda>() variable
552 if (curr != null && findClass(curr) == null) { in <lambda>()
554 if (findClass(curr) == null) { in <lambda>()
556 val containing = curr?.containingClass in <lambda>()
560 curr = containing in <lambda>()
563 curr!! in <lambda>()
564 … createClass(curr) // this will also create inner classes, which should now be in the map in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt69 var curr: ClassItem? = this in <lambda>() variable
70 while (curr?.containingClass() != null) { in <lambda>()
71 curr = curr.containingClass() in <lambda>()
74 if (curr == null) { in <lambda>()
78 return curr.containingPackage().qualifiedName() + "." + fullName().replace('.', '$') in <lambda>()
83 var curr: ClassItem? = this in <lambda>() variable
84 while (curr?.containingClass() != null) { in <lambda>()
85 curr = curr.containingClass() in <lambda>()
88 if (curr == null) { in <lambda>()
92 return curr.containingPackage().qualifiedName().replace('.', '/') + "/" + in <lambda>()
DItem.kt193 var curr: Item? = this in compilationUnit() variable
194 while (curr != null) { in compilationUnit()
195 if (curr is ClassItem && curr.isTopLevelClass()) { in compilationUnit()
196 return curr.getCompilationUnit() in compilationUnit()
198 curr = curr.parent() in compilationUnit()
DMethodItem.kt121 var curr = cls.publicSuperClass() in <lambda>() variable
122 while (curr != null) { in <lambda>()
123 if (predicate.test(curr)) { in <lambda>()
124 classes.add(curr) in <lambda>()
127 curr = curr.publicSuperClass() in <lambda>()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DFileUseMap.java403 for (FileUseMapEntry<?> curr : matches) { in locateFree()
407 if (!curr.isFree()) { in locateFree()
419 extraSize = (align - ((curr.getStart() + alignOffset) % align)) % align; in locateFree()
437 if (curr.getSize() < (size + extraSize)) { in locateFree()
446 long emptySpaceLeft = curr.getSize() - (size + extraSize); in locateFree()
448 FileUseMapEntry<?> next = map.higher(curr); in locateFree()
458 if (best != null && best.getSize() < curr.getSize()) { in locateFree()
462 best = curr; in locateFree()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextMethodItem.kt90 var curr = containingClass().superClass() in isConstructor() variable
91 while (curr != null) { in isConstructor()
92 val superMethod = curr.findMethod(this) in isConstructor()
97 curr = curr.superClass() in isConstructor()
/tools/metalava/src/main/java/com/android/tools/metalava/
DReporter.kt283 var curr = 0 in getLineNumber() variable
285 while (curr < target) { in getLineNumber()
286 if (text[curr++] == '\n') { in getLineNumber()