class AdLint::XRefFun

Public Class Methods

new(loc, referrer, ref_type, fun) click to toggle source

DESCRIPTION

Constructs the cross reference information.

PARAMETER

loc

LocationLocation where the cross-ref appears.

referrer

FunctionId – Accessing function identifier.

ref_type

String – Referencing type string.

fun

FunctionId – Accessed function identifier.

# File lib/adlint/code.rb, line 416
def initialize(loc, referrer, ref_type, fun)
  @loc      = loc
  @referrer = referrer
  @ref_type = ref_type
  @fun      = fun
end

Private Instance Methods

to_a() click to toggle source

DESCRIPTION

Converts this code structure information into array representation.

RETURN VALUE

Array< Object > – Array representation.

# File lib/adlint/code.rb, line 429
def to_a
  ["DEP", *@loc.to_a, "X", "F", *@referrer.to_a, @ref_type, *@fun.to_a]
end