Home
last modified time | relevance | path

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

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt324 val literalValue = expression.value in appendExpression() constant
325 if (appendLiteralValue(sb, literalValue)) { in appendExpression()
445 val literalValue = ConstantEvaluator.evaluate(null, expression) in appendExpression() constant
446 if (literalValue != null) { in appendExpression()
447 if (appendLiteralValue(sb, literalValue)) { in appendExpression()
461 private fun appendLiteralValue(sb: StringBuilder, literalValue: Any?): Boolean { in appendLiteralValue()
462 if (literalValue == null) { in appendLiteralValue()
465 } else if (literalValue is Number || literalValue is Boolean) { in appendLiteralValue()
466 sb.append(literalValue.toString()) in appendLiteralValue()
468 } else if (literalValue is String || literalValue is Char) { in appendLiteralValue()
[all …]