parse method

Future<TreeElement> parse(
  1. ResourceResolver resolver,
  2. String instanceId,
  3. String instanceSrc, {
  4. bool partial = false,
})

Loads the instance instanceId from instanceSrc.

Throws ResourceNotFoundException when the file is missing, and the format parsers' exceptions when it is malformed.

Implementation

Future<TreeElement> parse(
  ResourceResolver resolver,
  String instanceId,
  String instanceSrc, {
  bool partial = false,
}) async => (await parseWithReload(
  resolver,
  instanceId,
  instanceSrc,
  partial: partial,
)).$1;