changed SourceSelection into SourceRange and vice versa; extractFunctionInFile takes SourceSelection