ProgramInfo constructor

ProgramInfo()

Implementation

factory ProgramInfo() {
  final ProgramInfoNode root = ProgramInfoNode._(
      id: rootId, name: '@shared', type: NodeType.libraryNode, parent: null);

  final ProgramInfoNode stubs = ProgramInfoNode._(
      id: stubsId, name: '@stubs', type: NodeType.libraryNode, parent: root);
  root.children[stubs.name] = stubs;

  final ProgramInfoNode unknown = ProgramInfoNode._(
      id: unknownId,
      name: '@unknown',
      type: NodeType.libraryNode,
      parent: root);
  root.children[unknown.name] = unknown;

  return ProgramInfo._(root, stubs, unknown);
}