parsetools (version 0.1.1)

pd_identify: Get the ID for an object

Description

Identify in pd the id for the object given.

Usage

pd_identify(pd, object)

# S3 method for default pd_identify(pd, object)

# S3 method for NULL pd_identify(pd, object)

# S3 method for srcref pd_identify(pd, object)

Arguments

pd

the parse data.

object

an object that originated in pd, for which to obtain the ID.

Methods (by class)

  • default: Default method identifies by base::srcref().

  • NULL: Passing a NULL object will result in an error.

  • srcref: Identify by explicit srcref.