PsiMethodCallExpression question

What is the difference between

int PsiMethodCallExpression.getTextOffset()

and

int PsiMethodCallExpression.getStartOffsetInParent()

? Thanks in advance.

Tom

2 comments
Comment actions Permalink

Hello Tom,

What is the difference between

int PsiMethodCallExpression.getTextOffset()


This is the offset relative to the beginning of file.

int PsiMethodCallExpression.getStartOffsetInParent()


This is the offset relative to the beginning of the parent element of your
expression.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thank you for the extremely fast response.

Tom

0

Please sign in to leave a comment.