Class: Rubydex::ConstantReference

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

Instance Method Summary collapse

Constructor Details

#initializeObject

Instance Method Details

#locationObject

ConstantReference#location -> Rubydex::Location



33
34
35
36
37
38
39
40
41
42
43
44
# File 'ext/rubydex/reference.c', line 33

static VALUE rdxr_constant_reference_location(VALUE self) {
    HandleData *data;
    TypedData_Get_Struct(self, HandleData, &handle_type, data);

    void *graph;
    TypedData_Get_Struct(data->graph_obj, void *, &graph_type, graph);

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