Home
last modified time | relevance | path

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

/frameworks/base/tools/codegen/src/com/android/codegen/
DClassInfo.kt6 open class ClassInfo(val classAst: ClassOrInterfaceDeclaration, val fileInfo: FileInfo) { in <lambda>() constant in com.android.codegen.ClassInfo
10 val nestedClasses = classAst.members.filterIsInstance<ClassOrInterfaceDeclaration>() in <lambda>()
11 val nestedTypes = classAst.members.filterIsInstance<TypeDeclaration<*>>() in <lambda>()
13 val superInterfaces = classAst.implementedTypes.map { it.asString() } in <lambda>()
14 val superClass = classAst.extendedTypes.getOrNull(0) in <lambda>()
16 val ClassName = classAst.nameAsString in <lambda>()
17 private val genericArgsAst = classAst.typeParameters in <lambda>()
25 val fields = classAst.fields in <lambda>()
DInputSignaturesComputation.kt11 return generateInputSignaturesForClass(classAst) + in <lambda>()
12 annotationToString(classAst.annotations.find { it.nameAsString == DataClass }) + in <lambda>()
16 private fun ClassPrinter.generateInputSignaturesForClass(classAst: ClassOrInterfaceDeclaration?): L… in ClassPrinter()
17 if (classAst == null) return emptyList() in ClassPrinter()
19 return classAst.fields.map { fieldAst -> in ClassPrinter()
29 } + classAst.methods.map { methodAst -> in ClassPrinter()
45 classAst.nestedNonDataClasses.flatMap { nestedClass -> in ClassPrinter()
128 val thisClassPrefix = thisPackagePrefix + classAst.nameAsString + "." in getFullClassName()
130 if (classAst.nameAsString == className) return thisPackagePrefix + classAst.nameAsString in getFullClassName()
DClassPrinter.kt14 classAst: ClassOrInterfaceDeclaration, in <lambda>()
16 ) : ClassInfo(classAst, fileInfo), Printer<ClassPrinter>, ImportsProvider { in <lambda>()
33 if (!classAst.isFinal && in <lambda>()
34 classAst.extendedTypes.any { it.nameAsString == Parcelable }) { in <lambda>()
94 val dataClassAnnotationFeatures = classAst.annotations in <lambda>()
163 getSuppressedMembers(classAst) in <lambda>()
197 if (name == ClassName) classAst.constructors else classAst.methods in <lambda>()
204 val lazyTransientFields = classAst.fields in <lambda>()
214 val builderFactoryOverride = classAst.methods.find { in <lambda>()
221 val builderExtension = classAst in <lambda>()
DGenerators.kt15 val consts = classAst.fields.filter { in <lambda>()
157 if (classAst.constructors.any { in generateCopyConstructor()
218 val maybeFinal = if_(classAst.isFinal, "final ") in ClassPrinter()
482 val visibility = if (classAst.isFinal) "/* package-private */" else "protected" in generateParcelable()
599 if (classAst.fields.none { it.variables[0].nameAsString == "CREATOR" }) { in generateParcelable()
DFieldInfo.kt78 get() = classInfo.classAst.methods.find { method -> in <lambda>()
85 classInfo.classAst.methods.find { in <lambda>()