Class: Opal::Rewriters::Base::DummyLocation

Inherits:
Object
  • Object
show all
Defined in:
opal/lib/opal/rewriters/base.rb

Instance Method Summary collapse

Instance Method Details

#begin_posObject


18
19
20
# File 'opal/lib/opal/rewriters/base.rb', line 18

def begin_pos
  0
end

#columnObject


34
35
36
# File 'opal/lib/opal/rewriters/base.rb', line 34

def column
  0
end

#end_posObject


22
23
24
# File 'opal/lib/opal/rewriters/base.rb', line 22

def end_pos
  0
end

#expressionObject


14
15
16
# File 'opal/lib/opal/rewriters/base.rb', line 14

def expression
  self
end

#last_lineObject


38
39
40
# File 'opal/lib/opal/rewriters/base.rb', line 38

def last_line
  Float::INFINITY
end

#lineObject


30
31
32
# File 'opal/lib/opal/rewriters/base.rb', line 30

def line
  0
end

#node=Object


10
11
12
# File 'opal/lib/opal/rewriters/base.rb', line 10

def node=(*)
  # stub
end

#sourceObject


26
27
28
# File 'opal/lib/opal/rewriters/base.rb', line 26

def source
  ''
end