Uses of Class
org.jrubyparser.SourcePosition

Packages that use SourcePosition
org.jrubyparser   
org.jrubyparser.ast   
org.jrubyparser.lexer   
org.jrubyparser.parser   
org.jrubyparser.rewriter.utils   
 

Uses of SourcePosition in org.jrubyparser
 

Methods in org.jrubyparser that return SourcePosition
static SourcePosition SourcePosition.combinePosition(SourcePosition firstPos, SourcePosition secondPos)
          Not used in interpreter Creates a new position the encloses both parameter positions.
 SourcePosition SourcePosition.fromBeginning(int length)
           
 SourcePosition SourcePosition.fromEnd(int length)
           
 SourcePosition ISourcePositionHolder.getPosition()
           
 SourcePosition SourcePosition.makeEmptyPositionAfterThis()
          Make a new SourcePosition instance which will be the index starting at the end of this one of 0 length.
 SourcePosition SourcePosition.makeEmptyPositionBeforeThis()
           
 SourcePosition SourcePosition.union(SourcePosition other)
           
 

Methods in org.jrubyparser with parameters of type SourcePosition
 AssignableNode BlockStaticScope.addAssign(SourcePosition position, String name, Node value)
           
 AssignableNode StaticScope.assign(SourcePosition position, String name, Node value)
          Make a DASgn or LocalAsgn node based on scope logic
protected abstract  AssignableNode StaticScope.assign(SourcePosition position, String name, Node value, StaticScope topScope, int depth)
           
 AssignableNode LocalStaticScope.assign(SourcePosition position, String name, Node value, StaticScope topScope, int depth)
           
protected  AssignableNode BlockStaticScope.assign(SourcePosition position, String name, Node value, StaticScope topScope, int depth)
           
static SourcePosition SourcePosition.combinePosition(SourcePosition firstPos, SourcePosition secondPos)
          Not used in interpreter Creates a new position the encloses both parameter positions.
 Node StaticScope.declare(SourcePosition position, String name)
          Make a DVar or LocalVar node based on scoping logic
protected abstract  Node StaticScope.declare(SourcePosition position, String name, int depth)
           
 Node LocalStaticScope.declare(SourcePosition position, String name, int depth)
           
 Node BlockStaticScope.declare(SourcePosition position, String name, int depth)
           
 void ISourcePositionHolder.setPosition(SourcePosition position)
           
 SourcePosition SourcePosition.union(SourcePosition other)
           
 void Parser.NullWarnings.warn(IRubyWarnings.ID id, SourcePosition position, String message, Object... data)
           
 void IRubyWarnings.warn(IRubyWarnings.ID id, SourcePosition position, String message, Object... data)
           
 void Parser.NullWarnings.warning(IRubyWarnings.ID id, SourcePosition position, String message, Object... data)
           
 void IRubyWarnings.warning(IRubyWarnings.ID id, SourcePosition position, String message, Object... data)
           
 

Uses of SourcePosition in org.jrubyparser.ast
 

