Home
last modified time | relevance | path

Searched refs:parameter (Results 1 – 25 of 60) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiParameterItem.kt93 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 …]
DPsiMethodItem.kt66 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>()
DPsiTypeItem.kt545 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()
DJavadoc.kt149 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()
DPsiClassItem.kt692 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>()
DUAnnotationItem.kt89 for (parameter in uAttributes) { in <lambda>() constant
93 parameter.name ?: SdkConstants.ATTR_VALUE, parameter.expression in <lambda>()
DPsiAnnotationItem.kt90 for (parameter in psiAttributes) { in <lambda>() constant
94 parameter.name ?: ATTR_VALUE, parameter.value ?: continue in <lambda>()
DPsiTypeParameterList.kt33 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/
DMethodItem.kt61 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 …]
DItem.kt335 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/
DKotlinInteropChecks.kt194 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>()
DApiLint.kt271 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 …]
DSignatureWriter.kt277 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>()
DApiAnalyzer.kt777 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>()
DAndroidApiChecks.kt67 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()
DNullabilityAnnotationsValidator.kt94 override fun visitParameter(parameter: ParameterItem) { in <lambda>()
95 … checkItem(parameter.containingMethod(), parameter.toString(), parameter.type(), parameter) in <lambda>()
DAnnotationStatistics.kt89 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/
DJavaStubWriter.kt284 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>()
DKotlinStubWriter.kt264 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/
DFORMAT.md17 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/
DDocAnalyzerTest.kt814 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/
DTextTypeItem.kt265 val parameter = context.resolveParameter(v) in markRecent() constant
266 if (parameter != null) { in markRecent()
267 val bounds = parameter.bounds() in markRecent()
DTextTypeParameterList.kt38 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/
DItemVisitor.kt66 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/
DJavadocTest.kt746 fun `Rewrite parameter list`() { in Rewrite parameter list()
810 fun `Rewrite parameter list 2`() { in Rewrite parameter list 2()

123