summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-04 08:34:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-04 08:34:16 +0000
commit6401125732f14f12323c83070c59d01ab6befe87 (patch)
tree8c44b78287e5b43d1f63ac3ee2cd25ddfaed79d1
parentec20d103e169ca9a1e613f6e7c2a200e593bf157 (diff)
downloadruby-6401125732f14f12323c83070c59d01ab6befe87.tar.gz
ruby-6401125732f14f12323c83070c59d01ab6befe87.tar.xz
ruby-6401125732f14f12323c83070c59d01ab6befe87.zip
* insns.def (defined): adjust indent.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--insns.def64
1 files changed, 32 insertions, 32 deletions
diff --git a/insns.def b/insns.def
index 5ad4af749..39c6c6cbd 100644
--- a/insns.def
+++ b/insns.def
@@ -787,19 +787,19 @@ defined
}
break;
case DEFINED_METHOD:{
- VALUE klass = CLASS_OF(v);
- const rb_method_entry_t *me = rb_method_entry(klass, SYM2ID(obj));
-
- if (me) {
- if (!(me->flag & NOEX_PRIVATE)) {
- if (!((me->flag & NOEX_PROTECTED) &&
- !rb_obj_is_kind_of(GET_SELF(),
- rb_class_real(klass)))) {
- expr_type = "method";
- }
- }
- }
- break;
+ VALUE klass = CLASS_OF(v);
+ const rb_method_entry_t *me = rb_method_entry(klass, SYM2ID(obj));
+
+ if (me) {
+ if (!(me->flag & NOEX_PRIVATE)) {
+ if (!((me->flag & NOEX_PROTECTED) &&
+ !rb_obj_is_kind_of(GET_SELF(),
+ rb_class_real(klass)))) {
+ expr_type = "method";
+ }
+ }
+ }
+ break;
}
case DEFINED_YIELD:
if (GET_BLOCK_PTR()) {
@@ -807,27 +807,27 @@ defined
}
break;
case DEFINED_ZSUPER:{
- rb_iseq_t *ip = GET_ISEQ();
- while (ip) {
- if (ip->defined_method_id) {
- break;
- }
- ip = ip->parent_iseq;
- }
- if (ip) {
- VALUE klass = vm_search_normal_superclass(ip->klass, GET_SELF());
- if (rb_method_boundp(klass, ip->defined_method_id, 0)) {
- expr_type = "super";
- }
- }
- break;
+ rb_iseq_t *ip = GET_ISEQ();
+ while (ip) {
+ if (ip->defined_method_id) {
+ break;
+ }
+ ip = ip->parent_iseq;
+ }
+ if (ip) {
+ VALUE klass = vm_search_normal_superclass(ip->klass, GET_SELF());
+ if (rb_method_boundp(klass, ip->defined_method_id, 0)) {
+ expr_type = "super";
+ }
+ }
+ break;
}
case DEFINED_REF:{
- val = vm_getspecial(th, GET_LFP(), Qfalse, FIX2INT(obj));
- if (val != Qnil) {
- expr_type = "global-variable";
- }
- break;
+ val = vm_getspecial(th, GET_LFP(), Qfalse, FIX2INT(obj));
+ if (val != Qnil) {
+ expr_type = "global-variable";
+ }
+ break;
}
default:
rb_bug("unimplemented defined? type (VM)");