Methods in org.jrubyparser.ast that return SourcePosition
 SourcePosition MultipleAsgnNode.getLeftHandSidePosition()
           
 SourcePosition AssignableNode.getLeftHandSidePosition()
           
 SourcePosition UnaryCallNode.getLexicalNamePosition()
           
 SourcePosition OptArgNode.getLexicalNamePosition()
           
 SourcePosition NthRefNode.getLexicalNamePosition()
           
 SourcePosition NamedNode.getLexicalNamePosition()
           
 SourcePosition MethodDefNode.getLexicalNamePosition()
           
 SourcePosition LocalAsgnNode.getLexicalNamePosition()
           
 SourcePosition InstVarNode.getLexicalNamePosition()
           
 SourcePosition InstAsgnNode.getLexicalNamePosition()
           
 SourcePosition INameNode.getLexicalNamePosition()
          The position of the name + any sigils that come with it.
 SourcePosition GlobalVarNode.getLexicalNamePosition()
           
 SourcePosition GlobalAsgnNode.getLexicalNamePosition()
           
 SourcePosition FCallNode.getLexicalNamePosition()
           
 SourcePosition DAsgnNode.getLexicalNamePosition()
           
 SourcePosition ConstNode.getLexicalNamePosition()
           
 SourcePosition ConstDeclNode.getLexicalNamePosition()
           
 SourcePosition Colon3Node.getLexicalNamePosition()
           
 SourcePosition ClassVarNode.getLexicalNamePosition()
           
 SourcePosition ClassVarDeclNode.getLexicalNamePosition()
           
 SourcePosition ClassVarAsgnNode.getLexicalNamePosition()
           
 SourcePosition CallNode.getLexicalNamePosition()
           
 SourcePosition BlockArgNode.getLexicalNamePosition()
           
 SourcePosition BareKeywordNode.getLexicalNamePosition()
           
 SourcePosition BackRefNode.getLexicalNamePosition()
           
 SourcePosition AttrAssignNode.getLexicalNamePosition()
           
 SourcePosition ArgumentNode.getLexicalNamePosition()
           
 SourcePosition UnaryCallNode.getNamePosition()
           
 SourcePosition RestArgNode.getNamePosition()
           
 SourcePosition OptArgNode.getNamePosition()
           
 SourcePosition NthRefNode.getNamePosition()
           
 SourcePosition NamedNode.getNamePosition()
           
 SourcePosition MethodDefNode.getNamePosition()
           
 SourcePosition LocalAsgnNode.getNamePosition()
           
 SourcePosition InstVarNode.getNamePosition()
           
 SourcePosition InstAsgnNode.getNamePosition()
           
 SourcePosition INameNode.getNamePosition()
          The position of just the name part of the node.
 SourcePosition GlobalVarNode.getNamePosition()
           
 SourcePosition GlobalAsgnNode.getNamePosition()
           
 SourcePosition FCallNode.getNamePosition()
           
 SourcePosition DAsgnNode.getNamePosition()
           
 SourcePosition ConstNode.getNamePosition()
           
 SourcePosition ConstDeclNode.getNamePosition()
           
 SourcePosition Colon3Node.getNamePosition()
           
 SourcePosition ClassVarNode.getNamePosition()
           
 SourcePosition ClassVarDeclNode.getNamePosition()
           
 SourcePosition ClassVarAsgnNode.getNamePosition()
           
 SourcePosition CallNode.getNamePosition()
           
 SourcePosition BlockArgNode.getNamePosition()
           
 SourcePosition BareKeywordNode.getNamePosition()
           
 SourcePosition BackRefNode.getNamePosition()
           
 SourcePosition AttrAssignNode.getNamePosition()
           
 SourcePosition ArgumentNode.getNamePosition()
           
 SourcePosition Node.getPosition()
          Location of this node within the source
 SourcePosition Node.getPositionIncludingComments()
           
 

Methods in org.jrubyparser.ast with parameters of type SourcePosition
 void Node.setPosition(SourcePosition position)
           
 

Constructors in org.jrubyparser.ast with parameters of type SourcePosition
AliasNode(SourcePosition position, Node newName, Node oldName)
           
AndNode(SourcePosition position, Node firstNode, Node secondNode)
           
ArgAuxillaryNode(SourcePosition position, String name, int offset)
           
ArgsCatNode(SourcePosition position, Node firstNode, Node secondNode)
           
ArgsNode(SourcePosition position, ListNode pre, ListNode optional, RestArgNode rest, ListNode post, ListNode keywords, KeywordRestArgNode keywordRest, BlockArgNode block)
           
ArgsPushNode(SourcePosition position, Node firstNode, Node secondNode)
           
ArgumentNode(SourcePosition position, String identifier)
           
ArgumentNode(SourcePosition position, String identifier, int location)
           
ArrayNode(SourcePosition position)
           
ArrayNode(SourcePosition position, Node firstNode)
           
AssignableNode(SourcePosition position)
           
AssignableNode(SourcePosition position, Node valueNode)
           
AttrAssignNode(SourcePosition position, Node receiver, String name, Node arg)
           
BackRefNode(SourcePosition position, int type)
           
BareKeywordNode(SourcePosition position, String name)
           
BeginNode(SourcePosition position, Node bodyNode)
           
BignumNode(SourcePosition position, BigInteger value)
           
