dart-lang / source_maps

A package to programmatically manipulate source maps.
https://pub.dev/packages/source_maps
BSD 3-Clause "New" or "Revised" License
16 stars 14 forks source link

Create a unified SourceMap class #7

Open DartBot opened 9 years ago

DartBot commented 9 years ago

Issue by nex3 Originally opened as dart-lang/sdk#13805


Right now, when building a source map, you can only get a map or a JSON string. When parsing the map, though, you get an instance of the Mapping interface, which provides a few APIs for inspecting the contents but no way to re-serialize the map.

It would be preferable to have a single class representing a source map that can be serialized and inspected. It would also be good to have a more thorough inspection API than Mapping currently provides -- at the very least a way to get a list of all the segments in the source map, a way to access/modify the source files, etc.

DartBot commented 9 years ago

Comment by anders-sandholm


Removed Library-SourceMaps label. Added Pkg-SourceMaps label.

DartBot commented 9 years ago

Comment by kegluneq


Submitted dart-lang/sdk@890433d8f715b654d9e8a759c68fcd1c4e68e24a as a start to this.