class AdLint::LabelDef

DESCRIPTION

Label definition information.

Public Class Methods

new(loc, label_name) click to toggle source

DESCRIPTION

Constructs the label definition information.

PARAMETER

loc

LocationLocation where the definition appears.

label_name

String – Label name.

# File lib/adlint/code.rb, line 256
def initialize(loc, label_name)
  @loc        = loc
  @label_name = label_name
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 267
def to_a
  ["DEF", *@loc.to_a, "L", @label_name]
end