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