Searched refs:ifFalse (Results 1 – 4 of 4) sorted by relevance
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
D | TernaryExpr.java | 30 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()
|
D | ExprModel.java | 184 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/ |
D | ExpressionVisitorTest.java | 134 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/ |
D | ExprWriters.kt | 54 val chosen = if (knownValues[myExpr.pred]!!) myExpr.ifTrue else myExpr.ifFalse in <lambda>()
|