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.



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

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



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def params
  @params
end

#targetsObject (readonly)

Returns the value of attribute targets

Returns:

  • (Object)

    the current value of targets



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def targets
  @targets
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def visibility
  @visibility
end