summaryrefslogtreecommitdiff
path: root/compiler/src/main/kotlin/android/databinding
diff options
context:
space:
mode:
authorEsteban de la Canal <estebandlc@google.com>2016-09-28 19:13:22 +0000
committerEsteban de la Canal <estebandlc@google.com>2016-09-28 19:13:22 +0000
commit729298e98a96730a9fbcf8c1d2575a8f0da7cc70 (patch)
tree078677227f55b073124095726e8cee71dab2eab9 /compiler/src/main/kotlin/android/databinding
parent2dc087b58747f726413ac62bd0b6fd43c1835a8f (diff)
downloaddata-binding-729298e98a96730a9fbcf8c1d2575a8f0da7cc70.tar.gz
Revert "Add support for dependent bindable properties."
This reverts commit 2dc087b58747f726413ac62bd0b6fd43c1835a8f. I believe this broke the Android Studio build: tools/adt/idea/android/src/com/android/tools/idea/lang/databinding/model/PsiModelMethod.java:25: error: PsiModelMethod is not abstract and does not override abstract method getBindableAnnotation() in ModelMethod public class PsiModelMethod extends ModelMethod { Change-Id: Ia714f58a68a3d677e0f92cb01b4ac755bb28f2af
Diffstat (limited to 'compiler/src/main/kotlin/android/databinding')
-rw-r--r--compiler/src/main/kotlin/android/databinding/tool/writer/LayoutBinderWriter.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/src/main/kotlin/android/databinding/tool/writer/LayoutBinderWriter.kt b/compiler/src/main/kotlin/android/databinding/tool/writer/LayoutBinderWriter.kt
index 2da9367d..3820084d 100644
--- a/compiler/src/main/kotlin/android/databinding/tool/writer/LayoutBinderWriter.kt
+++ b/compiler/src/main/kotlin/android/databinding/tool/writer/LayoutBinderWriter.kt
@@ -749,15 +749,14 @@ class LayoutBinderWriter(val layoutBinder : LayoutBinder) {
block("switch (fieldId)", {
val accessedFields: List<FieldAccessExpr> = it.parents.filterIsInstance(FieldAccessExpr::class.java)
accessedFields.filter { it.isUsed && it.hasBindableAnnotations() }
- .flatMap { expr -> expr.dirtyingProperties.map { Pair(it, expr)} }
- .groupBy { it.first }
+ .groupBy { it.brName }
.forEach {
// If two expressions look different but resolve to the same method,
// we are not yet able to merge them. This is why we merge their
// flags below.
block("case ${it.key}:") {
block("synchronized(this)") {
- val flagSet = it.value.foldRight(FlagSet()) { l, r -> l.second.invalidateFlagSet.or(r) }
+ val flagSet = it.value.foldRight(FlagSet()) { l, r -> l.invalidateFlagSet.or(r) }
mDirtyFlags.mapOr(flagSet) { suffix, index ->
tab("${mDirtyFlags.localValue(index)} |= ${flagSet.localValue(index)};")