Class: Jade::Frontend::SemanticAnalysis::Error::PlaceholderNotAllowed
- Inherits:
-
Error
- Object
- Error
- Jade::Frontend::SemanticAnalysis::Error::PlaceholderNotAllowed
- Defined in:
- lib/jade/frontend/semantic_analysis/error/placeholder_not_allowed.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry, span, field:) ⇒ PlaceholderNotAllowed
constructor
A new instance of PlaceholderNotAllowed.
- #label ⇒ Object
- #message ⇒ Object
Methods inherited from Error
#candidates, #notes, #queried_name, #to_diagnostic
Constructor Details
#initialize(entry, span, field:) ⇒ PlaceholderNotAllowed
Returns a new instance of PlaceholderNotAllowed.
6 7 8 9 |
# File 'lib/jade/frontend/semantic_analysis/error/placeholder_not_allowed.rb', line 6 def initialize(entry, span, field:) @field = field super(entry:, span:) end |
Instance Method Details
#label ⇒ Object
15 16 17 |
# File 'lib/jade/frontend/semantic_analysis/error/placeholder_not_allowed.rb', line 15 def label "not allowed here" end |
#message ⇒ Object
11 12 13 |
# File 'lib/jade/frontend/semantic_analysis/error/placeholder_not_allowed.rb', line 11 def "`#{@field}: _` is only allowed when constructing a struct" end |