1 28 package org.jruby.compiler; 29 30 import org.jruby.ast.Node; 31 import org.jruby.ast.SymbolNode; 32 33 36 public class SymbolNodeCompiler implements NodeCompiler { 37 public SymbolNodeCompiler() {} 38 39 public void compile(Node node, Compiler context) { 40 context.lineNumber(node.getPosition()); 41 context.createNewSymbol(((SymbolNode)node).getName()); 42 } 43 } | Popular Tags |