Class: Steep::Diagnostic::Ruby::AnnotationSyntaxError
- Defined in:
- lib/steep/diagnostic/ruby.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(message:, location:) ⇒ AnnotationSyntaxError
constructor
A new instance of AnnotationSyntaxError.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(message:, location:) ⇒ AnnotationSyntaxError
Returns a new instance of AnnotationSyntaxError.
827 828 829 830 |
# File 'lib/steep/diagnostic/ruby.rb', line 827 def initialize(message: ,location:) super(node: nil, location: location) @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
825 826 827 |
# File 'lib/steep/diagnostic/ruby.rb', line 825 def @message end |
Instance Method Details
#header_line ⇒ Object
832 833 834 |
# File 'lib/steep/diagnostic/ruby.rb', line 832 def header_line "Type annotation has a syntax error: #{}" end |