Home
last modified time | relevance | path

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

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiParameterItem.kt115 val parameter = ktParameters[index] in isReceiver() constant
116 if (parameter.name == name) { in isReceiver()
117 return parameter in isReceiver()
121 for (parameter in ktParameters) { in isReceiver() constant
122 if (parameter.name == name) { in isReceiver()
123 return parameter in isReceiver()
130 val parameter = ktParameters[index] in isReceiver() constant
132 return parameter in isReceiver()
215 val parameter = PsiParameterItem( in create() constant
224 parameter.modifiers.setOwner(parameter) in create()
[all …]
DPsiMethodItem.kt64 for (parameter in parameters) { in <lambda>() constant
66 parameter.containingMethod = this in <lambda>()
325 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method
332 parameterModifierString, parameter.modifiers, parameter, in <lambda>()
336 sb.append(parameter.type().convertTypeString(replacementMap)) in <lambda>()
338 sb.append(parameter.name()) in <lambda>()
440 psiMethod.uastParameters.mapIndexed { index, parameter -> in <lambda>() method
441 PsiParameterItem.create(codebase, parameter, index) in <lambda>()
444 psiMethod.parameterList.parameters.mapIndexed { index, parameter -> in <lambda>() method
445 PsiParameterItem.create(codebase, parameter, index) in <lambda>()
DPsiTypeItem.kt564 for (parameter in typeParameters) { in typeParameterList() variable
569 visitElement(parameter) in typeParameterList()
651 for (parameter in typeParameterElements) { in typeParameterList() variable
656 visitElement(parameter) in typeParameterList()
668 for (parameter in typeArguments) { in typeParameterList() variable
676 if (parameter == typeElement.type) { in typeParameterList()
684 val classType = PsiTypesUtil.getPsiClass(parameter) in typeParameterList()
688 sb.append(parameter.canonicalText) in typeParameterList()
755 for (parameter in typeParameters) { in typeParameterClasses() constant
756 visitElement(parameter) in typeParameterClasses()
DPsiTypeParameterList.kt33 for (parameter in parameters) { in typeParameterNames() constant
34 list.add(parameter.name ?: continue) in typeParameterNames()
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()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DMethodItem.kt69 for (parameter in parameters()) { in <lambda>() constant
70 sb.append(parameter.type().internalName()) in <lambda>()
198 for (parameter in parameters()) { in <lambda>() method
199 parameter.accept(visitor) in <lambda>()
222 for (parameter in parameters()) { in <lambda>() constant
223 parameter.acceptTypes(visitor) in <lambda>()
358 for (parameter in parameters()) { in <lambda>() constant
362 sb.append(parameter.type().toTypeString()) in <lambda>()
390 for (parameter in parameters()) { in <lambda>() method
391 if (!parameter.hasNullnessInfo()) { in <lambda>()
[all …]
DItem.kt339 for (parameter in item.parameters()) { in appendMethodSignature() variable
349 builder.append(parameter.type().toSimpleType()) in appendMethodSignature()
355 builder.append(parameter.publicName() ?: parameter.name()) in appendMethodSignature()
/tools/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt196 val parameter = parameters[i] in <lambda>() constant
197 if (isSamCompatible(parameter)) { in <lambda>()
284 for (parameter in parameters) { in <lambda>() variable
285 if (parameter.hasDefaultValue()) { in <lambda>()
309 for (parameter in parameters) { in <lambda>() constant
310 val publicName = parameter.publicName() ?: continue in <lambda>()
311 checkKotlinKeyword(publicName, "parameter", parameter) in <lambda>()
331 private fun isSamCompatible(parameter: ParameterItem): Boolean { in <lambda>()
332 val type = parameter.type() in <lambda>()
DSignatureWriter.kt241 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method
245 if (parameter.hasDefaultValue() && in <lambda>()
252 writeModifiers(parameter) in <lambda>()
253 writeType(parameter, parameter.type()) in <lambda>()
254 val name = parameter.publicName() in <lambda>()
259 if (parameter.isDefaultValueKnown() && in <lambda>()
264 val defaultValue = parameter.defaultValue() in <lambda>()
DAndroidApiChecks.kt66 override fun visitParameter(parameter: ParameterItem) { in check()
68 parameter, in check()
69 parameter.name(), in check()
70 … "Parameter '" + parameter.name() + "' of '" + parameter.containingMethod().name() + "'", in check()
71 parameter.type() in check()
DNullabilityAnnotationsValidator.kt93 override fun visitParameter(parameter: ParameterItem) { in <lambda>()
94 … checkItem(parameter.containingMethod(), parameter.toString(), parameter.type(), parameter) in <lambda>()
DApiLint.kt249 for (parameter in method.parameters()) { in <lambda>() constant
250 checkType(parameter.type(), parameter) in <lambda>()
529 for (parameter in method.parameters()) { in <lambda>() constant
531 checkNullableCollections(parameter.type(), parameter) in <lambda>()
1262 for (parameter in method.parameters()) { in <lambda>() constant
1263 val parameterTypeRank = getTypeRank(parameter.type()) in <lambda>()
1645 private fun anySuperParameterIsNullable(parameter: ParameterItem): Boolean { in <lambda>()
1646 val supers = parameter.containingMethod().superMethods() in <lambda>()
1654 parameter.parameterIndex == param.parameterIndex in <lambda>()
1667 private fun anySuperParameterLacksNullnessInfo(parameter: ParameterItem): Boolean { in <lambda>()
[all …]
DApiAnalyzer.kt779 override fun visitParameter(parameter: ParameterItem) { in <lambda>()
780 checkTypeReferencesHidden(parameter, parameter.type()) in <lambda>()
1214 for (parameter in method.parameters()) { in <lambda>() method
1215 for (parameterTypeClass in parameter.type().typeArgumentClasses()) { in <lambda>()
1221 parameter, in <lambda>()
1224 for (tcl in parameter.type().typeArgumentClasses()) { in <lambda>()
1240 parameter, in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/binarycompatibility/
DBinaryCompatibilityInterfaceMethodsTest.kt26 fun `Change formal parameter name (Incompatible)`() { in Change formal parameter name (Incompatible)()
72 fun `Add or delete formal parameter (Incompatible)`() { in Add or delete formal parameter (Incompatible)()
95 fun `Change type of a formal parameter (Incompatible)`() { in Change type of a formal parameter (Incompatible)()
420 … fun `Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)`() { in Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)()
440 …fun `Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)`() { in Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)()
DBinaryCompatibilityClassMethodsAndConstructors.kt47 fun `Change formal parameter name (Incompatible)`() { in Change formal parameter name (Incompatible)()
69 fun `Add or delete formal parameter (Incompatible)`() { in Add or delete formal parameter (Incompatible)()
91 fun `Change type of a formal parameter (Incompatible)`() { in Change type of a formal parameter (Incompatible)()
585 … fun `Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)`() { in Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)()
605 …fun `Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)`() { in Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)()
DBinaryCompatibilityInterfacesTest.kt377 fun `Add type parameter, if interface has no type parameters (Compatible)`() { in Add type parameter, if interface has no type parameters (Compatible)()
395 fun `Add type parameter, if interface has type parameters (Incompatible)`() { in Add type parameter, if interface has type parameters (Incompatible)()
416 fun `Delete type parameter (Incompatible)`() { in Delete type parameter (Incompatible)()
460 fun `Rename type parameter (Incompatible)`() { in Rename type parameter (Incompatible)()
482 fun `Add, delete, or change type bounds of type parameter (Incompatible)`() { in Add, delete, or change type bounds of type parameter (Incompatible)()
DBinaryCompatibilityClassesTest.kt517 fun `Add type parameter, if class has no type parameters (Compatible)`() { in Add type parameter, if class has no type parameters (Compatible)()
535 fun `Add type parameter, if class has type parameters (Incompatible)`() { in Add type parameter, if class has type parameters (Incompatible)()
556 fun `Delete type parameter (Incompatible)`() { in Delete type parameter (Incompatible)()
604 fun `Rename type parameter (Compatible)`() { in Rename type parameter (Compatible)()
623 fun `Add, delete, or change type bounds of type parameter (Incompatible)`() { in Add, delete, or change type bounds of type parameter (Incompatible)()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DKotlinStubWriter.kt262 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method
267 parameter, in <lambda>()
268 parameter.modifiers, in <lambda>()
273 val name = parameter.publicName() ?: parameter.name() in <lambda>()
276 writeType(method, parameter.type()) in <lambda>()
DJavaStubWriter.kt279 parameters.forEachIndexed { index, parameter -> in <lambda>() method
283 val type = parameter.type() in <lambda>()
429 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>() method
433 appendModifiers(parameter, false) in <lambda>()
435 parameter.type().toTypeString( in <lambda>()
442 val name = parameter.publicName() ?: parameter.name() in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/
DDocAnalyzerTest.kt855 fun `Add new parameter when no doc exists`() { in Add new parameter when no doc exists()
890 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()
943 fun `Add new parameter when doc exists but no param doc`() { in Add new parameter when doc exists but no param doc()
984 fun `Add new parameter, sorted correctly between existing ones`() { in Add new parameter, sorted correctly between existing ones()
1029 fun `Add to existing parameter`() { in Add to existing parameter()
DCompatibilityCheckTest.kt660 fun `Remove default parameter`() { in Remove default parameter()
697 fun `Remove optional parameter`() { in Remove optional parameter()
1106 fun `allow adding first type parameter`() { in allow adding first type parameter()
1124 fun `disallow removing type parameter`() { in disallow removing type parameter()
3490 fun `Adding default value to annotation parameter`() { in Adding default value to annotation parameter()
3855 fun `unchanged self-referencing type parameter is compatible`() { in unchanged self-referencing type parameter is compatible()
/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/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/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.typeBounds() in markRecent()
DTextTypeParameterList.kt38 for (parameter in typeParameters) { in toString() constant
39 names.add(parameter.simpleName()) in toString()

123