Commit 59827c6
Defer ViewModelMetadata processing on error types or missing @AssistedFactory.
This change throws an ErrorTypeException when the assisted factory type is an error type or when the factory class is not yet annotated with @AssistedFactory. This allows the compiler to defer processing to a later round, giving time for the necessary types and annotations to be fully generated.
RELNOTES=Defered ViewModelMetadata processing on error types or missing @AssistedFactory
PiperOrigin-RevId: 9270457511 parent ee224b6 commit 59827c6
3 files changed
Lines changed: 8 additions & 2 deletions
File tree
- hilt-compiler/main/java/dagger/hilt
- android/processor/internal/viewmodel
- processor/internal
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
505 | 511 | | |
506 | 512 | | |
0 commit comments