BinaryOperatorBaseNode(SourcePosition position, Node firstNode, Node secondNode)
           
BlockArg18Node(SourcePosition position, Node blockArgAssignee, Node normalBlockArgs)
           
BlockArgNode(SourcePosition position, ArgumentNode argNode)
           
BlockArgNode(SourcePosition position, int count, String name)
           
BlockNode(SourcePosition position)
           
BlockPassNode(SourcePosition position, Node bodyNode)
           
BreakNode(SourcePosition position, Node valueNode)
           
CallNode(SourcePosition position, Node receiverNode, String name, Node argsNode)
           
CallNode(SourcePosition position, Node receiverNode, String name, Node argsNode, Node iterNode)
           
CaseNode(SourcePosition position, Node caseNode, ListNode cases)
           
ClassNode(SourcePosition position, Colon3Node cpath, StaticScope scope, Node bodyNode, Node superNode)
           
ClassVarAsgnNode(SourcePosition position, String name, Node valueNode)
           
ClassVarDeclNode(SourcePosition position, String name, Node valueNode)
           
ClassVarNode(SourcePosition position, String name)
           
Colon2ConstNode(SourcePosition position, Node leftNode, String name)
           
Colon2ImplicitNode(SourcePosition position, String name)
           
Colon2MethodNode(SourcePosition position, Node leftNode, String name)
           
Colon2Node(SourcePosition position, Node leftNode, String name)
           
Colon3Node(SourcePosition position, String name)
           
CommentNode(SourcePosition position, String content)
           
ConstDeclNode(SourcePosition position, String name, INameNode constNode, Node valueNode)
           
ConstNode(SourcePosition position, String name)
           
DAsgnNode(SourcePosition position, String name, int location, Node valueNode)
           
DefinedNode(SourcePosition position, Node expressionNode)
           
DefnNode(SourcePosition position, MethodNameNode nameNode, ArgsNode argsNode, StaticScope scope, Node bodyNode)
           
DefsNode(SourcePosition position, Node receiverNode, MethodNameNode nameNode, ArgsNode argsNode, StaticScope scope, Node bodyNode)
           
DotNode(SourcePosition position, Node beginNode, Node endNode, boolean exclusive, boolean isLiteral)
           
DRegexpNode(SourcePosition position, RegexpOptions options)
           
DRegexpNode(SourcePosition position, RegexpOptions options, boolean is19)
           
DStrNode(SourcePosition position)
           
DSymbolNode(SourcePosition position)
           
DSymbolNode(SourcePosition position, DStrNode node)
          For mutating from a DStr to a DSym (we just create a new one with same contents).
DVarNode(SourcePosition position, int location, String name)
           
DXStrNode(SourcePosition position)
           
DXStrNode(SourcePosition position, DStrNode node)
           
EncodingNode(SourcePosition position)
           
EnsureNode(SourcePosition position, Node bodyNode, Node ensureNode)
           
EvStrNode(SourcePosition position, Node body)
           
FalseNode(SourcePosition position)
           
FCallNode(SourcePosition position, String name, Node argsNode)
           
FCallNode(SourcePosition position, String name, Node argsNode, Node iterNode)
           
FileNode(SourcePosition position, String value)
           
FixnumNode(SourcePosition position, long value)
           
FlipNode(SourcePosition position, Node beginNode, Node endNode, boolean exclusive, int location)
           
FloatNode(SourcePosition position, double value)
           
ForNode(SourcePosition position, Node varNode, Node bodyNode, Node iterNode, StaticScope scope)
           
GlobalAsgnNode(SourcePosition position, String name, Node valueNode)
           
GlobalVarNode(SourcePosition position, String name)
           
HashNode(SourcePosition position, ListNode listNode)
           
IfNode(SourcePosition position, Node condition, Node thenBody, Node elseBody)
           
ImplicitNilNode(SourcePosition position)
           
InstAsgnNode(SourcePosition position, String name, Node valueNode)
           
InstVarNode(SourcePosition position, String name)
           
IterNode(SourcePosition position, ArgsNode args, Node body, StaticScope scope)
           
IterNode(SourcePosition position, Node varNode, StaticScope scope, Node bodyNode)
           
