Class: Rubycc::Front::Parser::Attribute

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/parser.rb

Overview

One parsed GNU attribute: its normalized name, the folded argument (an integer for "aligned" and for the init attributes' priority, nil for every other attribute, whose arguments are skipped) and the token that spelled it, so a diagnostic about the attribute can be located.

Instance Attribute Summary collapse

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument

Returns:

  • (Object)

    the current value of argument



337
338
339
# File 'lib/rubycc/front/parser.rb', line 337

def argument
  @argument
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



337
338
339
# File 'lib/rubycc/front/parser.rb', line 337

def name
  @name
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



337
338
339
# File 'lib/rubycc/front/parser.rb', line 337

def token
  @token
end