Class: Rubydex::UnresolvedConstantReference
- Inherits:
-
ConstantReference
- Object
- Reference
- ConstantReference
- Rubydex::UnresolvedConstantReference
- Defined in:
- ext/rubydex/reference.c
Instance Method Summary collapse
Methods inherited from ConstantReference
#document, #initialize, #location
Methods inherited from Reference
Constructor Details
This class inherits a constructor from Rubydex::ConstantReference
Instance Method Details
#name ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'ext/rubydex/reference.c', line 28
static VALUE rdxr_constant_reference_name(VALUE self) {
HandleData *data;
void *graph = rdxi_graph_from_handle(self, &data);
const char *name = rdx_constant_reference_name(graph, data->id);
if (name == NULL) {
rb_raise(rb_eRuntimeError, "Constant reference must exist for a valid id");
}
return rdxi_owned_c_string_to_ruby(name);
}
|