Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic types are recognized as comparison_expression #396

Open
wojciech-kulik opened this issue Mar 24, 2024 · 1 comment
Open

Generic types are recognized as comparison_expression #396

wojciech-kulik opened this issue Mar 24, 2024 · 1 comment

Comments

@wojciech-kulik
Copy link

wojciech-kulik commented Mar 24, 2024

Example:

provider.request(
    type: Response<MyDataStructure>.self,
    service: MyService.someEndpoint
) { (response: SomeResponse) in
   // code
}

Result:

(call_expression ; [40, 8] - [45, 9]
  (navigation_expression ; [40, 8] - [40, 24]
    target: (simple_identifier) ; [40, 8] - [40, 16]
    suffix: (navigation_suffix ; [40, 16] - [40, 24]
      suffix: (simple_identifier))) ; [40, 17] - [40, 24]
  (call_suffix ; [40, 24] - [45, 9]
    (value_arguments ; [40, 24] - [43, 9]
      (value_argument ; [41, 12] - [41, 48]
        name: (value_argument_label ; [41, 12] - [41, 16]
          (simple_identifier)) ; [41, 12] - [41, 16]
        value: (comparison_expression ; [41, 18] - [41, 48]
          lhs: (simple_identifier) ; [41, 18] - [41, 26]
          rhs: (comparison_expression ; [41, 27] - [41, 48]
            lhs: (simple_identifier) ; [41, 27] - [41, 42]
            rhs: (prefix_expression ; [41, 43] - [41, 48]
              target: (self_expression))))) ; [41, 44] - [41, 48]
  ...
@alex-pinkus
Copy link
Owner

Thanks for the report! I think this is the same as #350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants