Class: Katana::SourcePosition

Inherits:
Object
  • Object
show all
Defined in:
ext/katana/rb_katana.c

Instance Method Summary collapse

Instance Method Details

#columnInteger

Returns:

  • (Integer)


85
86
87
88
89
90
# File 'ext/katana/rb_katana.c', line 85

VALUE rb_position_column(VALUE self)
{
  KatanaSourcePosition *c_pos;
  Data_Get_Struct(self, KatanaSourcePosition, c_pos);
  return INT2NUM(c_pos->column);
}

#lineInteger

Returns:

  • (Integer)


75
76
77
78
79
80
# File 'ext/katana/rb_katana.c', line 75

VALUE rb_position_line(VALUE self)
{
  KatanaSourcePosition *c_pos;
  Data_Get_Struct(self, KatanaSourcePosition, c_pos);
  return INT2NUM(c_pos->line);
}