toFieldAccessExpr

fun ResolvedFieldDeclaration.toFieldAccessExpr(expr: NameExpr): FieldAccessExpr

Converts a ResolvedFieldDeclaration to a FieldAccessExpr with the given name (as NameExpr).