Class: MilkTea::AST::AttributeDecl

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:, targets:, params:, visibility:, line: nil, column: nil) ⇒ AttributeDecl

Returns a new instance of AttributeDecl.



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

def initialize(name:, targets:, params:, visibility:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



72
73
74
# File 'lib/milk_tea/core/ast.rb', line 72

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



72
73
74
# File 'lib/milk_tea/core/ast.rb', line 72

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



72
73
74
# File 'lib/milk_tea/core/ast.rb', line 72

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



72
73
74
# File 'lib/milk_tea/core/ast.rb', line 72

def params
  @params
end

#targetsObject (readonly)

Returns the value of attribute targets

Returns:

  • (Object)

    the current value of targets



72
73
74
# File 'lib/milk_tea/core/ast.rb', line 72

def targets
  @targets
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



72
73
74
# File 'lib/milk_tea/core/ast.rb', line 72

def visibility
  @visibility
end