Class: MilkTea::Linter::Binding

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#allow_prefer_letObject

Returns the value of attribute allow_prefer_let

Returns:

  • (Object)

    the current value of allow_prefer_let



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def allow_prefer_let
  @allow_prefer_let
end

#binding_kindObject

Returns the value of attribute binding_kind

Returns:

  • (Object)

    the current value of binding_kind



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def binding_kind
  @binding_kind
end

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def column
  @column
end

#fix_indexObject

Returns the value of attribute fix_index

Returns:

  • (Object)

    the current value of fix_index



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def fix_index
  @fix_index
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def line
  @line
end

#mutatedObject

Returns the value of attribute mutated

Returns:

  • (Object)

    the current value of mutated



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def mutated
  @mutated
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def name
  @name
end

#replacement_base_nameObject

Returns the value of attribute replacement_base_name

Returns:

  • (Object)

    the current value of replacement_base_name



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def replacement_base_name
  @replacement_base_name
end

#replacement_nameObject

Returns the value of attribute replacement_name

Returns:

  • (Object)

    the current value of replacement_name



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def replacement_name
  @replacement_name
end

#usedObject

Returns the value of attribute used

Returns:

  • (Object)

    the current value of used



130
131
132
# File 'lib/milk_tea/tooling/linter.rb', line 130

def used
  @used
end