package styled-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type position = Lexing.position = {
  1. pos_fname : string;
  2. pos_lnum : int;
  3. pos_bol : int;
  4. pos_cnum : int;
}
val show_position : position -> Ppx_deriving_runtime.string
type loc = Ppxlib.Location.t = {
  1. loc_start : position;
  2. loc_end : position;
  3. loc_ghost : bool;
}
val location : Format.formatter -> Ppxlib.location -> unit
type 'a with_loc = 'a * loc
type declaration = {
  1. name : string with_loc;
  2. value : component_value_list with_loc;
  3. important : bool with_loc;
  4. loc : loc;
}
and component_value_list = component_value with_loc list
and component_value =
  1. | Paren_block of component_value_list
  2. | Bracket_block of component_value_list
  3. | Percentage of string
  4. | Ident of string
  5. | String of string
  6. | Selector of selector_list
  7. | Uri of string
  8. | Operator of string
  9. | Combinator of string
  10. | Delim of string
  11. | Function of string with_loc * component_value_list with_loc
  12. | Hash of string
  13. | Number of string
  14. | Unicode_range of string
  15. | Float_dimension of string * string
  16. | Dimension of string * string
  17. | Variable of string list
and brace_block =
  1. | Empty
  2. | Rule_list of rule_list
  3. | Stylesheet of stylesheet
and at_rule = {
  1. name : string with_loc;
  2. prelude : component_value with_loc;
  3. block : brace_block;
  4. loc : loc;
}
and rule_list = rule list with_loc
and rule =
  1. | Declaration of declaration
  2. | Style_rule of style_rule
  3. | At_rule of at_rule
and style_rule = {
  1. prelude : selector_list with_loc;
  2. block : rule_list;
  3. loc : loc;
}
and stylesheet = rule list with_loc
and selector =
  1. | SimpleSelector of simple_selector
  2. | ComplexSelector of complex_selector
  3. | CompoundSelector of compound_selector
  4. | RelativeSelector of relative_selector
and selector_list = selector with_loc list
and complex_selector =
  1. | Selector of selector
  2. | Combinator of {
    1. left : selector;
    2. right : (string option * selector) list;
    }
and compound_selector = {
  1. type_selector : simple_selector option;
  2. subclass_selectors : subclass_selector list;
  3. pseudo_selectors : pseudo_selector list;
}
and relative_selector = {
  1. combinator : string option;
  2. complex_selector : complex_selector;
}
and simple_selector =
  1. | Universal
  2. | Ampersand
  3. | Type of string
  4. | Subclass of subclass_selector
  5. | Variable of string list
  6. | Percentage of string
and subclass_selector =
  1. | Id of string
  2. | Class of string
  3. | ClassVariable of string list
  4. | Attribute of attribute_selector
  5. | Pseudo_class of pseudo_selector
and attribute_selector =
  1. | Attr_value of string
  2. | To_equal of {
    1. name : string;
    2. kind : string;
    3. value : attr_value;
    }
and attr_value =
  1. | Attr_ident of string
  2. | Attr_string of string
and pseudo_selector =
  1. | Pseudoelement of string
  2. | Pseudoclass of pseudoclass_kind
and pseudoclass_kind =
  1. | PseudoIdent of string
  2. | Function of {
    1. name : string;
    2. payload : selector_list with_loc;
    }
  3. | NthFunction of {
    1. name : string;
    2. payload : nth_payload with_loc;
    }
and nth_payload =
  1. | Nth of nth
  2. | NthSelector of complex_selector list
and nth =
  1. | Even
  2. | Odd
  3. | A of int
  4. | AN of int
  5. | ANB of int * string * int
val show_declaration : declaration -> Ppx_deriving_runtime.string
val show_component_value_list : component_value_list -> Ppx_deriving_runtime.string
val show_component_value : component_value -> Ppx_deriving_runtime.string
val show_brace_block : brace_block -> Ppx_deriving_runtime.string
val show_at_rule : at_rule -> Ppx_deriving_runtime.string
val show_rule_list : rule_list -> Ppx_deriving_runtime.string
val show_style_rule : style_rule -> Ppx_deriving_runtime.string
val show_stylesheet : stylesheet -> Ppx_deriving_runtime.string
val show_selector : selector -> Ppx_deriving_runtime.string
val show_selector_list : selector_list -> Ppx_deriving_runtime.string
val show_complex_selector : complex_selector -> Ppx_deriving_runtime.string
val show_compound_selector : compound_selector -> Ppx_deriving_runtime.string
val show_relative_selector : relative_selector -> Ppx_deriving_runtime.string
val show_simple_selector : simple_selector -> Ppx_deriving_runtime.string
val show_subclass_selector : subclass_selector -> Ppx_deriving_runtime.string
val show_attribute_selector : attribute_selector -> Ppx_deriving_runtime.string
val show_attr_value : attr_value -> Ppx_deriving_runtime.string
val show_pseudo_selector : pseudo_selector -> Ppx_deriving_runtime.string
val show_pseudoclass_kind : pseudoclass_kind -> Ppx_deriving_runtime.string
val show_nth_payload : nth_payload -> Ppx_deriving_runtime.string
OCaml

Innovation. Community. Security.