Class: MilkTea::AST::TypeAliasDecl

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:, target:, visibility:, line: nil, column: nil) ⇒ TypeAliasDecl

Returns a new instance of TypeAliasDecl.



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

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



69
70
71
# File 'lib/milk_tea/core/ast.rb', line 69

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



69
70
71
# File 'lib/milk_tea/core/ast.rb', line 69

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



69
70
71
# File 'lib/milk_tea/core/ast.rb', line 69

def name
  @name
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



69
70
71
# File 'lib/milk_tea/core/ast.rb', line 69

def target
  @target
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



69
70
71
# File 'lib/milk_tea/core/ast.rb', line 69

def visibility
  @visibility
end