コード例 #1
0
        public TypeEntry(TypeDef type, TypeEntry parent)
        {
            Type = type;
            Namespace = parent.Namespace;

            Namespace.Types.Add(this);

            Nested = new List<TypeEntry>();
            Parent.Nested.Add(this);
        }
コード例 #2
0
 private void OpenModule()
 {
     if (typeEntry == null)
     {
         typeEntry = new TypeEntry(type, fileNamespaceEntry);
     }
     else
     {
         typeEntry = new TypeEntry(type, typeEntry);
     }
 }
コード例 #3
0
        private TypeDef CloseType()
        {
            this.type.SetFileNamespaceEntry(fileNamespaceEntry);

            if (typeEntry.Parent == null)
            {
                typeEntry = null;
            }
            else
            {
                typeEntry = typeEntry.Parent;
            }

            TypeDef type = this.type;
            this.type = this.type.Parent;

            return type;
        }