Class: Jade::Frontend::SemanticAnalysis::Error::InvalidListRestPattern
- Inherits:
-
Error
- Object
- Error
- Jade::Frontend::SemanticAnalysis::Error::InvalidListRestPattern
- Defined in:
- lib/jade/frontend/semantic_analysis/error/invalid_list_rest_pattern.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry, span) ⇒ InvalidListRestPattern
constructor
A new instance of InvalidListRestPattern.
- #label ⇒ Object
- #message ⇒ Object
Methods inherited from Error
#candidates, #notes, #queried_name, #to_diagnostic
Constructor Details
#initialize(entry, span) ⇒ InvalidListRestPattern
Returns a new instance of InvalidListRestPattern.
6 7 8 |
# File 'lib/jade/frontend/semantic_analysis/error/invalid_list_rest_pattern.rb', line 6 def initialize(entry, span) super(entry:, span:) end |
Instance Method Details
#label ⇒ Object
14 15 16 |
# File 'lib/jade/frontend/semantic_analysis/error/invalid_list_rest_pattern.rb', line 14 def label "invalid rest pattern" end |
#message ⇒ Object
10 11 12 |
# File 'lib/jade/frontend/semantic_analysis/error/invalid_list_rest_pattern.rb', line 10 def "List rest pattern must be a name (e.g. `xs`) or wildcard (`_`)" end |