pike.git / module.pmod.in

version» Context lines:

pike.git/module.pmod.in:11:      //! @ignore   inherit Tools@module@;   //! @endignore      //! SCSS compiler   class SCSS   {    inherit Tools@module@._Api;    -  protected multiset(string) known_opts = (< -  "output_style", "include_path", "source_map_file", "source_comments", -  "source_map_embed" >); -  +     //! Set options to the SASS compiler    //!    //! @param opts    //! @mapping    //! @member int "output_style"    //! Any of the @[STYLE_NESTED], @[STYLE_EXPANDED], @[STYLE_COMPACT]    //! or @[STYLE_COMPRESSED] constants. See also @[set_output_style()].    //! @member string "include_path"    //! Path to root of incude files. See also @[set_include_path()].    //! @member string "source_map_file"
pike.git/module.pmod.in:38:    //! Turn on/off comments in the output containing info about the source    //! file - line numbers and such. Default of @code{false@}. See also    //! @[set_source_comments()].    //! @member bool "source_map_embed"    //! Turn on/off if a source map should be embedded in the output or not.    //! Default is @code{false@}. See also @[set_source_map_embed()].    //! @endmapping    void set_options(mapping(string:string|int) opts)    {    foreach (opts; string opt; string|int val) { -  if (!known_opts[opt]) { -  error("Unknown option %O!\n", opt); -  } -  +     switch (opt)    {    case "output_style":    if (!intp(val)) {    error("Value to set_output_style() must be an integer!\n");    }    set_output_style(val);    break;       case "include_path":
pike.git/module.pmod.in:67:       case "source_map_file":    if (!stringp(val)) {    error("Value to set_source_map_file() must be a string!\n");    }    set_source_map_file(val);    break;       case "source_map_embed":    if (!intp(val)) { -  error("Value to set_source_map_embed() must be an int(0..1)\n"); +  error("Value to set_source_map_embed() must be an int(0..1)!\n");    }    set_source_map_embed(val);    break;    -  +  case "source_map_root": +  if (!stringp(val)) { +  error("Value to set_source_map_root() must be a string!\n"); +  } +  set_source_map_root(val); +  break; +  +  case "omit_source_map": +  if (!intp(val)) { +  error("Value to set_omit_source_map_url() must be an integer!\n"); +  } +  set_omit_source_map_url(val); +  break; +     case "source_comments":    if (!intp(val)) {    error("Value to set_source_comments() must be an integer!\n");    }    set_source_comments(val);    break; -  +  +  default: +  error("Unknown option %O!\n", opt);    }    }    }   }