resolveToValue.d.ts 382 B

123456789
  1. import type { NodePath } from '@babel/traverse';
  2. /**
  3. * If the path is an identifier, it is resolved in the scope chain.
  4. * If it is an assignment expression, it resolves to the right hand side.
  5. * If it is a member expression it is resolved to it's initialization value.
  6. *
  7. * Else the path itself is returned.
  8. */
  9. export default function resolveToValue(path: NodePath): NodePath;