lib/compiler/ast/assign.fy in fancy-0.3.0 vs lib/compiler/ast/assign.fy in fancy-0.3.1

- old
+ new

@@ -52,11 +52,11 @@ max_idx = @idents size - 1 @idents each_with_index: |ident idx| { var = ident value = MultipleAssignmentExpr new: @line index: idx - match ident string -> { + match ident string { case /^\*/ -> value = SplatAssignmentExpr new: @line start_index: idx var = Identifier from: (ident string rest) line: (ident line) } Assignment new: @line var: var value: value . bytecode: g @@ -66,31 +66,31 @@ } class Identifier { def bytecode: g assign: value { pos(g) - Rubinius AST LocalVariableAssignment new(@line, self name, value) bytecode(g) + Rubinius AST LocalVariableAssignment new(@line, name, value) bytecode(g) } } class InstanceVariable { def bytecode: g assign: value { pos(g) - Rubinius AST InstanceVariableAssignment new(@line, self name, value) bytecode(g) + Rubinius AST InstanceVariableAssignment new(@line, name, value) bytecode(g) } } class ClassVariable { def bytecode: g assign: value { pos(g) - Rubinius AST ClassVariableAssignment new(@line, self name, value) bytecode(g) + Rubinius AST ClassVariableAssignment new(@line, name, value) bytecode(g) } } class Constant { def bytecode: g assign: value { pos(g) - Rubinius AST ConstantAssignment new(@line, self name, value) bytecode(g) + Rubinius AST ConstantAssignment new(@line, name, value) bytecode(g) } } }