|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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 with parameters of type SourcePosition | |
|---|---|
void |
Node.setPosition(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)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||