fix(manager/gradle): extend allowed nesting depth for Kotlin objects from 3 to 4 (#22959)

This commit is contained in:
Johannes Feichtner 2023-06-24 18:51:04 +02:00 committed by GitHub
parent ad025ce959
commit edb9518bf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -981,8 +981,10 @@ describe('modules/manager/gradle/parser', () => {
const val core = "androidx.test:core:\${Deps.Test.version}"
object Espresso {
private const val version = "3.3.0-rc01"
const val espressoCore = "androidx.test.espresso:espresso-core:$version"
object Release {
private const val version = "3.3.0-rc01"
const val espressoCore = "androidx.test.espresso:espresso-core:$version"
}
}
object Androidx {
@ -1003,8 +1005,8 @@ describe('modules/manager/gradle/parser', () => {
key: 'Deps.Test.version',
value: '1.3.0-rc01',
},
'Deps.Test.Espresso.version': {
key: 'Deps.Test.Espresso.version',
'Deps.Test.Espresso.Release.version': {
key: 'Deps.Test.Espresso.Release.version',
value: '3.3.0-rc01',
},
},
@ -1022,7 +1024,7 @@ describe('modules/manager/gradle/parser', () => {
{
depName: 'androidx.test.espresso:espresso-core',
currentValue: '3.3.0-rc01',
groupName: 'Deps.Test.Espresso.version',
groupName: 'Deps.Test.Espresso.Release.version',
},
{
depName: 'androidx.test:core-ktx',

View file

@ -49,6 +49,8 @@ const qKotlinMultiObjectExpr = (
export const qKotlinMultiObjectVarAssignment = qKotlinMultiObjectExpr(
qKotlinMultiObjectExpr(
qKotlinMultiObjectExpr(qKotlinSingleObjectVarAssignment)
qKotlinMultiObjectExpr(
qKotlinMultiObjectExpr(qKotlinSingleObjectVarAssignment)
)
)
).handler(cleanupTempVars);