move SourceMapBuilder to kotlin