1 9 10 package org.jruby.compiler; 11 12 import org.jruby.ast.DAsgnNode; 13 import org.jruby.ast.Node; 14 15 19 public class DAsgnNodeCompiler implements NodeCompiler { 20 21 22 public DAsgnNodeCompiler() { 23 } 24 25 public void compile(Node node, Compiler context) { 26 context.lineNumber(node.getPosition()); 27 28 DAsgnNode dasgnNode = (DAsgnNode)node; 29 30 NodeCompilerFactory.getCompiler(dasgnNode.getValueNode()).compile(dasgnNode.getValueNode(), context); 31 32 context.assignLocalVariable(dasgnNode.getIndex(), dasgnNode.getDepth()); 33 } 34 35 } 36 | Popular Tags |