Class: Rubydex::ConstantReference
- Defined in:
- ext/rubydex/reference.c
Direct Known Subclasses
Instance Method Summary collapse
- #initialize ⇒ Object constructor
-
#location ⇒ Object
ConstantReference#location -> Rubydex::Location.
Constructor Details
#initialize ⇒ Object
Instance Method Details
#location ⇒ Object
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;
}
|