def schemes(self):
        """
        This method is used for both 'xcworkspace' and 'xcodeproj' classes. It returns a
        list of schemes that are labeled as 'user' or 'shared'.
        """
        schemes = [];
        # shared schemes
        if XCSchemeHasSharedSchemes(self.path.obj_path) == True:
            shared_path = XCSchemeGetSharedPath(self.path.obj_path);
            shared_schemes = XCSchemeParseDirectory(shared_path);
            for scheme in shared_schemes:
                scheme.shared = True;
                scheme.container = self.path;
                schemes.append(scheme);
        # user schemes
        if XCSchemeHasUserSchemes(self.path.obj_path) == True:
            user_path = XCSchemeGetUserPath(self.path.obj_path);
            user_schemes = XCSchemeParseDirectory(user_path);
            for scheme in user_schemes:
                scheme.container = self.path;
                schemes.append(scheme);
        return schemes;
dataset/ETHPy150Open samdmarshall/xcparse/xcparse/Xcode/xc_base.py/xc_base.schemes/original