 
 # Extracts docs from QuickUI markup controls
 markupDocsExtractor = new DocsExtractor
-  baseClassName: ///
+  baseClass: ///
     <prototype>               # Opening prototype tag
     \s*                       # Optional whitespace
     <                         # Open tag for base class instance


# Extracts docs from CoffeeScript controls
coffeeDocsExtractor = new DocsExtractor
  baseClassName: ///
    \r?\n                     # Start of line (no indentation)
    class                     # "class" keyword
    \s+                       # Whitespace

  constructor: ( @regexes ) ->

  extract: ( source ) ->
    className = @controlClassName source
    baseClass = @baseClass source
    members = @memberComments source
    requiredClasses = @requiredClasses source
    results = { className }
    if baseClass? and baseClass != "Control"
      results.baseClass = baseClass
    if members?
      results.members = members
    if requiredClasses?
      results.requiredClasses = requiredClasses
    results

  # Return the name for the control class defined in the source text.
  baseClass: ( source ) ->
    match = @regexes.baseClass.exec source
    match?[1]

  # Remove the comment indicator (e.g., "*") on interior block comment lines.
