Loading lib/jsduck/builtins/param.rb 0 → 100644 +17 −0 Original line number Diff line number Diff line require "jsduck/builtins/tag" module JsDuck::Builtins class Param < Tag def initialize @pattern = "param" end # @param {Type} [name=default] (optional) ... def parse(p) p.add_tag(:param) p.maybe_type p.maybe_name_with_default p.maybe_optional end end end lib/jsduck/builtins/throws.rb 0 → 100644 +15 −0 Original line number Diff line number Diff line require "jsduck/builtins/tag" module JsDuck::Builtins class Throws < Tag def initialize @pattern = "throws" end # @throws {Type} ... def parse(p) p.add_tag(:throws) p.maybe_type end end end lib/jsduck/doc_parser.rb +0 −16 Original line number Diff line number Diff line Loading @@ -37,14 +37,12 @@ module JsDuck "ftype" => [:at_xtype, "feature"], "ptype" => [:at_xtype, "plugin"], "param" => [:at_param], "return" => [:at_return], "returns" => [:at_return], "type" => [:at_type], "inheritdoc" => [:at_inheritdoc], "inheritDoc" => [:at_inheritdoc], "alias" => [:at_alias_or_inheritdoc], "throws" => [:at_throws], "enum" => [:at_enum], "override" => [:at_override], } Loading Loading @@ -202,14 +200,6 @@ module JsDuck # Routines for parsing of concrete tags... # # matches @param {type} [name] (optional) ... def at_param add_tag(:param) maybe_type maybe_name_with_default maybe_optional end # matches @return {type} [ return.name ] ... def at_return add_tag(:return) Loading @@ -222,12 +212,6 @@ module JsDuck end end # matches @throws {type} ... def at_throws add_tag(:throws) maybe_type end # matches @enum {type} name ... def at_enum # @enum is a special case of class Loading Loading
lib/jsduck/builtins/param.rb 0 → 100644 +17 −0 Original line number Diff line number Diff line require "jsduck/builtins/tag" module JsDuck::Builtins class Param < Tag def initialize @pattern = "param" end # @param {Type} [name=default] (optional) ... def parse(p) p.add_tag(:param) p.maybe_type p.maybe_name_with_default p.maybe_optional end end end
lib/jsduck/builtins/throws.rb 0 → 100644 +15 −0 Original line number Diff line number Diff line require "jsduck/builtins/tag" module JsDuck::Builtins class Throws < Tag def initialize @pattern = "throws" end # @throws {Type} ... def parse(p) p.add_tag(:throws) p.maybe_type end end end
lib/jsduck/doc_parser.rb +0 −16 Original line number Diff line number Diff line Loading @@ -37,14 +37,12 @@ module JsDuck "ftype" => [:at_xtype, "feature"], "ptype" => [:at_xtype, "plugin"], "param" => [:at_param], "return" => [:at_return], "returns" => [:at_return], "type" => [:at_type], "inheritdoc" => [:at_inheritdoc], "inheritDoc" => [:at_inheritdoc], "alias" => [:at_alias_or_inheritdoc], "throws" => [:at_throws], "enum" => [:at_enum], "override" => [:at_override], } Loading Loading @@ -202,14 +200,6 @@ module JsDuck # Routines for parsing of concrete tags... # # matches @param {type} [name] (optional) ... def at_param add_tag(:param) maybe_type maybe_name_with_default maybe_optional end # matches @return {type} [ return.name ] ... def at_return add_tag(:return) Loading @@ -222,12 +212,6 @@ module JsDuck end end # matches @throws {type} ... def at_throws add_tag(:throws) maybe_type end # matches @enum {type} name ... def at_enum # @enum is a special case of class Loading