Class: Jade::Symbol::Struct

Inherits:
Data
  • Object
show all
Includes:
Base
Defined in:
lib/jade/symbol/struct.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#qualified_name

Instance Attribute Details

#decl_spanObject (readonly)

Returns the value of attribute decl_span

Returns:

  • (Object)

    the current value of decl_span



3
4
5
# File 'lib/jade/symbol/struct.rb', line 3

def decl_span
  @decl_span
end

#module_nameObject (readonly)

Returns the value of attribute module_name

Returns:

  • (Object)

    the current value of module_name



3
4
5
# File 'lib/jade/symbol/struct.rb', line 3

def module_name
  @module_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/jade/symbol/struct.rb', line 3

def name
  @name
end

#record_typeObject (readonly)

Returns the value of attribute record_type

Returns:

  • (Object)

    the current value of record_type



3
4
5
# File 'lib/jade/symbol/struct.rb', line 3

def record_type
  @record_type
end

#type_paramsObject (readonly)

Returns the value of attribute type_params

Returns:

  • (Object)

    the current value of type_params



3
4
5
# File 'lib/jade/symbol/struct.rb', line 3

def type_params
  @type_params
end

Instance Method Details

#constructor_refsObject



10
11
12
# File 'lib/jade/symbol/struct.rb', line 10

def constructor_refs
  [ValueRef[module_name, name]]
end

#to_refObject



6
7
8
# File 'lib/jade/symbol/struct.rb', line 6

def to_ref
  TypeRef[module_name, name]
end