AdLint::CodeStructure
Macro definition information.
Constructs the macro definition information.
Location – Location where the definition appears.
Location
String – Macro name.
String
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
Converts this code structure information into array representation.
Array< Object > – Array representation.
Object
# File lib/adlint/code.rb, line 242 def to_a ["DEF", *@loc.to_a, "M", @macro_name, @macro_type] end