Skip to content

Commit

Permalink
Merge branch 'master' into pwrobeldev/dart-fix-linter-unreachable_swi…
Browse files Browse the repository at this point in the history
…tch_default
  • Loading branch information
pwrobeldev authored Jan 13, 2025
2 parents 6828e5f + cd5fc54 commit 13701db
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import com.here.gluecodium.generator.common.NameRules
import com.here.gluecodium.model.lime.LimeAttributeType.JAVA
import com.here.gluecodium.model.lime.LimeAttributeValueType.NAME
import com.here.gluecodium.model.lime.LimeElement
import com.here.gluecodium.model.lime.LimeLambdaParameter
import com.here.gluecodium.model.lime.LimeNamedElement
import com.here.gluecodium.model.lime.LimeProperty
import com.here.gluecodium.model.lime.LimeTypedElement
Expand All @@ -40,11 +39,6 @@ internal class JavaNameRules(nameRuleSet: NameRuleSet) : NameRules(nameRuleSet)
(limeElement as? LimeProperty)?.let { getPlatformName(it.setter) }
?: super.getSetterName(limeElement)

fun getName(
limeLambdaParameter: LimeLambdaParameter,
index: Int,
) = limeLambdaParameter.attributes.get(JAVA, NAME) ?: "p$index"

private fun getPlatformName(limeElement: LimeNamedElement?) = limeElement?.attributes?.get(JAVA, NAME)

companion object {
Expand Down

0 comments on commit 13701db

Please sign in to comment.