class AdLint::MacroDef

DESCRIPTION

Macro definition information.

Public Class Methods

new(loc, macro_name, macro_type) click to toggle source

DESCRIPTION

Constructs the macro definition information.

PARAMETER

loc

LocationLocation where the definition appears.

macro_name

String – Macro name.

macro_type

String – Macro type string.

# File lib/adlint/code.rb, line 230
def initialize(loc, macro_name, macro_type)
  @loc        = loc
  @macro_name = macro_name
  @macro_type = macro_type
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 242
def to_a
  ["DEF", *@loc.to_a, "M", @macro_name, @macro_type]
end