예제 #1
0
파일: SourceDB.cs 프로젝트: emtees/old-code
		public void AddType (string Namespace, string type, Part part)
		{
			TypeDB tdb = this [Namespace] as TypeDB;

			Console.WriteLine ("add type namespace: {0} type: {1}", Namespace, type);
			if (tdb == null)
				tdb = this [Namespace] = new TypeDB ();
			TypeRecord tr = tdb [type];
			if (tr == null)
				tdb [type] = new TypeRecord (type, part);
			else
				tr.part = part;
		}
예제 #2
0
파일: SourceDB.cs 프로젝트: emtees/old-code
		public void AddMember (string Namespace, string type, string member, Part part)
		{
			TypeDB tdb = this [Namespace] as TypeDB;

			Console.WriteLine ("add {0}.{1}.{2}", Namespace, type, member);
			if (tdb == null)
				tdb = this [Namespace] = new TypeDB ();
			TypeRecord tr = tdb [type];
			if (tr == null) {
				tr = tdb [type] = new TypeRecord (type);
				types ++;
			}
			if (tr.MemberDB [member] == null)
				members ++;
			tr.MemberDB [member] = part;
		}