示例#1
0
/* Constructs a scalar array with all the shape field names,
 * this/self/parent, classes, type accesses, and type aliases
 * resolved. */
Array TypeStructure::resolve(const Class::Const& typeCns,
                             const Class* typeCnsCls) {
  assert(typeCns.isType());
  assert(typeCns.m_val.m_type == KindOfArray);
  assert(typeCns.m_name);
  assert(typeCnsCls);

  Array arr(typeCns.m_val.m_data.parr);
  return resolveTS(arr, typeCns, typeCnsCls);
}
示例#2
0
/*
 * Constructs a scalar array with all the shape field names, this/self/parent,
 * classes, type accesses, and type aliases resolved.
 */
Array TypeStructure::resolve(const Class::Const& typeCns,
                             const Class* typeCnsCls,
                             bool& persistent) {
  assert(typeCns.isType());
  assert(isArrayType(typeCns.val.m_type));
  assert(typeCns.name);
  assert(typeCnsCls);

  Array arr(typeCns.val.m_data.parr);
  return resolveTS(arr, typeCns, typeCnsCls, Array(), persistent);
}