| 2960 | } |
| 2961 | |
| 2962 | void Path::addPathInArg(const std::string & /*path*/, |
| 2963 | const InArgs &in, |
| 2964 | InArgs::const_iterator &itInArg, |
| 2965 | PathArgument::Kind kind) { |
| 2966 | if (itInArg == in.end()) { |
| 2967 | // Error: missing argument %d |
| 2968 | } else if ((*itInArg)->kind_ != kind) { |
| 2969 | // Error: bad argument type |
| 2970 | } else { |
| 2971 | args_.push_back(**itInArg); |
| 2972 | } |
| 2973 | } |
| 2974 | |
| 2975 | void Path::invalidPath(const std::string & /*path*/, int /*location*/) { |
| 2976 | // Error: invalid path. |