Class: AdLint::Assignment

Inherits:
CodeStructure show all
Defined in:
lib/adlint/code.rb

Overview

DESCRIPTION

Assignment information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, var_name, assign_rep) ⇒ Assignment

DESCRIPTION

Constructs the assignment information.

PARAMETER

loc

Location – Location where the variable appears.

var_name

String – Assigned variable name.

assign_rep

String – Assignment expression representation.



309
310
311
312
313
# File 'lib/adlint/code.rb', line 309

def initialize(loc, var_name, assign_rep)
  @loc        = loc
  @var_name   = var_name
  @assign_rep = assign_rep
end