Class: MilkTea::Linter::Binding
- Inherits:
-
Struct
- Object
- Struct
- MilkTea::Linter::Binding
- Defined in:
- lib/milk_tea/tooling/linter.rb
Overview
binding_kind: :local | :param
allow_prefer_let: true only for var locals — flag prefer-let if never mutated
mutated: true if ever the target of a plain = or compound assignment
Instance Attribute Summary collapse
-
#allow_prefer_let ⇒ Object
Returns the value of attribute allow_prefer_let.
-
#binding_kind ⇒ Object
Returns the value of attribute binding_kind.
-
#column ⇒ Object
Returns the value of attribute column.
-
#fix_index ⇒ Object
Returns the value of attribute fix_index.
-
#line ⇒ Object
Returns the value of attribute line.
-
#mutated ⇒ Object
Returns the value of attribute mutated.
-
#name ⇒ Object
Returns the value of attribute name.
-
#replacement_base_name ⇒ Object
Returns the value of attribute replacement_base_name.
-
#replacement_name ⇒ Object
Returns the value of attribute replacement_name.
-
#used ⇒ Object
Returns the value of attribute used.
Instance Attribute Details
#allow_prefer_let ⇒ Object
Returns the value of attribute allow_prefer_let
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def allow_prefer_let @allow_prefer_let end |
#binding_kind ⇒ Object
Returns the value of attribute binding_kind
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def binding_kind @binding_kind end |
#column ⇒ Object
Returns the value of attribute column
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def column @column end |
#fix_index ⇒ Object
Returns the value of attribute fix_index
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def fix_index @fix_index end |
#line ⇒ Object
Returns the value of attribute line
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def line @line end |
#mutated ⇒ Object
Returns the value of attribute mutated
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def mutated @mutated end |
#name ⇒ Object
Returns the value of attribute name
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def name @name end |
#replacement_base_name ⇒ Object
Returns the value of attribute replacement_base_name
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def replacement_base_name @replacement_base_name end |
#replacement_name ⇒ Object
Returns the value of attribute replacement_name
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def replacement_name @replacement_name end |
#used ⇒ Object
Returns the value of attribute used
127 128 129 |
# File 'lib/milk_tea/tooling/linter.rb', line 127 def used @used end |