1 28 package org.jruby.ast.executable; 29 30 import org.jruby.lexer.yacc.ISourcePosition; 31 32 35 public class ISeqPosition implements ISourcePosition { 36 private YARVMachine.InstructionSequence iseq; 37 38 public ISeqPosition(YARVMachine.InstructionSequence iseq) { 39 this.iseq = iseq; 40 } 41 42 public String getFile() { 43 return iseq.filename; 44 } 45 46 public int getStartLine() { 47 return -1; 48 } 49 50 public int getEndLine() { 51 return getStartLine(); 52 } 53 54 public void adjustStartOffset(int relativeValue) { 55 } 56 57 public int getStartOffset() { 58 return -1; 59 } 60 61 public int getEndOffset() { 62 return -1; 63 } 64 65 public ISourcePosition union(ISourcePosition position) { 66 return this; 67 } 68 } | Popular Tags |