KeywordArgNode(SourcePosition position, AssignableNode assignable)
           
KeywordRestArgNode(SourcePosition position, String name, int index)
           
LambdaNode(SourcePosition position, ArgsNode args, Node body, StaticScope scope)
           
ListNode(SourcePosition position)
           
ListNode(SourcePosition position, Node firstNode)
          Create a new ListNode.
LocalAsgnNode(SourcePosition position, String name, int location, Node valueNode)
           
LocalVarNode(SourcePosition position, int location, String name)
           
Match2Node(SourcePosition position, Node receiverNode, Node valueNode)
           
Match3Node(SourcePosition position, Node receiverNode, Node valueNode)
           
MatchNode(SourcePosition position, Node regexpNode)
           
MethodDefNode(SourcePosition position, MethodNameNode nameNode, ArgsNode argsNode, StaticScope scope, Node bodyNode)
           
MethodNameNode(SourcePosition position, String name)
           
ModuleNode(SourcePosition position, Colon3Node cpath, StaticScope scope, Node bodyNode)
           
MultipleAsgnNode(SourcePosition position, ListNode pre, Node rest)
           
MultipleAsgnNode(SourcePosition position, ListNode pre, Node rest, ListNode post)
           
NamedNode(SourcePosition position, String name)
           
NewlineNode(SourcePosition position, Node nextNode)
           
NextNode(SourcePosition position, Node valueNode)
           
NilNode(SourcePosition position)
           
Node(SourcePosition position)
           
NotNode(SourcePosition position, Node conditionNode)
           
NthRefNode(SourcePosition position, int matchNumber)
           
OpAsgnAndNode(SourcePosition position, Node headNode, Node valueNode)
           
OpAsgnNode(SourcePosition position, Node receiverNode, Node valueNode, String variableName, String operatorName)
           
OpAsgnOrNode(SourcePosition position, Node headNode, Node valueNode)
           
OpElementAsgnAndNode(SourcePosition position, Node receiverNode, String operatorName, Node argsNode, Node valueNode)
           
OpElementAsgnNode(SourcePosition position, Node receiverNode, String operatorName, Node argsNode, Node valueNode)
           
OpElementAsgnOrNode(SourcePosition position, Node receiverNode, String operatorName, Node argsNode, Node valueNode)
           
OptArgNode(SourcePosition position, Node value)
           
OrNode(SourcePosition position, Node firstNode, Node secondNode)
           
PostExeNode(SourcePosition position, Node body)
           
PreExe19Node(SourcePosition position, StaticScope scope, Node body)
           
PreExeNode(SourcePosition position, StaticScope scope, Node body)
           
RedoNode(SourcePosition position)
           
RegexpNode(SourcePosition position, String value, RegexpOptions options)
           
RescueBodyNode(SourcePosition position, Node exceptionNodes, Node bodyNode, RescueBodyNode optRescueNode)
           
RescueNode(SourcePosition position, Node bodyNode, RescueBodyNode rescueNode, Node elseNode)
           
RestArgNode(SourcePosition position, ArgumentNode argNode)
           
RestArgNode(SourcePosition position, String name, int index)
           
RetryNode(SourcePosition position)
           
ReturnNode(SourcePosition position, Node valueNode)
           
RootNode(SourcePosition position, StaticScope scope, Node bodyNode)
           
SClassNode(SourcePosition position, Node recvNode, StaticScope scope, Node bodyNode)
           
SelfNode(SourcePosition position)
           
SplatNode(SourcePosition position, Node node)
           
StarNode(SourcePosition position)
          Constructor for StarNode.
StrNode(SourcePosition position, String value)
           
StrNode(SourcePosition position, StrNode head, StrNode tail)
           
SuperNode(SourcePosition position, Node argsNode)
           
SuperNode(SourcePosition position, Node argsNode, Node iterNode)
           
SValueNode(SourcePosition position, Node node)
           
SymbolNode(SourcePosition position, String name)
           
SyntaxNode(SourcePosition position, String content)
           
ToAryNode(SourcePosition position, Node node)
           
TrueNode(SourcePosition position)
           
TypedArgumentNode(SourcePosition position, String identifier, Node typeNode)
           
