Skip to content
  1. Jan 28, 2013
  2. Jan 24, 2013
  3. Jan 23, 2013
    • Rene Saarsoo's avatar
      Move use of Parser out of Source::File. · db238621
      Rene Saarsoo authored
      With the help of our new MiniParser, we only need to change the
      parsing setup code in there, not touching all the related specs.
      db238621
    • Rene Saarsoo's avatar
      Create MiniParser helper for use in parsing tests. · 4bbcc296
      Rene Saarsoo authored
      This helps to keep the parsing setup in one place and allow easier
      changes to it when needed.  Each spec file only needs to call the
      Helper::MiniParser.parse with a few arguments, simplifying the
      setup code inside actual spec files.
      
      Because the MiniParser.parse always returns Relations object, add
      a #length method to Relations class, so that the tests that previously
      checked the length of simple classes hash can now call the same method
      on Relations object and continue passing.
      4bbcc296
    • Rene Saarsoo's avatar
      Rename Source::FileParser to just Parser. · 2b778ff8
      Rene Saarsoo authored
      This is really the main parsing class and shouldn't be buried deep
      inside source/ dir.
      2b778ff8
    • Rene Saarsoo's avatar
      Rename Tag::Tag#parse to #parse_doc. · 66ce7c58
      Rene Saarsoo authored
      So it's clear that it's parsing the documentation.
      This way it's also clear that it goes along with the #process_doc
      method.
      66ce7c58
    • Rene Saarsoo's avatar
      Extract BatchProcessor from BatchParser. · eefc22eb
      Rene Saarsoo authored
      Let the BatchParser only deal with the actual parsing part.
      A separate BatchProcessor then deals with combining the parsed
      source files into classes and doing all kinds of additional
      processing on them.
      
      The top-level JsDuck::App is now also simpler as it just saves
      the @parsed_files and @relations into separate instance variables,
      and can easily use them later without needing to ask list of
      parsed files from BatchProcessor instance.
      
      Both BatchParser and BatchProcessor are now singleton classes keeping no
      state inside them - so they're also simpler to reason about.
      eefc22eb
    • Rene Saarsoo's avatar
      Extract Process::GlobalMembers from BatchParser. · 3bde89f9
      Rene Saarsoo authored
      Moving all the filter_class logic to GlobalMembers processor,
      which can take care of the global member corner case without
      disturbing the main BatchParser logic.
      3bde89f9
    • Rene Saarsoo's avatar
      Fix auto-categories creation. · 277937ed
      Rene Saarsoo authored
      A silly copy-paste mistake.
      277937ed
    • Rene Saarsoo's avatar
      Extract AutoLink and LinkRenderer from Inline::Link. · 321539ee
      Rene Saarsoo authored
      Splitting up the humongous Link class into more managable pieces.
      
      The DocFormatter constructor now takes two parameters - relations and
      options, instead of passing the relations in separately.  It then
      instantiates LinkRenderer and passes it to Link and AutoLink
      constructors.
      
      The LinkRenderer is still too heavily coupled to Link and AutoLink,
      as these call all the methods of LinkRenderer, but the situation is
      much better overall.
      321539ee
    • Rene Saarsoo's avatar
      b2906849
    • Rene Saarsoo's avatar
      Auto-link classnames beginning in lowecase. · 889bd5fa
      Rene Saarsoo authored
      Previously all auto-linked classnames had to begin with uppercase char,
      but that's not really needed as we only replace namespaced classnames
      anyway.
      889bd5fa
  4. Jan 22, 2013
Loading