EscapeFieldAnnotationKey allows the Lookup of a field's Annotation in the Annotation map For fields of depth 1, with struct initialization check, we track the nilability using param field and return field. Anything that is not trackable using those, rely on the default nilability of the field. Thus,
| 552 | // e.g., if we have fun(&A{}) then the field aptr is considered escaped |
| 553 | // TODO: Add struct assignment as another possible cause of field escape |
| 554 | type EscapeFieldAnnotationKey struct { |
| 555 | FieldDecl *types.Var |
| 556 | } |
| 557 | |
| 558 | // Lookup looks this key up in the passed map, returning a Val |
| 559 | // Currently, the annotation key is used only with inference |
nothing calls this directly
no outgoing calls
no test coverage detected