/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiParameterItem.kt | 93 val parameter = ktParameters[index] in isReceiver() constant 94 if (parameter.name == name) { in isReceiver() 95 return parameter in isReceiver() 99 for (parameter in ktParameters) { in isReceiver() constant 100 if (parameter.name == name) { in isReceiver() 101 return parameter in isReceiver() 108 val parameter = ktParameters[index] in isReceiver() constant 110 return parameter in isReceiver() 193 val parameter = PsiParameterItem( in create() constant 202 parameter.modifiers.setOwner(parameter) in create() [all …]
|
D | PsiMethodItem.kt | 66 for (parameter in parameters) { in <lambda>() constant 68 parameter.containingMethod = this in <lambda>() 306 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method 313 parameterModifierString, parameter.modifiers, parameter, in <lambda>() 317 sb.append(parameter.type().convertTypeString(replacementMap)) in <lambda>() 319 sb.append(parameter.name()) in <lambda>() 368 psiMethod.uastParameters.mapIndexed { index, parameter -> in <lambda>() method 369 PsiParameterItem.create(codebase, parameter, index) in <lambda>() 372 psiMethod.parameterList.parameters.mapIndexed { index, parameter -> in <lambda>() method 373 PsiParameterItem.create(codebase, parameter, index) in <lambda>()
|
D | PsiTypeItem.kt | 545 for (parameter in typeParameters) { in typeParameterList() variable 550 visitElement(parameter) in typeParameterList() 632 for (parameter in typeParameterElements) { in typeParameterList() variable 637 visitElement(parameter) in typeParameterList() 649 for (parameter in typeArguments) { in typeParameterList() variable 657 if (parameter == typeElement.type) { in typeParameterList() 665 val classType = PsiTypesUtil.getPsiClass(parameter) in typeParameterList() 669 sb.append(parameter.canonicalText) in typeParameterList() 741 for (parameter in typeParameters) { in typeParameterClasses() constant 742 visitElement(parameter) in typeParameterClasses()
|
D | Javadoc.kt | 149 val parameter = if (tagSection.startsWith("@")) in mergeDocumentation() constant 152 if (parameter == null) { in mergeDocumentation() 173 findTagEnd(parameter) in mergeDocumentation() 174 else parameter.textRange.startOffset + parameter.name.length + 1 in mergeDocumentation()
|
D | PsiClassItem.kt | 692 superType.parameters.forEachIndexed { index, parameter -> in <lambda>() method 693 if (parameter is PsiClassReferenceType) { in <lambda>() 694 val parameterClass = parameter.resolve() in <lambda>() 696 … val parameterName = parameterClass.qualifiedName ?: parameterClass.name ?: parameter.name in <lambda>()
|
D | UAnnotationItem.kt | 89 for (parameter in uAttributes) { in <lambda>() constant 93 parameter.name ?: SdkConstants.ATTR_VALUE, parameter.expression in <lambda>()
|
D | PsiAnnotationItem.kt | 90 for (parameter in psiAttributes) { in <lambda>() constant 94 parameter.name ?: ATTR_VALUE, parameter.value ?: continue in <lambda>()
|
D | PsiTypeParameterList.kt | 33 for (parameter in parameters) { in typeParameterNames() constant 34 list.add(parameter.name ?: continue) in typeParameterNames()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | MethodItem.kt | 61 for (parameter in parameters()) { in <lambda>() constant 62 sb.append(parameter.type().internalName()) in <lambda>() 190 for (parameter in parameters()) { in <lambda>() method 191 parameter.accept(visitor) in <lambda>() 214 for (parameter in parameters()) { in <lambda>() constant 215 parameter.acceptTypes(visitor) in <lambda>() 351 for (parameter in parameters()) { in <lambda>() constant 355 sb.append(parameter.type().toTypeString()) in <lambda>() 367 for (parameter in parameters()) { in <lambda>() method 368 if (!parameter.type().primitive) { in <lambda>() [all …]
|
D | Item.kt | 335 for (parameter in item.parameters()) { in appendMethodSignature() variable 345 builder.append(parameter.type().toSimpleType()) in appendMethodSignature() 351 builder.append(parameter.publicName() ?: parameter.name()) in appendMethodSignature()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | KotlinInteropChecks.kt | 194 val parameter = parameters[i] in <lambda>() constant 195 if (isSamCompatible(parameter)) { in <lambda>() 284 for (parameter in parameters) { in <lambda>() variable 285 if (parameter.hasDefaultValue()) { in <lambda>() 308 for (parameter in parameters) { in <lambda>() constant 309 val publicName = parameter.publicName() ?: continue in <lambda>() 310 checkKotlinKeyword(publicName, "parameter", parameter) in <lambda>() 330 private fun isSamCompatible(parameter: ParameterItem): Boolean { in <lambda>() 331 val type = parameter.type() in <lambda>()
|
D | ApiLint.kt | 271 for (parameter in method.parameters()) { in <lambda>() constant 272 checkType(parameter.type(), parameter) in <lambda>() 1622 for (parameter in method.parameters()) { in <lambda>() constant 1623 val parameterTypeRank = getTypeRank(parameter.type()) in <lambda>() 2173 for (parameter in args) { in <lambda>() constant 2174 val a = parameter.type().toTypeString() in <lambda>() 2350 for (parameter in method.parameters()) { in <lambda>() constant 2351 val type = parameter.type().toTypeString() in <lambda>() 2446 for (parameter in parameters) { in <lambda>() variable 2447 val type = parameter.type().toTypeString() in <lambda>() [all …]
|
D | SignatureWriter.kt | 277 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method 281 writeModifiers(parameter) in <lambda>() 282 writeType(parameter, parameter.type()) in <lambda>() 284 val name = parameter.publicName() in <lambda>() 290 if (options.outputDefaultValues && parameter.hasDefaultValue()) { in <lambda>() 292 val defaultValue = parameter.defaultValue() in <lambda>()
|
D | ApiAnalyzer.kt | 777 override fun visitParameter(parameter: ParameterItem) { in <lambda>() 778 checkTypeReferencesHidden(parameter, parameter.type()) in <lambda>() 1173 for (parameter in method.parameters()) { in <lambda>() method 1174 for (parameterTypeClass in parameter.type().typeArgumentClasses()) { in <lambda>() 1180 parameter, in <lambda>() 1183 for (tcl in parameter.type().typeArgumentClasses()) { in <lambda>() 1199 parameter, in <lambda>()
|
D | AndroidApiChecks.kt | 67 override fun visitParameter(parameter: ParameterItem) { in check() 69 parameter, in check() 70 parameter.name(), in check() 71 … "Parameter '" + parameter.name() + "' of '" + parameter.containingMethod().name() + "'", in check() 72 parameter.type() in check()
|
D | NullabilityAnnotationsValidator.kt | 94 override fun visitParameter(parameter: ParameterItem) { in <lambda>() 95 … checkItem(parameter.containingMethod(), parameter.toString(), parameter.type(), parameter) in <lambda>()
|
D | AnnotationStatistics.kt | 89 override fun visitParameter(parameter: ParameterItem) { in <lambda>() 91 if (!parameter.requiresNullnessInfo()) { in <lambda>() 95 if (parameter.hasNullnessInfo()) { in <lambda>() 322 …()}.${member.name()}${if (member is MethodItem) "(${member.parameters().joinToString { parameter -> in <lambda>() method 323 parameter.type().toSimpleType() in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | JavaStubWriter.kt | 284 parameters.forEachIndexed { index, parameter -> in <lambda>() method 288 val type = parameter.type() in <lambda>() 434 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method 438 appendModifiers(parameter, false) in <lambda>() 440 parameter.type().toTypeString( in <lambda>() 447 val name = parameter.publicName() ?: parameter.name() in <lambda>()
|
D | KotlinStubWriter.kt | 264 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method 269 parameter, in <lambda>() 270 parameter.modifiers, in <lambda>() 275 val name = parameter.publicName() ?: parameter.name() in <lambda>() 278 writeType(method, parameter.type()) in <lambda>()
|
/tools/metalava/ |
D | FORMAT.md | 17 format adds new information, such as annotations, parameter names and default 300 In v1 files we only list type names, but in v2 we allow an optional parameter 305 special annotation to explicitly name a Java parameter: 307 from Java, but Kotlin client code can now reference the parameter. 316 (Note how the implementation parameter doesn't have to match the public, API 317 name of the parameter.) 326 and/or parameter name: 332 For Kotlin code, the default parameter values are extracted automatically, and 333 for Java, just as with parameter names, you can specify a special annotation to 334 record the default value for usage from languages that support default parameter
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DocAnalyzerTest.kt | 814 fun `Add new parameter when no doc exists`() { in Add new parameter when no doc exists() 847 fun `Add to method when there are existing parameter docs and appear before these`() { in Add to method when there are existing parameter docs and appear before these() 898 fun `Add new parameter when doc exists but no param doc`() { in Add new parameter when doc exists but no param doc() 937 fun `Add new parameter, sorted correctly between existing ones`() { in Add new parameter, sorted correctly between existing ones() 980 fun `Add to existing parameter`() { in Add to existing parameter()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeItem.kt | 265 val parameter = context.resolveParameter(v) in markRecent() constant 266 if (parameter != null) { in markRecent() 267 val bounds = parameter.bounds() in markRecent()
|
D | TextTypeParameterList.kt | 38 for (parameter in typeParameters) { in toString() constant 39 names.add(parameter.simpleName()) in toString()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/ |
D | ItemVisitor.kt | 66 open fun visitParameter(parameter: ParameterItem) {} in visitParameter() 82 open fun afterVisitParameter(parameter: ParameterItem) {} in afterVisitParameter()
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/ |
D | JavadocTest.kt | 746 fun `Rewrite parameter list`() { in Rewrite parameter list() 810 fun `Rewrite parameter list 2`() { in Rewrite parameter list 2()
|