Skip to content

Supports field access of Dao parameter type in reference resolution of for directive top element #139

@xterao

Description

@xterao

When resolving the reference of the top element of the for directive, if it is a field access, only the type of the Dao parameter can be obtained.
If it is a field access, the type of the last called property is obtained and the reference is resolved to the element defined in the for directive.

public class Principal {

    private List<Permission> permissions;

    public static class Permission {
        public String name;
        public String description;
    }
}
@Select
  int selectByPrincipal(Principal principal);
/*%for item : principal.permissions */ -- The type is not displayed when I hover the cursor over an item
    /* item.name */
/*%end */

Expectation: item is resolved as a Permission type

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixBug fixes

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions