Home
last modified time | relevance | path

Searched refs:ifFalse (Results 1 – 4 of 4) sorted by relevance

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DTernaryExpr.java30 TernaryExpr(Expr pred, Expr ifTrue, Expr ifFalse) { in TernaryExpr() argument
31 super(pred, ifTrue, ifFalse); in TernaryExpr()
68 final Expr ifFalse = getIfFalse(); in resolveType() local
70 return ifFalse.getResolvedType(); in resolveType()
71 } else if (isNullLiteral(ifFalse)) { in resolveType()
113 ExecutionPath ifFalse = path.addBranch(getPred(), false); in toExecutionPath() local
114 if (ifFalse != null) { in toExecutionPath()
115 result.addAll(getIfFalse().toExecutionPath(ifFalse)); in toExecutionPath()
139 final Expr ifFalse = getIfFalse().generateInverse(model, value, bindingClassName); in generateInverse() local
140 return model.ternary(pred, ifTrue, ifFalse); in generateInverse()
DExprModel.java184 public TernaryExpr ternary(Expr pred, Expr ifTrue, Expr ifFalse) { in ternary() argument
185 return register(new TernaryExpr(pred, ifTrue, ifFalse)); in ternary()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DExpressionVisitorTest.java134 SymbolExpr ifFalse = (SymbolExpr) parsed.getIfFalse(); in testTernary() local
136 assertEquals("4", ifFalse.getText()); in testTernary()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/expr/
DExprWriters.kt54 val chosen = if (knownValues[myExpr.pred]!!) myExpr.ifTrue else myExpr.ifFalse in <lambda>()