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



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

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



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def binding_kind
  @binding_kind
end

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def column
  @column
end

#fix_indexObject

Returns the value of attribute fix_index

Returns:

  • (Object)

    the current value of fix_index



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def fix_index
  @fix_index
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def line
  @line
end

#mutatedObject

Returns the value of attribute mutated

Returns:

  • (Object)

    the current value of mutated



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def mutated
  @mutated
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def name
  @name
end

#replacement_base_nameObject

Returns the value of attribute replacement_base_name

Returns:

  • (Object)

    the current value of replacement_base_name



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

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



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def replacement_name
  @replacement_name
end

#usedObject

Returns the value of attribute used

Returns:

  • (Object)

    the current value of used



127
128
129
# File 'lib/milk_tea/tooling/linter.rb', line 127

def used
  @used
end