Skip to content

Commit

Permalink
More removal of positioning code
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@9497 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
enebo committed Mar 29, 2009
1 parent e82b2fa commit 7fa3bf4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 46 deletions.
36 changes: 0 additions & 36 deletions src/org/jruby/lexer/yacc/ISourcePositionFactory.java

This file was deleted.

6 changes: 1 addition & 5 deletions src/org/jruby/lexer/yacc/LexerSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
public abstract class LexerSource {
// Where we get new positions from.
private ISourcePositionFactory positionFactory;
private SimplePositionFactory positionFactory;

// The name of this source (e.g. a filename: foo.rb)
private final String sourceName;
Expand Down Expand Up @@ -124,10 +124,6 @@ public ISourcePosition getPosition(ISourcePosition startPosition, boolean inclus
public ISourcePosition getPosition() {
return positionFactory.getPosition(null, false);
}

public ISourcePositionFactory getPositionFactory() {
return positionFactory;
}

/**
* Create a source.
Expand Down
4 changes: 0 additions & 4 deletions src/org/jruby/lexer/yacc/RubyYaccLexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,6 @@ public StringBuilder getTokenBuffer() {
public Object value() {
return yaccValue;
}

public ISourcePositionFactory getPositionFactory() {
return src.getPositionFactory();
}

/**
* Get position information for Token/Node that follows node represented by startPosition
Expand Down
2 changes: 1 addition & 1 deletion src/org/jruby/lexer/yacc/SimplePositionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
***** END LICENSE BLOCK *****/
package org.jruby.lexer.yacc;

public class SimplePositionFactory implements ISourcePositionFactory {
public class SimplePositionFactory {
private LexerSource source;
private ISourcePosition lastPosition;

Expand Down

0 comments on commit 7fa3bf4

Please sign in to comment.