UnaryCallNode(SourcePosition position, Node receiverNode, String lexicalName)
           
UndefNode(SourcePosition position, Node name)
           
UnnamedRestArgNode(SourcePosition position, int index)
           
UnnamedRestArgNode(SourcePosition position, String name, int index)
           
UntilNode(SourcePosition position, Node conditionNode, Node bodyNode)
           
UntilNode(SourcePosition position, Node conditionNode, Node bodyNode, boolean evaluateAtStart)
           
VAliasNode(SourcePosition position, String newName, String oldName)
           
VCallNode(SourcePosition position, String name)
           
WhenNode(SourcePosition position, Node expressionNodes, Node bodyNode, Node nextCase)
           
WhileNode(SourcePosition position, Node conditionNode, Node bodyNode)
           
WhileNode(SourcePosition position, Node conditionNode, Node bodyNode, boolean evalAtStart)
           
XStrNode(SourcePosition position, String value)
           
YieldNode(SourcePosition position, Node argsNode, boolean expandedArguments)
          Construct a new YieldNode.
ZArrayNode(SourcePosition position)
           
ZeroArgNode(SourcePosition position)
           
ZSuperNode(SourcePosition position)
           
ZYieldNode(SourcePosition position)
           
 

Uses of SourcePosition in org.jrubyparser.lexer
 

Methods in org.jrubyparser.lexer that return SourcePosition
 SourcePosition Token.getPosition()
           
 SourcePosition SyntaxException.getPosition()
           
 SourcePosition LexerSource.getPosition()
          Where is the reader within the source {filename,row}
 SourcePosition Lexer.getPosition()
           
 SourcePosition LexerSource.getPosition(SourcePosition startPosition, boolean inclusive)
          Where is the reader within the source {filename,row}
 SourcePosition Lexer.getPosition(SourcePosition startPosition, boolean inclusive)
          Get position information for Token/Node that follows node represented by startPosition and current lexer location.
 

Methods in org.jrubyparser.lexer with parameters of type SourcePosition
 SourcePosition LexerSource.getPosition(SourcePosition startPosition, boolean inclusive)
          Where is the reader within the source {filename,row}
 SourcePosition Lexer.getPosition(SourcePosition startPosition, boolean inclusive)
          Get position information for Token/Node that follows node represented by startPosition and current lexer location.
 void Token.setPosition(SourcePosition position)
           
 

Constructors in org.jrubyparser.lexer with parameters of type SourcePosition
StringTerm.UnterminatedStringException(SourcePosition pos, String message)
           
SyntaxException(SyntaxException.PID pid, SourcePosition position, String message, Object... data)
           
Token(Object value, int type, SourcePosition position)
           
Token(Object value, SourcePosition position)
           
 

Uses of SourcePosition in org.jrubyparser.parser
 

Methods in org.jrubyparser.parser that return SourcePosition
 SourcePosition ParserSupport.createEmptyArgsNodePosition(SourcePosition pos)
           
 SourcePosition ArgsTailHolder.getPosition()
           
 SourcePosition ParserSupport.getPosition(ISourcePositionHolder start)
           
 SourcePosition ParserSupport.getPosition(ISourcePositionHolder start, boolean inclusive)
           
 SourcePosition ParserSupport.getPosition2(ISourcePositionHolder pos)
          Since we can recieve positions at times we know can be null we need an extra safety net here.
 SourcePosition ParserSupport.union(ISourcePositionHolder first, ISourcePositionHolder second)
           
 SourcePosition ParserSupport.union(SourcePosition first, SourcePosition second)
           
 

Methods in org.jrubyparser.parser with parameters of type SourcePosition
 Node ParserSupport.addRootNode(Node topOfAST, SourcePosition position)
           
 Node ParserSupport.arg_add(SourcePosition position, Node node1, Node node2)
           
 Node ParserSupport.arg_concat(SourcePosition position, Node node1, Node node2)
           
 Node ParserSupport.asSymbol(SourcePosition position, Node value)
           
 SourcePosition ParserSupport.createEmptyArgsNodePosition(SourcePosition pos)
           
 Node ParserSupport.getOperatorCallNode(Node firstNode, String operator, Node secondNode, SourcePosition defaultPosition)
           
 Node ParserSupport.getOperatorCallNode(SourcePosition position, Node firstNode, String operator)
           
