Class: MilkTea::AST::EventDecl

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, capacity:, payload_type: nil, visibility:, attributes: [], line: nil, column: nil) ⇒ EventDecl

Returns a new instance of EventDecl.



67
# File 'lib/milk_tea/core/ast.rb', line 67

def initialize(name:, capacity:, payload_type: nil, visibility:, attributes: [], line: nil, column: nil) = super

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def attributes
  @attributes
end

#capacityObject (readonly)

Returns the value of attribute capacity

Returns:

  • (Object)

    the current value of capacity



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def capacity
  @capacity
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def name
  @name
end

#payload_typeObject (readonly)

Returns the value of attribute payload_type

Returns:

  • (Object)

    the current value of payload_type



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def payload_type
  @payload_type
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



66
67
68
# File 'lib/milk_tea/core/ast.rb', line 66

def visibility
  @visibility
end