Class: Jade::Frontend::SemanticAnalysis::Error::UndefinedVariable
- Defined in:
- lib/jade/frontend/semantic_analysis/error/undefined_variable.rb
Instance Attribute Summary collapse
-
#candidates ⇒ Object
readonly
Returns the value of attribute candidates.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry, span, var_ref:, candidates: []) ⇒ UndefinedVariable
constructor
A new instance of UndefinedVariable.
- #label ⇒ Object
- #message ⇒ Object
- #queried_name ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(entry, span, var_ref:, candidates: []) ⇒ UndefinedVariable
Returns a new instance of UndefinedVariable.
8 9 10 11 12 |
# File 'lib/jade/frontend/semantic_analysis/error/undefined_variable.rb', line 8 def initialize(entry, span, var_ref:, candidates: []) super(entry:, span:) @var_ref = var_ref @candidates = candidates end |
Instance Attribute Details
#candidates ⇒ Object (readonly)
Returns the value of attribute candidates.
6 7 8 |
# File 'lib/jade/frontend/semantic_analysis/error/undefined_variable.rb', line 6 def candidates @candidates end |
Instance Method Details
#label ⇒ Object
18 19 20 |
# File 'lib/jade/frontend/semantic_analysis/error/undefined_variable.rb', line 18 def label "undefined" end |
#message ⇒ Object
14 15 16 |
# File 'lib/jade/frontend/semantic_analysis/error/undefined_variable.rb', line 14 def "Undefined variable #{@var_ref}" end |
#queried_name ⇒ Object
22 23 24 |
# File 'lib/jade/frontend/semantic_analysis/error/undefined_variable.rb', line 22 def queried_name @var_ref end |