2 // type.cs: Type container.
4 // Author: Miguel de Icaza (miguel@gnu.org)
6 // Licensed under the terms of the GNU GPL
8 // (C) 2001 Ximian, Inc (http://www.ximian.com)
12 using System.Collections;
15 public class xUnresolvedType {
19 public xUnresolvedType (TypeContainer parent, string name)
31 public TypeContainer Parent {
38 public class xTypeRef {
41 public xTypeRef (object data)
52 public xUnresolvedType UnresolvedData {
54 if (data is UnresolvedType)
55 return (UnresolvedType) data;
63 if (data is UnresolvedType)
70 public bool IsResolved {
72 return !(data is UnresolvedType);
76 public bool Resolve () {
81 public class xTypeRefManager {
82 ArrayList pending_types;
84 public xTypeRefManager ()
86 pending_types = new ArrayList ();
89 public TypeRef GetTypeRef (TypeContainer container, string name)
94 unresolved = new UnresolvedType (container, name);
95 typeref = new TypeRef (unresolved);
96 pending_types.Add (typeref);