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