AdLint::CodeStructure
Label definition information.
Constructs the label definition information.
Location – Location where the definition appears.
Location
String – Label name.
String
# File lib/adlint/code.rb, line 256 def initialize(loc, label_name) @loc = loc @label_name = label_name end
Converts this code structure information into array representation.
Array< Object > – Array representation.
Object
# File lib/adlint/code.rb, line 267 def to_a ["DEF", *@loc.to_a, "L", @label_name] end