protected  void ParserSupport19.getterIdentifierError(SourcePosition position, String identifier)
           
protected  void ParserSupport.getterIdentifierError(SourcePosition position, String identifier)
           
 KeywordArgNode ParserSupport.keyword_arg(SourcePosition position, AssignableNode assignable)
           
 Node ParserSupport.literal_concat(SourcePosition position, Node head, Node tail)
           
 ArgsTailHolder ParserSupport.new_args_tail(SourcePosition position, ListNode keywordArg, Token keywordRestArgName, BlockArgNode blockArg)
           
 Node ParserSupport.new_args(SourcePosition position, ListNode pre, ListNode optional, RestArgNode rest, ListNode post, ArgsTailHolder tail)
           
 Node ParserSupport.new_args(SourcePosition position, ListNode pre, ListNode optional, RestArgNode rest, ListNode post, BlockArgNode block)
           
 Node ParserSupport.new_attrassign(SourcePosition position, Node receiver, String name, Node args)
           
 Colon2Node ParserSupport.new_colon2(SourcePosition position, Node leftNode, String name)
           
 Colon3Node ParserSupport.new_colon3(SourcePosition position, String name)
           
 IterNode ParserSupport.new_iter(SourcePosition position, Node vars, StaticScope scope, Node body)
           
 Node ParserSupport.new_opElementAsgnNode(SourcePosition position, Node receiverNode, String operatorName, Node argsNode, Node valueNode)
           
 Node ParserSupport.new_yield(SourcePosition position, Node node)
           
 Node ParserSupport.newAlias(SourcePosition position, Node newNode, Node oldNode)
           
 AndNode ParserSupport.newAndNode(SourcePosition position, Node left, Node right)
           
 ArrayNode ParserSupport.newArrayNode(SourcePosition position, Node firstNode)
           
 BlockArgNode ParserSupport.newBlockArg(SourcePosition position, Token nameToken)
           
 BlockArg18Node ParserSupport.newBlockArg18(SourcePosition position, Node blockValue, Node args)
           
 CaseNode ParserSupport.newCaseNode(SourcePosition position, Node expression, Node firstWhenNode)
          Ok I admit that this is somewhat ugly.
 Node ParserSupport.newEvStrNode(SourcePosition position, Node node)
           
 Node ParserSupport.newline_node(Node node, SourcePosition position)
          Wraps node with NEWLINE node.
 OrNode ParserSupport.newOrNode(SourcePosition position, Node left, Node right)
           
 Node ParserSupport.newRegexpNode(SourcePosition position, Node contents, RegexpNode end)
           
 SplatNode ParserSupport.newSplatNode(SourcePosition position, Node node)
           
 Node ParserSupport.newUndef(SourcePosition position, Node nameNode)
           
 WhenNode ParserSupport.newWhenNode(SourcePosition position, Node expressionNodes, Node bodyNode, Node nextCase)
           
 Node ParserSupport.ret_args(Node node, SourcePosition position)
           
 void ArgsTailHolder.setPosition(SourcePosition position)
           
 SourcePosition ParserSupport.union(SourcePosition first, SourcePosition second)
           
 void ParserSupport.warn(IRubyWarnings.ID id, SourcePosition position, String message, Object... data)
           
 void ParserSupport.warning(IRubyWarnings.ID id, SourcePosition position, String message, Object... data)
           
 

Constructors in org.jrubyparser.parser with parameters of type SourcePosition
ArgsTailHolder(SourcePosition position, ListNode keywordArgs, KeywordRestArgNode keywordRestArg, BlockArgNode blockArg)
           
 

Uses of SourcePosition in org.jrubyparser.rewriter.utils
 

Methods in org.jrubyparser.rewriter.utils that return SourcePosition
 SourcePosition ReWriterContext.getLastPosition()
           
 

Methods in org.jrubyparser.rewriter.utils with parameters of type SourcePosition
 void ReWriterContext.setLastPosition(SourcePosition lastPosition)
           
 



Copyright © 2013. All Rights Reserved.