Class: Laser::SexpErrorWarning
- Inherits:
-
FileWarning
- Object
- Struct
- Warning
- FileWarning
- Laser::SexpErrorWarning
- Defined in:
- lib/laser/warnings/sexp_errors.rb
Instance Attribute Summary
Attributes inherited from Warning
Instance Method Summary (collapse)
- - (Object) ==(other)
- - (Object) line_number
- - (Boolean) match?(body = self.body)
- - (Object) severity
Methods inherited from FileWarning
Instance Method Details
- (Object) ==(other)
15 16 17 |
# File 'lib/laser/warnings/sexp_errors.rb', line 15 def ==(other) super && self.error == other.error end |
- (Object) line_number
7 8 9 |
# File 'lib/laser/warnings/sexp_errors.rb', line 7 def line_number error.ast_node.line_number end |
- (Boolean) match?(body = self.body)
19 20 21 22 23 |
# File 'lib/laser/warnings/sexp_errors.rb', line 19 def match?(body = self.body) parse.all_errors.map do |error| Laser::SexpErrorWarning.new(error.ast_node.file_name, body, error: error) end end |
- (Object) severity
11 12 13 |
# File 'lib/laser/warnings/sexp_errors.rb', line 11 def severity error.severity end |