Class: Jade::Frontend::SemanticAnalysis::Error::VariableNotFound
- Defined in:
- lib/jade/frontend/semantic_analysis/error/variable_not_found.rb
Instance Attribute Summary collapse
-
#candidates ⇒ Object
readonly
Returns the value of attribute candidates.
-
#causes ⇒ Object
readonly
Returns the value of attribute causes.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry, span, name:, causes: [], candidates: []) ⇒ VariableNotFound
constructor
A new instance of VariableNotFound.
- #label ⇒ Object
- #message ⇒ Object
-
#queried_name ⇒ Object
Qualified, like
candidates: barefold_leftagainstfoldis too short to clear the spell checker's threshold.
Methods inherited from Error
Constructor Details
#initialize(entry, span, name:, causes: [], candidates: []) ⇒ VariableNotFound
Returns a new instance of VariableNotFound.
8 9 10 11 12 13 |
# File 'lib/jade/frontend/semantic_analysis/error/variable_not_found.rb', line 8 def initialize(entry, span, name:, causes: [], candidates: []) @name = name @causes = causes @candidates = candidates super(entry:, span:) end |
Instance Attribute Details
#candidates ⇒ Object (readonly)
Returns the value of attribute candidates.
6 7 8 |
# File 'lib/jade/frontend/semantic_analysis/error/variable_not_found.rb', line 6 def candidates @candidates end |
#causes ⇒ Object (readonly)
Returns the value of attribute causes.
6 7 8 |
# File 'lib/jade/frontend/semantic_analysis/error/variable_not_found.rb', line 6 def causes @causes end |
Instance Method Details
#label ⇒ Object
19 20 21 |
# File 'lib/jade/frontend/semantic_analysis/error/variable_not_found.rb', line 19 def label "not found" end |
#message ⇒ Object
15 16 17 |
# File 'lib/jade/frontend/semantic_analysis/error/variable_not_found.rb', line 15 def "I cannot find a `#{@name}` variable" end |
#queried_name ⇒ Object
Qualified, like candidates: bare fold_left against fold is
too short to clear the spell checker's threshold.
25 26 27 |
# File 'lib/jade/frontend/semantic_analysis/error/variable_not_found.rb', line 25 def queried_name @name end |