Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.operands;
 
 
 public class Symbol extends Reference {
     public Symbol(String name) {
        super(name);
    }
    @Override
    public boolean canCopyPropagate() {
        return true;
    }
    @Override
    public Object retrieve(ThreadContext contextIRubyObject selfDynamicScope currDynScopeObject[] temp) {
        return context.runtime.newSymbol(getName());
    }
    @Override
    public String toString() {
        return ":'" + getName() + "'";
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.Symbol(this);
    }
New to GrepCode? Check out our FAQ X