Skip to content

Commit 6b02c5e

Browse files
committedNov 17, 2013
Rename :dot2 and :dot3 sexps to s(:irange), s(:erange)
1 parent c7f76cb commit 6b02c5e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎lib/opal/nodes/literal.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def compile
163163
end
164164
end
165165

166-
class ExclusiveRangeNode < Base
167-
handle :dot2
166+
class InclusiveRangeNode < Base
167+
handle :irange
168168

169169
children :start, :finish
170170

@@ -175,8 +175,8 @@ def compile
175175
end
176176
end
177177

178-
class InclusiveRangeNode < Base
179-
handle :dot3
178+
class ExclusiveRangeNode < Base
179+
handle :erange
180180

181181
children :start, :finish
182182

‎lib/opal/parser/grammar.rb

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/opal/parser/grammar.y

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,12 +469,12 @@ rule
469469
| backref tOP_ASGN arg
470470
| arg tDOT2 arg
471471
{
472-
result = s(:dot2, val[0], val[2])
472+
result = s(:irange, val[0], val[2])
473473
result.line = val[0].line
474474
}
475475
| arg tDOT3 arg
476476
{
477-
result = s(:dot3, val[0], val[2])
477+
result = s(:erange, val[0], val[2])
478478
result.line = val[0].line
479479
}
480480
| arg '+' arg

0 commit comments

Comments
 (0)
Please sign in to comment.