RemoteNode getRemoteNode(String path)

Source

RemoteNode getRemoteNode(String path) {
  var node = _nodes[path];

  if (node == null) {
    if ((_nodes.length % 1000) == 0) {
      logger.fine("Node Cache hit ${_nodes.length} nodes in size.");
    }

    if (path.startsWith("defs")) {
      node = _nodes[path] = new RemoteDefNode(path);
    } else {
      node = _nodes[path] = new RemoteNode(path);
    }
  }

  return node;
}