react icon indicating copy to clipboard operation
react copied to clipboard

compiler: getGlobalDeclaration() takes a NonLocalBinding

Open josephsavona opened this issue 1 month ago • 2 comments

Stack from ghstack (oldest at bottom):

  • #29190
  • -> #29189
  • #29188

No-op refactor to make Environment#getGlobalDeclaration() take a NonLocalBinding instead of just a name. The idea is that in subsequent PRs we can use information about the binding to resolve a type more accurately. For example, we can resolve Array differently if its an import or local and not the global Array. Similar for resolving local useState differently than the one from React.

josephsavona avatar May 21 '24 06:05 josephsavona