parseModule method

ModuleElement parseModule(
  1. DartObject o
)

Parses a static object representing a Module.

Implementation

ModuleElement parseModule(DartObject o) {
  if (isList(o)) {
    return _parseList(o);
  } else if ($Module.isExactlyType(o.type!)) {
    return _parseModule(o);
  } else {
    final typeName = getTypeName(o.type!);
    throw FormatException('Expected Module, got "$typeName".');
  }
}