示例#1
0
        public static bool IsBaseClass(this ASTRecord record)
        {
            Class decl;

            if (!record.GetParent(out decl))
            {
                return(false);
            }

            var recordDecl = record.Object as Class;

            return(recordDecl != null && recordDecl == decl.BaseClass);
        }
示例#2
0
        public static bool IsBaseClass(this ASTRecord record)
        {
            Class decl;

            return(record.GetParent(out decl) && decl.BaseClass == record.Object);
        }