Skip to content

Conversation

@aspeddro
Copy link
Collaborator

let polymorphicComponent = (~p as (x, _)) => React.string(x.name)
(source_file [0, 0] - [1, 0]
  (let_binding [0, 0] - [0, 65]
    (value_identifier [0, 4] - [0, 24])
    (function [0, 27] - [0, 65]
      parameters: (formal_parameters [0, 27] - [0, 41]
        (ERROR [0, 28] - [0, 33]
          (value_identifier [0, 29] - [0, 30]))
        (parameter [0, 34] - [0, 40]
          (tuple_pattern [0, 34] - [0, 40]
            (tuple_item_pattern [0, 35] - [0, 36]
              (value_identifier [0, 35] - [0, 36]))
            (tuple_item_pattern [0, 38] - [0, 39]
              (value_identifier [0, 38] - [0, 39])))))
      body: (call_expression [0, 45] - [0, 65]
        function: (value_identifier_path [0, 45] - [0, 57]
          (module_identifier [0, 45] - [0, 50])
          (value_identifier [0, 51] - [0, 57]))
        arguments: (arguments [0, 57] - [0, 65]
          (member_expression [0, 58] - [0, 64]
            record: (value_identifier [0, 58] - [0, 59])
            property: (property_identifier [0, 60] - [0, 64])))))))

https://github.com/rescript-association/reanalyze/blob/master/examples/deadcode/src/Hooks.res#L100

@nkrkv
Copy link
Collaborator

nkrkv commented Sep 13, 2022

Wow! Where do you get the source of all these edge cases? 🤯

@nkrkv nkrkv merged commit f1b1e34 into rescript-lang:main Sep 13, 2022
@aspeddro
Copy link
Collaborator Author

Reanalyze repo https://github.com/rescript-association/reanalyze/blob/master/examples/

@aspeddro aspeddro deleted the fix-as-aliasing branch September 18, 2022 02:09
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

Successfully merging this pull request may close these issues.

2 participants