Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/opal/parser.rb
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ def next_token

def s(*parts)
sexp = Sexp.new(parts)
sexp.line = @line
sexp.line = @lexer.line
sexp
end

@@ -89,7 +89,7 @@ def new_def(line, recv, name, args, body)
args.line = line
s = s(:def, recv, name.to_sym, args, scope)
s.line = line
s.end_line = @line
s.end_line = @lexer.line
s
end

@@ -120,14 +120,14 @@ def new_module(path, body)
def new_iter(args, body)
s = s(:iter, args)
s << body if body
s.end_line = @line
s.end_line = @lexer.line
s
end

def new_if(expr, stmt, tail)
s = s(:if, expr, stmt, tail)
s.line = expr.line
s.end_line = @line
s.end_line = @lexer.line
s
end

0 comments on commit baceb57

Please sign in to comment.