Searched refs:consts (Results 1 – 3 of 3) sorted by relevance
15 val consts = classAst.fields.filter { in <lambda>() constant20 val intConsts = consts.filter { it.first.type.asString() == "int" } in <lambda>()21 val strConsts = consts.filter { it.first.type.asString() == "String" } in <lambda>()32 fun ClassPrinter.generateConstDef(consts: List<Pair<VariableDeclarator, FieldDeclaration>>) { in ClassPrinter()33 if (consts.size <= 1) return in ClassPrinter()35 val names = consts.map { it.first.nameAsString!! } in ClassPrinter()48 val annotatedConst = consts.find { it.second.annotations.isNonEmpty } in ClassPrinter()52 val type = consts[0].first.type.asString() in ClassPrinter()53 … val flag = type == "int" && consts.all { it.first.initializer.get().toString().startsWith("0x") } in ClassPrinter()60 values = consts.map { it.second } in ClassPrinter()[all …]
74 namespace consts { namespace
68 "--constified-enum", "android::c_interface::consts::.*",