1 9 10 package org.jruby.compiler; 11 12 import org.jruby.ast.AttrAssignNode; 13 import org.jruby.ast.MultipleAsgnNode; 14 import org.jruby.ast.Node; 15 import org.jruby.ast.NodeTypes; 16 17 21 public class MultipleAsgnNodeCompiler implements NodeCompiler{ 22 23 24 public MultipleAsgnNodeCompiler() { 25 } 26 27 public void compile(Node node, Compiler context) { 28 context.lineNumber(node.getPosition()); 29 30 MultipleAsgnNode multipleAsgnNode = (MultipleAsgnNode)node; 31 32 NodeCompilerFactory.getCompiler(multipleAsgnNode.getValueNode()).compile(multipleAsgnNode.getValueNode(), context); 33 34 NodeCompilerFactory.getAssignmentCompiler(multipleAsgnNode).compile(multipleAsgnNode, context); 35 } 36 } 37 | Popular Tags |