PsiMethodCallExpression question

What is the difference between

int PsiMethodCallExpression.getTextOffset()

and

int PsiMethodCallExpression.getStartOffsetInParent()

? Thanks in advance.

Tom

0
2 comments

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
Avatar
Permanently deleted user

Thank you for the extremely fast response.

Tom

0

Please sign in to leave a comment.