예제 #1
0
파일: TypeGroup.cs 프로젝트: MilkTool/chela
        public Structure Find(GenericPrototype prototype)
        {
            TypeGroupName gname = new TypeGroupName(null, prototype);
            TypeGroupName res   = types.Find(gname);

            if (res != null)
            {
                return(res.GetBuilding());
            }
            return(null);
        }
예제 #2
0
        public Function Find(FunctionType type, bool isStatic)
        {
            MakeConcrete();
            FunctionGroupName gname   = new FunctionGroupName(type, isStatic);
            FunctionGroupName oldName = functions.Find(gname);

            if (oldName != null)
            {
                return(oldName.GetFunction());
            }
            return(null);
        }