• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package dagger.hilt.android.processor.internal.viewmodel
2 
3 import com.google.testing.compile.JavaFileObjects
4 
5 val GENERATED_TYPE = try {
6   Class.forName("javax.annotation.processing.Generated")
7   "javax.annotation.processing.Generated"
8 } catch (_: ClassNotFoundException) {
9   "javax.annotation.Generated"
10 }
11 
12 const val GENERATED_ANNOTATION =
13   "@Generated(\"dagger.hilt.android.processor.internal.viewmodel.ViewModelProcessor\")"
14 
Stringnull15 fun String.toJFO(qName: String) = JavaFileObjects.forSourceString(qName, this.trimIndent())
16