Make cursor a SourceLocation