target method

LocatedNode target(
  1. ReferenceTarget target
)

Interprets a resolved target in its source context.

Implementation

LocatedNode target(ReferenceTarget target) => LocatedNode(
  DocumentNode(node.kind, target.value, target.location.pointer),
  target.location.documentUri,
  target.family ?? family,
  dialect: target.dialect,
);