Home
last modified time | relevance | path

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

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt242 val literalValue = expression.value in appendExpression() constant
243 if (appendLiteralValue(sb, literalValue)) { in appendExpression()
363 val literalValue = ConstantEvaluator.evaluate(null, expression) in appendExpression() constant
364 if (literalValue != null) { in appendExpression()
365 if (appendLiteralValue(sb, literalValue)) { in appendExpression()
376 private fun appendLiteralValue(sb: StringBuilder, literalValue: Any?): Boolean { in appendLiteralValue()
377 if (literalValue == null) { in appendLiteralValue()
380 } else if (literalValue is Number || literalValue is Boolean) { in appendLiteralValue()
381 sb.append(literalValue.toString()) in appendLiteralValue()
383 } else if (literalValue is String || literalValue is Char) { in appendLiteralValue()
[all …]