(meta: TcbDirectiveMetadata)
| 306 | } |
| 307 | |
| 308 | export function isFieldDirective(meta: TcbDirectiveMetadata): boolean { |
| 309 | if (meta.name !== 'FormField') { |
| 310 | return false; |
| 311 | } |
| 312 | |
| 313 | // Fast path, relevant for all external users. |
| 314 | if (meta.ref.moduleName === '@angular/forms/signals') { |
| 315 | return true; |
| 316 | } |
| 317 | |
| 318 | // Slightly slower, but more accurate path. Fallback for internal / local compilation where we don't have the exact module. |
| 319 | return meta.hasNgFieldDirective; |
| 320 | } |
| 321 | |
| 322 | function getSyntheticFieldBoundInput( |
| 323 | dir: TcbDirectiveMetadata, |
no outgoing calls
no test coverage detected