SourceLocation is invalid for rewriting, need to find out why and need to check if rewriting is attempted twice for variables in loops