Class: Rubydex::ConstantReference

Inherits:
Reference
  • Object
show all
Defined in:
ext/rubydex/reference.c

Instance Method Summary collapse

Constructor Details

#initializeObject

Instance Method Details

#locationRubydex::Location

Returns the source location for this constant reference.

Returns:



40
41
42
43
44
45
46
47
48
# File 'ext/rubydex/reference.c', line 40

static VALUE rdxr_constant_reference_location(VALUE self) {
    HandleData *data;
    void *graph = rdxi_graph_from_handle(self, &data);

    Location *loc = rdx_constant_reference_location(graph, data->id);
    VALUE location = rdxi_build_location_value(loc);
    rdx_location_free(loc);
    return location;
}