Class | YARD::Parser::Base |
In: |
lib/yard/parser/base.rb
|
Parent: | Object |
Represents the abstract base parser class that parses source code in a specific way. A parser should implement {parse}, {tokenize} and {enumerator}.
To register a parser, see {SourceParser.register_parser_type}
@abstract @see parse @see tokenize @see enumerator @since 0.5.6
This method should be implemented to return a list of semantic tokens representing the source code to be post-processed. Otherwise the method should return nil.
@abstract @return [Array] a list of semantic tokens representing the source code
to be post-processed
@return [nil] if no post-processing should be done