Class: RuboCop::AST::PrismDiagnostic
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::Parser::Diagnostic
|
|
|
Instance Chain:
self,
::Parser::Diagnostic
|
|
| Inherits: |
Parser::Diagnostic
|
| Defined in: | lib/rubocop/ast/prism_parser.rb |
Overview
A syntax error or a warning that parser has no message for, reported
with the message of Prism.
Constant Summary
::Parser::Diagnostic - Inherited
Class Method Summary
::Parser::Diagnostic - Inherited
Instance Attribute Summary
- #message readonly
::Parser::Diagnostic - Inherited
| #arguments, | |
| #highlights | Supplementary error-related source ranges. |
| #level, | |
| #location | Main error-related source range. |
| #message, #reason | |
Instance Method Summary
::Parser::Diagnostic - Inherited
| #render | Renders the diagnostic message as a clang-like diagnostic. |
| #first_line_only | If necessary, shrink a |
| #last_line_only | If necessary, shrink a |
| #render_line | Renders one source line in clang diagnostic style, with highlights. |
Constructor Details
.new(message, level, reason, location) ⇒ PrismDiagnostic
# File 'lib/rubocop/ast/prism_parser.rb', line 10
def initialize(, level, reason, location) @message = super(level, reason, {}, location, []) end
Instance Attribute Details
#message (readonly)
[ GitHub ]# File 'lib/rubocop/ast/prism_parser.rb', line 8
attr_reader :