Class: AdLint::XRefVar

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

Overview

DESCRIPTION

Variable cross reference information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, referrer, ref_type, var_name) ⇒ XRefVar

DESCRIPTION

Constructs the cross reference information.

PARAMETER

loc

Location – Location where the cross-ref appears.

referrer

FunctionId – Accessing function identifier.

ref_type

String – Referencing type string.

var_name

String – Accessed variable name.



389
390
391
392
393
394
# File 'lib/adlint/code.rb', line 389

def initialize(loc, referrer, ref_type, var_name)
  @loc      = loc
  @referrer = referrer
  @ref_type = ref_type
  @var_name = var_name
end