Issue with SourceRange and null constant


Can anybody explain to me why when I try to get the SourceRange of the BinaryOperator “x = NULL” (in wich “x” is a pointer type variable) it doesn’t correspond with it? I’m trying to replace the text in there, but all i get is something like:

/* New text */ x = NULL

I know it is due to the null constant, but i can’t figure it out.

Thank you,