class AdLint::Funcall

DESCRIPTION

Function call information.

Public Class Methods

new(loc, caller_fun, callee_fun) click to toggle source

DESCRIPTION

Constructs the function call informatin.

PARAMETER

loc

LocationLocation where the function call appears.

caller_fun

FunctionId – Calling function identifier.

callee_fun

FunctionId – Called function identifier.

# File lib/adlint/code.rb, line 361
def initialize(loc, caller_fun, callee_fun)
  @loc        = loc
  @caller_fun = caller_fun
  @callee_fun = callee_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 373
def to_a
  ["DEP", *@loc.to_a, "C", *@caller_fun.to_a, *@callee_fun.to_a]
end