• Resolves a given identifier name to a list of its possible definition location using R scoping and resolving rules.

    Parameters

    • name: Identifier

      The name of the identifier to resolve

    • environment: REnvironmentInformation

      The current environment used for name resolution

    • target: ReferenceType = ReferenceType.Unknown

      The target (meta) type of the identifier to resolve

    Returns IdentifierDefinition[] | undefined

    A list of possible definitions of the identifier (one if the definition location is exactly and always known), or undefined if the identifier is undefined in the current scope/with the current environment information.