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