lib/yard/autoload.rb in yard-0.7.5 vs lib/yard/autoload.rb in yard-0.8.0

- old
+ new

@@ -13,10 +13,11 @@ autoload :List, __p('cli/list') autoload :Server, __p('cli/server') autoload :Stats, __p('cli/stats') autoload :Yardoc, __p('cli/yardoc') autoload :YRI, __p('cli/yri') + autoload :I18n, __p('cli/i18n') end # A "code object" is defined as any entity in the Ruby language. # Classes, modules, methods, class variables and constants are the # major objects, but DSL languages can create their own by inheriting @@ -55,26 +56,48 @@ # Handlers are called during the data processing part of YARD's # parsing phase. This allows YARD as well as any custom extension to # analyze source and generate {CodeObjects} to be stored for later use. module Handlers + # CRuby Handlers + # @since 0.8.0 + module C + autoload :Base, __p('handlers/c/base') + + autoload :AliasHandler, __p('handlers/c/alias_handler') + autoload :AttributeHandler, __p('handlers/c/attribute_handler') + autoload :ClassHandler, __p('handlers/c/class_handler') + autoload :ConstantHandler, __p('handlers/c/constant_handler') + autoload :HandlerMethods, __p('handlers/c/handler_methods') + autoload :InitHandler, __p('handlers/c/init_handler') + autoload :MethodHandler, __p('handlers/c/method_handler') + autoload :MixinHandler, __p('handlers/c/mixin_handler') + autoload :ModuleHandler, __p('handlers/c/module_handler') + autoload :OverrideCommentHandler, __p('handlers/c/override_comment_handler') + autoload :PathHandler, __p('handlers/c/path_handler') + autoload :StructHandler, __p('handlers/c/struct_handler') + autoload :SymbolHandler, __p('handlers/c/symbol_handler') + end + module Ruby # All Ruby handlers module Legacy # Handlers for old Ruby 1.8 parser autoload :Base, __p('handlers/ruby/legacy/base') autoload :AliasHandler, __p('handlers/ruby/legacy/alias_handler') autoload :AttributeHandler, __p('handlers/ruby/legacy/attribute_handler') autoload :ClassHandler, __p('handlers/ruby/legacy/class_handler') autoload :ClassConditionHandler, __p('handlers/ruby/legacy/class_condition_handler') autoload :ClassVariableHandler, __p('handlers/ruby/legacy/class_variable_handler') + autoload :CommentHandler, __p('handlers/ruby/legacy/comment_handler') autoload :ConstantHandler, __p('handlers/ruby/legacy/constant_handler') + autoload :DSLHandler, __p('handlers/ruby/legacy/dsl_handler') autoload :ExceptionHandler, __p('handlers/ruby/legacy/exception_handler') autoload :ExtendHandler, __p('handlers/ruby/legacy/extend_handler') - autoload :MacroHandler, __p('handlers/ruby/legacy/macro_handler') autoload :MethodHandler, __p('handlers/ruby/legacy/method_handler') autoload :MixinHandler, __p('handlers/ruby/legacy/mixin_handler') autoload :ModuleHandler, __p('handlers/ruby/legacy/module_handler') + autoload :ModuleFunctionHandler, __p('handlers/ruby/legacy/module_function_handler') autoload :PrivateConstantHandler, __p('handlers/ruby/legacy/private_constant_handler') autoload :VisibilityHandler, __p('handlers/ruby/legacy/visibility_handler') autoload :YieldHandler, __p('handlers/ruby/legacy/yield_handler') end @@ -83,19 +106,21 @@ autoload :AliasHandler, __p('handlers/ruby/alias_handler') autoload :AttributeHandler, __p('handlers/ruby/attribute_handler') autoload :ClassHandler, __p('handlers/ruby/class_handler') autoload :ClassConditionHandler, __p('handlers/ruby/class_condition_handler') autoload :ClassVariableHandler, __p('handlers/ruby/class_variable_handler') + autoload :CommentHandler, __p('handlers/ruby/comment_handler') autoload :ConstantHandler, __p('handlers/ruby/constant_handler') + autoload :DSLHandler, __p('handlers/ruby/dsl_handler') + autoload :DSLHandlerMethods, __p('handlers/ruby/dsl_handler_methods') autoload :ExceptionHandler, __p('handlers/ruby/exception_handler') autoload :ExtendHandler, __p('handlers/ruby/extend_handler') - autoload :MacroHandler, __p('handlers/ruby/macro_handler') - autoload :MacroHandlerMethods, __p('handlers/ruby/macro_handler_methods') autoload :MethodHandler, __p('handlers/ruby/method_handler') autoload :MethodConditionHandler, __p('handlers/ruby/method_condition_handler') autoload :MixinHandler, __p('handlers/ruby/mixin_handler') autoload :ModuleHandler, __p('handlers/ruby/module_handler') + autoload :ModuleFunctionHandler, __p('handlers/ruby/module_function_handler') autoload :PrivateConstantHandler, __p('handlers/ruby/private_constant_handler') autoload :StructHandlerMethods, __p('handlers/ruby/struct_handler_methods') autoload :VisibilityHandler, __p('handlers/ruby/visibility_handler') autoload :YieldHandler, __p('handlers/ruby/yield_handler') end @@ -103,13 +128,29 @@ autoload :Base, __p('handlers/base') autoload :NamespaceMissingError, __p('handlers/base') autoload :Processor, __p('handlers/processor') end + # Namespace for internationalization (i18n) + # @since 0.8.0 + module I18n + autoload :PotGenerator, __p('i18n/pot_generator') + autoload :Text, __p('i18n/text') + end + # The parser namespace holds all parsing engines used by YARD. # Currently only Ruby and C (Ruby) parsers are implemented. module Parser + module C # CRuby Parsing components + autoload :BodyStatement, __p('parser/c/statement') + autoload :Comment, __p('parser/c/statement') + autoload :CommentParser, __p('parser/c/comment_parser') + autoload :CParser, __p('parser/c/c_parser') + autoload :Statement, __p('parser/c/statement') + autoload :ToplevelStatement, __p('parser/c/statement') + end + module Ruby # Ruby parsing components. module Legacy # Handles Ruby parsing in Ruby 1.8. autoload :RipperParser, __p('parser/ruby/legacy/ruby_parser') autoload :RubyParser, __p('parser/ruby/legacy/ruby_parser') autoload :RubyToken, __p('parser/ruby/legacy/ruby_lex') @@ -121,11 +162,10 @@ autoload :AstNode, __p('parser/ruby/ast_node') autoload :RubyParser, __p('parser/ruby/ruby_parser') end autoload :Base, __p('parser/base') - autoload :CParser, __p('parser/c_parser') autoload :ParserSyntaxError, __p('parser/source_parser') autoload :SourceParser, __p('parser/source_parser') autoload :UndocumentableError, __p('parser/source_parser') end @@ -160,13 +200,10 @@ autoload :Base, __p('server/commands/base') autoload :DisplayFileCommand, __p('server/commands/display_file_command') autoload :DisplayObjectCommand, __p('server/commands/display_object_command') autoload :FramesCommand, __p('server/commands/frames_command') autoload :ListCommand, __p('server/commands/list_command') - autoload :ListClassesCommand, __p('server/commands/list_command') - autoload :ListFilesCommand, __p('server/commands/list_command') - autoload :ListMethodsCommand, __p('server/commands/list_command') autoload :LibraryCommand, __p('server/commands/library_command') autoload :LibraryIndexCommand, __p('server/commands/library_index_command') autoload :SearchCommand, __p('server/commands/search_command') autoload :StaticFileCommand, __p('server/commands/static_file_command') end @@ -184,19 +221,27 @@ autoload :WebrickAdapter, __p('server/webrick_adapter') autoload :WebrickServlet, __p('server/webrick_adapter') end module Tags # Namespace for Tag components - autoload :DefaultFactory, __p('tags/default_factory') - autoload :DefaultTag, __p('tags/default_tag') - autoload :Library, __p('tags/library') - autoload :OptionTag, __p('tags/option_tag') - autoload :OverloadTag, __p('tags/overload_tag') - autoload :RefTag, __p('tags/ref_tag') - autoload :RefTagList, __p('tags/ref_tag_list') - autoload :Tag, __p('tags/tag') - autoload :TagFormatError, __p('tags/tag_format_error') + autoload :AttributeDirective, __p('tags/directives') + autoload :DefaultFactory, __p('tags/default_factory') + autoload :DefaultTag, __p('tags/default_tag') + autoload :EndGroupDirective, __p('tags/directives') + autoload :GroupDirective, __p('tags/directives') + autoload :Library, __p('tags/library') + autoload :MacroDirective, __p('tags/directives') + autoload :MethodDirective, __p('tags/directives') + autoload :OptionTag, __p('tags/option_tag') + autoload :OverloadTag, __p('tags/overload_tag') + autoload :ParseDirective, __p('tags/directives') + autoload :RefTag, __p('tags/ref_tag') + autoload :RefTagList, __p('tags/ref_tag_list') + autoload :ScopeDirective, __p('tags/directives') + autoload :Tag, __p('tags/tag') + autoload :TagFormatError, __p('tags/tag_format_error') + autoload :VisibilityDirective, __p('tags/directives') end # Namespace for templating system module Templates module Helpers # Namespace for template helpers @@ -213,21 +258,24 @@ autoload :ModuleHelper, __p('templates/helpers/module_helper') autoload :TextHelper, __p('templates/helpers/text_helper') autoload :UMLHelper, __p('templates/helpers/uml_helper') end - autoload :Engine, __p('templates/engine') - autoload :ErbCache, __p('templates/erb_cache') - autoload :Section, __p('templates/section') - autoload :Template, __p('templates/template') + autoload :Engine, __p('templates/engine') + autoload :ErbCache, __p('templates/erb_cache') + autoload :Section, __p('templates/section') + autoload :Template, __p('templates/template') + autoload :TemplateOptions, __p('templates/template_options') end - autoload :Config, __p('config') - autoload :Docstring, __p('docstring') - autoload :Logger, __p('logging') - autoload :Registry, __p('registry') - autoload :RegistryStore, __p('registry_store') - autoload :StubProxy, __p('serializers/yardoc_serializer') - autoload :Verifier, __p('verifier') + autoload :Config, __p('config') + autoload :Docstring, __p('docstring') + autoload :DocstringParser, __p('docstring_parser') + autoload :Logger, __p('logging') + autoload :Options, __p('options') + autoload :Registry, __p('registry') + autoload :RegistryStore, __p('registry_store') + autoload :StubProxy, __p('serializers/yardoc_serializer') + autoload :Verifier, __p('verifier') end undef __p